diff options
author | scottl <scottl@FreeBSD.org> | 2002-08-01 01:36:39 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2002-08-01 01:36:39 +0000 |
commit | 450d541ee0469845cb4418ffa57d92ae31b71faa (patch) | |
tree | be5095f80df56be8ca9d342e09995e930e317206 /sys/modules/aic7xxx | |
parent | 3ce5d5484cfbe7bd6f19b66612d0a5582f13fab0 (diff) | |
download | FreeBSD-src-450d541ee0469845cb4418ffa57d92ae31b71faa.zip FreeBSD-src-450d541ee0469845cb4418ffa57d92ae31b71faa.tar.gz |
Allow the ahc and ahd drivers to be built as modules. This also
breaks the ahc driver into a core back-end and pci and eisa
front-ends.
Diffstat (limited to 'sys/modules/aic7xxx')
-rw-r--r-- | sys/modules/aic7xxx/Makefile | 6 | ||||
-rw-r--r-- | sys/modules/aic7xxx/ahc/Makefile | 28 | ||||
-rw-r--r-- | sys/modules/aic7xxx/ahc/ahc_eisa/Makefile | 18 | ||||
-rw-r--r-- | sys/modules/aic7xxx/ahc/ahc_pci/Makefile | 16 | ||||
-rw-r--r-- | sys/modules/aic7xxx/ahd/Makefile | 27 | ||||
-rw-r--r-- | sys/modules/aic7xxx/aicasm/Makefile | 14 |
6 files changed, 109 insertions, 0 deletions
diff --git a/sys/modules/aic7xxx/Makefile b/sys/modules/aic7xxx/Makefile new file mode 100644 index 0000000..47550f0 --- /dev/null +++ b/sys/modules/aic7xxx/Makefile @@ -0,0 +1,6 @@ + +# $FreeBSD$ + +SUBDIR= aicasm ahc ahd + +.include <bsd.subdir.mk> diff --git a/sys/modules/aic7xxx/ahc/Makefile b/sys/modules/aic7xxx/ahc/Makefile new file mode 100644 index 0000000..2511ec8 --- /dev/null +++ b/sys/modules/aic7xxx/ahc/Makefile @@ -0,0 +1,28 @@ + +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/aic7xxx +KMOD= ahc +SUBDIR= ahc_eisa ahc_pci + +BEFORE_DEPEND= aic7xxx_{seq,reg}.h + +../aicasm/aicasm: + ( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; ) + +aic7xxx_{seq,reg}.h: ${.CURDIR}/../../../dev/aic7xxx/aic7xxx.{reg,seq} \ + ${.CURDIR}/../../../cam/scsi/scsi_message.h ../aicasm/aicasm + ${.CURDIR}/../aicasm/aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi \ + -I${.CURDIR}/../../../dev/aic7xxx -o aic7xxx_seq.h -r aic7xxx_reg.h \ + ${.CURDIR}/../../../dev/aic7xxx/aic7xxx.seq + +GENSRCS= aic7xxx_reg.h aic7xxx_seq.h + +SRCS= ${GENSRCS} +SRCS+= aic7xxx.c aic7xxx_93cx6.c aic7xxx_osm.c +SRCS+= opt_scsi.h opt_aic7xxx.h opt_cam.h +SRCS+= device_if.h bus_if.h pci_if.h + +CLEANFILES= ${GENSRCS} + +.include <bsd.kmod.mk> diff --git a/sys/modules/aic7xxx/ahc/ahc_eisa/Makefile b/sys/modules/aic7xxx/ahc/ahc_eisa/Makefile new file mode 100644 index 0000000..c6a3702 --- /dev/null +++ b/sys/modules/aic7xxx/ahc/ahc_eisa/Makefile @@ -0,0 +1,18 @@ + +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/aic7xxx +KMOD= ahc_eisa + +../aic7xxx_reg.h: + ( cd .. ; ${MAKE} aic7xxx_reg.h ) + +SRCS= ahc_eisa.c aic7770.c ../aic7xxx_reg.h +SRCS+= device_if.h bus_if.h pci_if.h +SRCS+= opt_scsi.h opt_cam.h opt_aic7xxx.h + +CFLAGS+= -I${.CURDIR}/../../../../dev/aic7xxx -I.. + +CLEANFILES= ../aic7xxx_reg.h ../aic7xxx_seq.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/aic7xxx/ahc/ahc_pci/Makefile b/sys/modules/aic7xxx/ahc/ahc_pci/Makefile new file mode 100644 index 0000000..9a59580 --- /dev/null +++ b/sys/modules/aic7xxx/ahc/ahc_pci/Makefile @@ -0,0 +1,16 @@ + +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/aic7xxx +KMOD= ahc_pci + +../aic7xxx_reg.h: + ( cd .. ; ${MAKE} aic7xxx_reg.h ) + +SRCS= ahc_pci.c aic7xxx_pci.c ../aic7xxx_reg.h +SRCS+= device_if.h bus_if.h pci_if.h +SRCS+= opt_scsi.h opt_cam.h opt_aic7xxx.h + +CFLAGS+= -I${.CURDIR}/../../../../dev/aic7xxx -I.. + +.include <bsd.kmod.mk> diff --git a/sys/modules/aic7xxx/ahd/Makefile b/sys/modules/aic7xxx/ahd/Makefile new file mode 100644 index 0000000..b9d5364 --- /dev/null +++ b/sys/modules/aic7xxx/ahd/Makefile @@ -0,0 +1,27 @@ + +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/aic7xxx +KMOD= ahd + +BEFORE_DEPEND= aic79xx_{seq,reg}.h + +../aicasm/aicasm: + ( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; ) + +aic79xx_{seq,reg}.h: ${.CURDIR}/../../../dev/aic7xxx/aic79xx.{reg,seq} \ + ${.CURDIR}/../../../cam/scsi/scsi_message.h ../aicasm/aicasm + ${.CURDIR}/../aicasm/aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi \ + -I${.CURDIR}/../../../dev/aic7xxx -o aic79xx_seq.h -r aic79xx_reg.h \ + ${.CURDIR}/../../../dev/aic7xxx/aic79xx.seq + +GENSRCS= aic79xx_reg.h aic79xx_seq.h + +SRCS= ${GENSRCS} +SRCS+= aic79xx.c aic79xx_osm.c aic79xx_pci.c ahd_pci.c +SRCS+= opt_scsi.h opt_aic79xx.h opt_cam.h opt_ddb.h +SRCS+= device_if.h bus_if.h pci_if.h + +CLEANFILES= ${GENSRCS} + +.include <bsd.kmod.mk> diff --git a/sys/modules/aic7xxx/aicasm/Makefile b/sys/modules/aic7xxx/aicasm/Makefile new file mode 100644 index 0000000..1606d39 --- /dev/null +++ b/sys/modules/aic7xxx/aicasm/Makefile @@ -0,0 +1,14 @@ + +# $FreeBSD$ + +all: aicasm + +aicasm: ${.CURDIR}/../../../dev/aic7xxx/aicasm/*.[chyl] + ${MAKE} -f ${.CURDIR}/../../../dev/aic7xxx/aicasm/Makefile \ + MAKESRCPATH=${.CURDIR}/../../../dev/aic7xxx/aicasm + +install: + +clean: + rm -f *.[chylo] + rm -f aicasm |