Split the arch-specific AGP files into the appropriate files.* and do the same
for the agp module, and add agp to the list of modules to compile for alpha. Add an alpha_mb() to agp_flush_cache for alpha -- it's not correct but may improve the situation, and it's what linux and NetBSD do.
This commit is contained in:
parent
335cfd4947
commit
3807297a46
@ -1479,12 +1479,6 @@ pccard/pcic_isa.c optional pcic card isa
|
||||
pccard/pcic_pci.c optional pcic card pci
|
||||
pci/agp.c optional agp
|
||||
pci/agp_if.m optional agp
|
||||
pci/agp_intel.c optional agp
|
||||
pci/agp_via.c optional agp
|
||||
pci/agp_sis.c optional agp
|
||||
pci/agp_ali.c optional agp
|
||||
pci/agp_amd.c optional agp
|
||||
pci/agp_i810.c optional agp
|
||||
pci/alpm.c optional alpm
|
||||
pci/amdpm.c optional amdpm
|
||||
pci/amdpm.c optional nfpm
|
||||
|
@ -211,3 +211,4 @@ dev/tga/tga_pci.c optional tga
|
||||
dev/fb/fb.c optional tga
|
||||
dev/fb/gfb.c optional tga
|
||||
dev/gfb/gfb_pci.c optional tga
|
||||
pci/agp_amd.c optional agp
|
||||
|
@ -418,3 +418,9 @@ libkern/ucmpdi2.c standard
|
||||
libkern/udivdi3.c standard
|
||||
libkern/umoddi3.c standard
|
||||
pci/cy_pci.c optional cy pci
|
||||
pci/agp_intel.c optional agp
|
||||
pci/agp_via.c optional agp
|
||||
pci/agp_sis.c optional agp
|
||||
pci/agp_ali.c optional agp
|
||||
pci/agp_amd.c optional agp
|
||||
pci/agp_i810.c optional agp
|
||||
|
@ -391,3 +391,9 @@ pc98/pc98/wd.c count wdc
|
||||
pc98/pc98/wd_cd.c count wcd wdc
|
||||
pccard/mecia.c optional mecia card
|
||||
pci/cy_pci.c optional cy pci
|
||||
pci/agp_intel.c optional agp
|
||||
pci/agp_via.c optional agp
|
||||
pci/agp_sis.c optional agp
|
||||
pci/agp_ali.c optional agp
|
||||
pci/agp_amd.c optional agp
|
||||
pci/agp_i810.c optional agp
|
||||
|
@ -96,6 +96,12 @@ agp_flush_cache()
|
||||
#ifdef __i386__
|
||||
wbinvd();
|
||||
#endif
|
||||
#ifdef __alpha__
|
||||
/* FIXME: This is most likely not correct as it doesn't flush CPU
|
||||
* write caches, but we don't have a facility to do that and
|
||||
* this is all linux does, too */
|
||||
alpha_mb();
|
||||
#endif
|
||||
}
|
||||
|
||||
u_int8_t
|
||||
|
@ -263,7 +263,8 @@ SUBDIR+=aic \
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH} == "alpha"
|
||||
SUBDIR+=linprocfs \
|
||||
SUBDIR+=agp \
|
||||
linprocfs \
|
||||
linux \
|
||||
osf1 \
|
||||
sound \
|
||||
|
@ -3,8 +3,13 @@
|
||||
.PATH: ${.CURDIR}/../../pci
|
||||
|
||||
KMOD= agp
|
||||
SRCS= agp.c agp_intel.c agp_via.c agp_sis.c agp_ali.c agp_amd.c
|
||||
SRCS+= agp_i810.c agp_if.c
|
||||
SRCS= agp.c agp_if.c
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
SRCS+= agp_i810.c agp_intel.c agp_via.c agp_sis.c agp_ali.c agp_amd.c
|
||||
.endif
|
||||
.if ${MACHINE_ARCH} == "alpha"
|
||||
SRCS+= agp_amd.c
|
||||
.endif
|
||||
SRCS+= device_if.h bus_if.h agp_if.h pci_if.h
|
||||
SRCS+= opt_bdg.h opt_bus.h
|
||||
MFILES= kern/device_if.m kern/bus_if.m pci/agp_if.m dev/pci/pci_if.m
|
||||
|
@ -96,6 +96,12 @@ agp_flush_cache()
|
||||
#ifdef __i386__
|
||||
wbinvd();
|
||||
#endif
|
||||
#ifdef __alpha__
|
||||
/* FIXME: This is most likely not correct as it doesn't flush CPU
|
||||
* write caches, but we don't have a facility to do that and
|
||||
* this is all linux does, too */
|
||||
alpha_mb();
|
||||
#endif
|
||||
}
|
||||
|
||||
u_int8_t
|
||||
|
Loading…
Reference in New Issue
Block a user