diff options
author | peter <peter@FreeBSD.org> | 2001-01-29 11:38:39 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-01-29 11:38:39 +0000 |
commit | c617fc9c7d3189887e4f9ba9fbdb43bf72e8cabd (patch) | |
tree | 04162d51a2fd4adc369836d595999159559f2e2b | |
parent | 21b418d3ba25f0a01ae20c28971c7dde0a47cee4 (diff) | |
download | FreeBSD-src-c617fc9c7d3189887e4f9ba9fbdb43bf72e8cabd.zip FreeBSD-src-c617fc9c7d3189887e4f9ba9fbdb43bf72e8cabd.tar.gz |
Zap silly #if NPCI > 0 and the hoops that we jump through for the module
case. Use an 'and' case in conf/files so that it only gets compiled if
pci is present.
-rw-r--r-- | sys/conf/files | 2 | ||||
-rw-r--r-- | sys/dev/tdfx/tdfx_pci.c | 9 | ||||
-rw-r--r-- | sys/modules/3dfx/Makefile | 7 |
3 files changed, 2 insertions, 16 deletions
diff --git a/sys/conf/files b/sys/conf/files index f76e6d2..1b2378c 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -489,7 +489,7 @@ dev/stg/tmc18c30_pccard.c optional stg card dev/stg/tmc18c30_isa.c optional stg isa dev/sym/sym_hipd.c optional sym \ dependency "$S/dev/sym/sym_{conf,defs}.h" -dev/tdfx/tdfx_pci.c optional tdfx +dev/tdfx/tdfx_pci.c optional tdfx pci dev/twe/twe.c optional twe dev/twe/twe_freebsd.c optional twe # diff --git a/sys/dev/tdfx/tdfx_pci.c b/sys/dev/tdfx/tdfx_pci.c index 8339738..d71e9c1 100644 --- a/sys/dev/tdfx/tdfx_pci.c +++ b/sys/dev/tdfx/tdfx_pci.c @@ -38,12 +38,6 @@ * and Jens Axboe, located at http://linux.3dfx.com. */ -/* - * put this here, so as to bail out immediately if we have no PCI BUS installed - */ -#include "pci.h" -#if NPCI > 0 - #include <sys/param.h> #include <sys/bus_private.h> @@ -871,6 +865,3 @@ static driver_t tdfx_driver = { /* Tell Mr. Kernel about us! */ DRIVER_MODULE(tdfx, pci, tdfx_driver, tdfx_devclass, 0, 0); - - -#endif /* NPCI */ diff --git a/sys/modules/3dfx/Makefile b/sys/modules/3dfx/Makefile index 5c67621..4973bb4 100644 --- a/sys/modules/3dfx/Makefile +++ b/sys/modules/3dfx/Makefile @@ -6,12 +6,10 @@ MAINTAINER= cokane@FreeBSD.org KMOD= 3dfx NOMAN= YES -SRCS= opt_tdfx.h pci.h bus_if.h pci_if.h device_if.h tdfx_pci.h tdfx_io.h\ +SRCS= opt_tdfx.h bus_if.h pci_if.h device_if.h tdfx_pci.h tdfx_io.h\ tdfx_vars.h tdfx_pci.c INCSRC= ../../sys -CLEANFILES= pci.h - .if ${MACHINE_ARCH} == "i386" # This line enables linux ioctl handling by default # comment out if you don't want it @@ -21,9 +19,6 @@ TDFX_OPTS= "\#define TDFX_LINUX" # Uncomment this for debugging messages #CFLAGS+= -DDEBUG -pci.h: - echo "#define NPCI 1" > pci.h - opt_tdfx.h: touch opt_tdfx.h echo $(TDFX_OPTS) >> opt_tdfx.h |