drivers/network: Remove remaining declarations of "devclass".
Mainly the ported OpenBSD drivers (where this was added in Haiku-specific code), and then the few remaining drivers that are no longer supported on FreeBSD.
This commit is contained in:
@@ -4909,9 +4909,7 @@ static driver_t tulip_pci_driver = {
|
|||||||
sizeof(tulip_softc_t),
|
sizeof(tulip_softc_t),
|
||||||
};
|
};
|
||||||
|
|
||||||
static devclass_t tulip_devclass;
|
DRIVER_MODULE(de, pci, tulip_pci_driver, 0, 0);
|
||||||
|
|
||||||
DRIVER_MODULE(de, pci, tulip_pci_driver, tulip_devclass, 0, 0);
|
|
||||||
|
|
||||||
#ifdef DDB
|
#ifdef DDB
|
||||||
void tulip_dumpring(int unit, int ring);
|
void tulip_dumpring(int unit, int ring);
|
||||||
|
|||||||
@@ -190,12 +190,10 @@ static driver_t pcn_driver = {
|
|||||||
sizeof(struct pcn_softc)
|
sizeof(struct pcn_softc)
|
||||||
};
|
};
|
||||||
|
|
||||||
static devclass_t pcn_devclass;
|
DRIVER_MODULE(pcn, pci, pcn_driver, 0, 0);
|
||||||
|
|
||||||
DRIVER_MODULE(pcn, pci, pcn_driver, pcn_devclass, 0, 0);
|
|
||||||
MODULE_PNP_INFO("U16:vendor;U16:device", pci, pcn, pcn_devs,
|
MODULE_PNP_INFO("U16:vendor;U16:device", pci, pcn, pcn_devs,
|
||||||
nitems(pcn_devs) - 1);
|
nitems(pcn_devs) - 1);
|
||||||
DRIVER_MODULE(miibus, pcn, miibus_driver, miibus_devclass, 0, 0);
|
DRIVER_MODULE(miibus, pcn, miibus_driver, 0, 0);
|
||||||
|
|
||||||
#define PCN_CSR_SETBIT(sc, reg, x) \
|
#define PCN_CSR_SETBIT(sc, reg, x) \
|
||||||
pcn_csr_write(sc, reg, pcn_csr_read(sc, reg) | (x))
|
pcn_csr_write(sc, reg, pcn_csr_read(sc, reg) | (x))
|
||||||
|
|||||||
@@ -414,9 +414,7 @@ static driver_t rge_pci_driver = {
|
|||||||
sizeof (struct rge_softc)
|
sizeof (struct rge_softc)
|
||||||
};
|
};
|
||||||
|
|
||||||
static devclass_t rge_devclass;
|
DRIVER_MODULE(rge, pci, rge_pci_driver, NULL, NULL);
|
||||||
|
|
||||||
DRIVER_MODULE(rge, pci, rge_pci_driver, rge_devclass, NULL, NULL);
|
|
||||||
#else
|
#else
|
||||||
int
|
int
|
||||||
rge_activate(struct device *self, int act)
|
rge_activate(struct device *self, int act)
|
||||||
|
|||||||
@@ -2406,7 +2406,5 @@ static driver_t sis_driver = {
|
|||||||
sizeof(struct sis_softc)
|
sizeof(struct sis_softc)
|
||||||
};
|
};
|
||||||
|
|
||||||
static devclass_t sis_devclass;
|
DRIVER_MODULE(sis, pci, sis_driver, 0, 0);
|
||||||
|
DRIVER_MODULE(miibus, sis, miibus_driver, 0, 0);
|
||||||
DRIVER_MODULE(sis, pci, sis_driver, sis_devclass, 0, 0);
|
|
||||||
DRIVER_MODULE(miibus, sis, miibus_driver, miibus_devclass, 0, 0);
|
|
||||||
|
|||||||
@@ -270,9 +270,7 @@ static driver_t an_pci_driver = {
|
|||||||
sizeof(struct an_softc),
|
sizeof(struct an_softc),
|
||||||
};
|
};
|
||||||
|
|
||||||
static devclass_t an_devclass;
|
DRIVER_MODULE(an, pci, an_pci_driver, 0, 0);
|
||||||
|
|
||||||
DRIVER_MODULE(an, pci, an_pci_driver, an_devclass, 0, 0);
|
|
||||||
MODULE_PNP_INFO("U16:vendor;U16:device;D:#", pci, an,
|
MODULE_PNP_INFO("U16:vendor;U16:device;D:#", pci, an,
|
||||||
an_devs, nitems(an_devs) - 1);
|
an_devs, nitems(an_devs) - 1);
|
||||||
MODULE_DEPEND(an, pci, 1, 1, 1);
|
MODULE_DEPEND(an, pci, 1, 1, 1);
|
||||||
|
|||||||
@@ -464,8 +464,7 @@ static driver_t ath_pci_driver = {
|
|||||||
ath_pci_methods,
|
ath_pci_methods,
|
||||||
sizeof (struct ath_pci_softc)
|
sizeof (struct ath_pci_softc)
|
||||||
};
|
};
|
||||||
static devclass_t ath_devclass;
|
DRIVER_MODULE(if_ath_pci, pci, ath_pci_driver, 0, 0);
|
||||||
DRIVER_MODULE(if_ath_pci, pci, ath_pci_driver, ath_devclass, 0, 0);
|
|
||||||
MODULE_VERSION(if_ath_pci, 1);
|
MODULE_VERSION(if_ath_pci, 1);
|
||||||
MODULE_DEPEND(if_ath_pci, wlan, 1, 1, 1); /* 802.11 media layer */
|
MODULE_DEPEND(if_ath_pci, wlan, 1, 1, 1); /* 802.11 media layer */
|
||||||
MODULE_DEPEND(if_ath_pci, ath_main, 1, 1, 1); /* if_ath driver */
|
MODULE_DEPEND(if_ath_pci, ath_main, 1, 1, 1); /* if_ath driver */
|
||||||
|
|||||||
@@ -11571,9 +11571,7 @@ static driver_t iwx_pci_driver = {
|
|||||||
sizeof (struct iwx_softc)
|
sizeof (struct iwx_softc)
|
||||||
};
|
};
|
||||||
|
|
||||||
static devclass_t iwx_devclass;
|
DRIVER_MODULE(iwx, pci, iwx_pci_driver, NULL, NULL);
|
||||||
|
|
||||||
DRIVER_MODULE(iwx, pci, iwx_pci_driver, iwx_devclass, NULL, NULL);
|
|
||||||
#else
|
#else
|
||||||
int
|
int
|
||||||
iwx_activate(struct device *self, int act)
|
iwx_activate(struct device *self, int act)
|
||||||
|
|||||||
@@ -12277,9 +12277,7 @@ static driver_t iwm_pci_driver = {
|
|||||||
sizeof (struct iwm_softc)
|
sizeof (struct iwm_softc)
|
||||||
};
|
};
|
||||||
|
|
||||||
static devclass_t iwm_devclass;
|
DRIVER_MODULE(iwm, pci, iwm_pci_driver, NULL, NULL);
|
||||||
|
|
||||||
DRIVER_MODULE(iwm, pci, iwm_pci_driver, iwm_devclass, NULL, NULL);
|
|
||||||
#else
|
#else
|
||||||
int
|
int
|
||||||
iwm_activate(struct device *self, int act)
|
iwm_activate(struct device *self, int act)
|
||||||
|
|||||||
Reference in New Issue
Block a user