summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authoranholt <anholt@FreeBSD.org>2003-02-14 06:33:52 +0000
committeranholt <anholt@FreeBSD.org>2003-02-14 06:33:52 +0000
commitc1f9432df87518b4a41027a8db43313201fdaf74 (patch)
tree15c6acae66f1380af036f5e4697f34c2531b44f7 /sys/modules
parentfed8c49da5123b6e1a6ad7867ba0901312637273 (diff)
downloadFreeBSD-src-c1f9432df87518b4a41027a8db43313201fdaf74.zip
FreeBSD-src-c1f9432df87518b4a41027a8db43313201fdaf74.tar.gz
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.
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile3
-rw-r--r--sys/modules/agp/Makefile9
2 files changed, 9 insertions, 3 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index ab15cba..d48fa8b 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -263,7 +263,8 @@ SUBDIR+=aic \
.endif
.if ${MACHINE_ARCH} == "alpha"
-SUBDIR+=linprocfs \
+SUBDIR+=agp \
+ linprocfs \
linux \
osf1 \
sound \
diff --git a/sys/modules/agp/Makefile b/sys/modules/agp/Makefile
index 67c46d0..b17be3a 100644
--- a/sys/modules/agp/Makefile
+++ b/sys/modules/agp/Makefile
@@ -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
OpenPOWER on IntegriCloud