summaryrefslogtreecommitdiffstats
path: root/sys/dev/aic7xxx
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2002-09-22 23:03:31 +0000
committerscottl <scottl@FreeBSD.org>2002-09-22 23:03:31 +0000
commit95e18ba243a57de3bee4d8cb40626dab1d9588dc (patch)
tree6d661d888b499e1d8213fc9a10999aaecf1f36b8 /sys/dev/aic7xxx
parent0641b68d4f3da387bf86ff4274d06f72bc8f2733 (diff)
downloadFreeBSD-src-95e18ba243a57de3bee4d8cb40626dab1d9588dc.zip
FreeBSD-src-95e18ba243a57de3bee4d8cb40626dab1d9588dc.tar.gz
The ahc driver should only have one devclass, not one for each bus
attachment. Submitted by: too many people to count MFC after: 3 days
Diffstat (limited to 'sys/dev/aic7xxx')
-rw-r--r--sys/dev/aic7xxx/ahc_eisa.c6
-rw-r--r--sys/dev/aic7xxx/ahc_pci.c8
-rw-r--r--sys/dev/aic7xxx/aic7xxx_osm.c2
-rw-r--r--sys/dev/aic7xxx/aic7xxx_osm.h3
4 files changed, 10 insertions, 9 deletions
diff --git a/sys/dev/aic7xxx/ahc_eisa.c b/sys/dev/aic7xxx/ahc_eisa.c
index c5451bd..10a0776 100644
--- a/sys/dev/aic7xxx/ahc_eisa.c
+++ b/sys/dev/aic7xxx/ahc_eisa.c
@@ -203,13 +203,11 @@ static device_method_t ahc_eisa_device_methods[] = {
};
static driver_t ahc_eisa_driver = {
- "ahc_eisa",
+ "ahc",
ahc_eisa_device_methods,
sizeof(struct ahc_softc)
};
-static devclass_t ahc_eisa_devclass;
-
-DRIVER_MODULE(ahc_eisa, eisa, ahc_eisa_driver, ahc_eisa_devclass, 0, 0);
+DRIVER_MODULE(ahc_eisa, eisa, ahc_eisa_driver, ahc_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 0ea4cc1..c5e6983 100644
--- a/sys/dev/aic7xxx/ahc_pci.c
+++ b/sys/dev/aic7xxx/ahc_pci.c
@@ -50,15 +50,13 @@ static device_method_t ahc_pci_device_methods[] = {
};
static driver_t ahc_pci_driver = {
- "ahc_pci",
+ "ahc",
ahc_pci_device_methods,
sizeof(struct ahc_softc)
};
-static devclass_t ahc_pci_devclass;
-
-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);
+DRIVER_MODULE(ahc_pci, pci, ahc_pci_driver, ahc_devclass, 0, 0);
+DRIVER_MODULE(ahc_pci, cardbus, ahc_pci_driver, ahc_devclass, 0, 0);
MODULE_DEPEND(ahc_pci, ahc, 1, 1, 1);
MODULE_VERSION(ahc_pci, 1);
diff --git a/sys/dev/aic7xxx/aic7xxx_osm.c b/sys/dev/aic7xxx/aic7xxx_osm.c
index 42dc9aa..99674d1 100644
--- a/sys/dev/aic7xxx/aic7xxx_osm.c
+++ b/sys/dev/aic7xxx/aic7xxx_osm.c
@@ -42,6 +42,8 @@
#define ccb_scb_ptr spriv_ptr0
+devclass_t ahc_devclass;
+
#if UNUSED
static void ahc_dump_targcmd(struct target_cmd *cmd);
#endif
diff --git a/sys/dev/aic7xxx/aic7xxx_osm.h b/sys/dev/aic7xxx/aic7xxx_osm.h
index 3456e99..171c10b 100644
--- a/sys/dev/aic7xxx/aic7xxx_osm.h
+++ b/sys/dev/aic7xxx/aic7xxx_osm.h
@@ -88,6 +88,9 @@
#define AHC_NEW_TRAN_SETTINGS
#endif /* CAM_NEW_TRAN_CODE */
+/*************************** Attachment Bookkeeping ***************************/
+extern devclass_t ahc_devclass;
+
/****************************** Platform Macros *******************************/
#define SIM_IS_SCSIBUS_B(ahc, sim) \
((sim) == ahc->platform_data->sim_b)
OpenPOWER on IntegriCloud