diff options
-rw-r--r-- | sys/dev/aic7xxx/ahc_eisa.c | 6 | ||||
-rw-r--r-- | sys/dev/aic7xxx/ahc_pci.c | 8 | ||||
-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 |
8 files changed, 116 insertions, 7 deletions
diff --git a/sys/dev/aic7xxx/ahc_eisa.c b/sys/dev/aic7xxx/ahc_eisa.c index eddfc9c..aec8511 100644 --- a/sys/dev/aic7xxx/ahc_eisa.c +++ b/sys/dev/aic7xxx/ahc_eisa.c @@ -203,13 +203,13 @@ static device_method_t ahc_eisa_device_methods[] = { }; static driver_t ahc_eisa_driver = { - "ahc", + "ahc_eisa", ahc_eisa_device_methods, sizeof(struct ahc_softc) }; -static devclass_t ahc_devclass; +static devclass_t ahc_eisa_devclass; -DRIVER_MODULE(ahc, eisa, ahc_eisa_driver, ahc_devclass, 0, 0); +DRIVER_MODULE(ahc_eisa, eisa, ahc_eisa_driver, ahc_eisa_devclass, 0, 0); MODULE_DEPEND(ahc_eisa, ahc, 1, 1, 1); MODULE_VERSION(ahc_eisa, 1); diff --git a/sys/dev/aic7xxx/ahc_pci.c b/sys/dev/aic7xxx/ahc_pci.c index 6060810..48ccc40 100644 --- a/sys/dev/aic7xxx/ahc_pci.c +++ b/sys/dev/aic7xxx/ahc_pci.c @@ -50,15 +50,15 @@ static device_method_t ahc_pci_device_methods[] = { }; static driver_t ahc_pci_driver = { - "ahc", + "ahc_pci", ahc_pci_device_methods, sizeof(struct ahc_softc) }; -static devclass_t ahc_devclass; +static devclass_t ahc_pci_devclass; -DRIVER_MODULE(ahc, pci, ahc_pci_driver, ahc_devclass, 0, 0); -DRIVER_MODULE(ahc, cardbus, ahc_pci_driver, ahc_devclass, 0, 0); +DRIVER_MODULE(ahc_pci, pci, ahc_pci_driver, ahc_pci_devclass, 0, 0); +DRIVER_MODULE(ahc_pci, cardbus, ahc_pci_driver, ahc_pci_devclass, 0, 0); MODULE_DEPEND(ahc_pci, ahc, 1, 1, 1); MODULE_VERSION(ahc_pci, 1); 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 |