1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

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
This commit is contained in:
Scott Long 2002-09-22 23:03:31 +00:00
parent 62f1ea9c96
commit c57c56c4a1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103811
4 changed files with 10 additions and 9 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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

View File

@ -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)