Goofed and didn't change the second DRIVER_MODULE() linking these with
the miibus. Noticed by: wpaul
This commit is contained in:
parent
db76d7198d
commit
bb08081805
@ -209,7 +209,7 @@ static driver_t sf_driver = {
|
|||||||
static devclass_t sf_devclass;
|
static devclass_t sf_devclass;
|
||||||
|
|
||||||
DRIVER_MODULE(if_sf, pci, sf_driver, sf_devclass, 0, 0);
|
DRIVER_MODULE(if_sf, pci, sf_driver, sf_devclass, 0, 0);
|
||||||
DRIVER_MODULE(miibus, sf, miibus_driver, miibus_devclass, 0, 0);
|
DRIVER_MODULE(miibus, if_sf, miibus_driver, miibus_devclass, 0, 0);
|
||||||
|
|
||||||
#define SF_SETBIT(sc, reg, x) \
|
#define SF_SETBIT(sc, reg, x) \
|
||||||
csr_write_4(sc, reg, csr_read_4(sc, reg) | x)
|
csr_write_4(sc, reg, csr_read_4(sc, reg) | x)
|
||||||
|
@ -203,7 +203,7 @@ static driver_t vr_driver = {
|
|||||||
static devclass_t vr_devclass;
|
static devclass_t vr_devclass;
|
||||||
|
|
||||||
DRIVER_MODULE(if_vr, pci, vr_driver, vr_devclass, 0, 0);
|
DRIVER_MODULE(if_vr, pci, vr_driver, vr_devclass, 0, 0);
|
||||||
DRIVER_MODULE(miibus, vr, miibus_driver, miibus_devclass, 0, 0);
|
DRIVER_MODULE(miibus, if_vr, miibus_driver, miibus_devclass, 0, 0);
|
||||||
|
|
||||||
#define VR_SETBIT(sc, reg, x) \
|
#define VR_SETBIT(sc, reg, x) \
|
||||||
CSR_WRITE_1(sc, reg, \
|
CSR_WRITE_1(sc, reg, \
|
||||||
|
@ -191,7 +191,7 @@ static driver_t dm_driver = {
|
|||||||
static devclass_t dm_devclass;
|
static devclass_t dm_devclass;
|
||||||
|
|
||||||
DRIVER_MODULE(if_dm, pci, dm_driver, dm_devclass, 0, 0);
|
DRIVER_MODULE(if_dm, pci, dm_driver, dm_devclass, 0, 0);
|
||||||
DRIVER_MODULE(miibus, dm, miibus_driver, miibus_devclass, 0, 0);
|
DRIVER_MODULE(miibus, if_dm, miibus_driver, miibus_devclass, 0, 0);
|
||||||
|
|
||||||
#define DM_SETBIT(sc, reg, x) \
|
#define DM_SETBIT(sc, reg, x) \
|
||||||
CSR_WRITE_4(sc, reg, \
|
CSR_WRITE_4(sc, reg, \
|
||||||
|
@ -229,7 +229,7 @@ static driver_t rl_driver = {
|
|||||||
static devclass_t rl_devclass;
|
static devclass_t rl_devclass;
|
||||||
|
|
||||||
DRIVER_MODULE(if_rl, pci, rl_driver, rl_devclass, 0, 0);
|
DRIVER_MODULE(if_rl, pci, rl_driver, rl_devclass, 0, 0);
|
||||||
DRIVER_MODULE(miibus, rl, miibus_driver, miibus_devclass, 0, 0);
|
DRIVER_MODULE(miibus, if_rl, miibus_driver, miibus_devclass, 0, 0);
|
||||||
|
|
||||||
#define EE_SET(x) \
|
#define EE_SET(x) \
|
||||||
CSR_WRITE_1(sc, RL_EECMD, \
|
CSR_WRITE_1(sc, RL_EECMD, \
|
||||||
|
@ -209,7 +209,7 @@ static driver_t sf_driver = {
|
|||||||
static devclass_t sf_devclass;
|
static devclass_t sf_devclass;
|
||||||
|
|
||||||
DRIVER_MODULE(if_sf, pci, sf_driver, sf_devclass, 0, 0);
|
DRIVER_MODULE(if_sf, pci, sf_driver, sf_devclass, 0, 0);
|
||||||
DRIVER_MODULE(miibus, sf, miibus_driver, miibus_devclass, 0, 0);
|
DRIVER_MODULE(miibus, if_sf, miibus_driver, miibus_devclass, 0, 0);
|
||||||
|
|
||||||
#define SF_SETBIT(sc, reg, x) \
|
#define SF_SETBIT(sc, reg, x) \
|
||||||
csr_write_4(sc, reg, csr_read_4(sc, reg) | x)
|
csr_write_4(sc, reg, csr_read_4(sc, reg) | x)
|
||||||
|
@ -186,7 +186,7 @@ static driver_t sis_driver = {
|
|||||||
static devclass_t sis_devclass;
|
static devclass_t sis_devclass;
|
||||||
|
|
||||||
DRIVER_MODULE(if_sis, pci, sis_driver, sis_devclass, 0, 0);
|
DRIVER_MODULE(if_sis, pci, sis_driver, sis_devclass, 0, 0);
|
||||||
DRIVER_MODULE(miibus, sis, miibus_driver, miibus_devclass, 0, 0);
|
DRIVER_MODULE(miibus, if_sis, miibus_driver, miibus_devclass, 0, 0);
|
||||||
|
|
||||||
#define SIS_SETBIT(sc, reg, x) \
|
#define SIS_SETBIT(sc, reg, x) \
|
||||||
CSR_WRITE_4(sc, reg, \
|
CSR_WRITE_4(sc, reg, \
|
||||||
|
@ -173,7 +173,7 @@ static driver_t ste_driver = {
|
|||||||
static devclass_t ste_devclass;
|
static devclass_t ste_devclass;
|
||||||
|
|
||||||
DRIVER_MODULE(if_ste, pci, ste_driver, ste_devclass, 0, 0);
|
DRIVER_MODULE(if_ste, pci, ste_driver, ste_devclass, 0, 0);
|
||||||
DRIVER_MODULE(miibus, ste, miibus_driver, miibus_devclass, 0, 0);
|
DRIVER_MODULE(miibus, if_ste, miibus_driver, miibus_devclass, 0, 0);
|
||||||
|
|
||||||
#define STE_SETBIT4(sc, reg, x) \
|
#define STE_SETBIT4(sc, reg, x) \
|
||||||
CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | x)
|
CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | x)
|
||||||
|
@ -362,7 +362,7 @@ static driver_t tl_driver = {
|
|||||||
static devclass_t tl_devclass;
|
static devclass_t tl_devclass;
|
||||||
|
|
||||||
DRIVER_MODULE(if_tl, pci, tl_driver, tl_devclass, 0, 0);
|
DRIVER_MODULE(if_tl, pci, tl_driver, tl_devclass, 0, 0);
|
||||||
DRIVER_MODULE(miibus, tl, miibus_driver, miibus_devclass, 0, 0);
|
DRIVER_MODULE(miibus, if_tl, miibus_driver, miibus_devclass, 0, 0);
|
||||||
|
|
||||||
static u_int8_t tl_dio_read8(sc, reg)
|
static u_int8_t tl_dio_read8(sc, reg)
|
||||||
struct tl_softc *sc;
|
struct tl_softc *sc;
|
||||||
|
@ -203,7 +203,7 @@ static driver_t vr_driver = {
|
|||||||
static devclass_t vr_devclass;
|
static devclass_t vr_devclass;
|
||||||
|
|
||||||
DRIVER_MODULE(if_vr, pci, vr_driver, vr_devclass, 0, 0);
|
DRIVER_MODULE(if_vr, pci, vr_driver, vr_devclass, 0, 0);
|
||||||
DRIVER_MODULE(miibus, vr, miibus_driver, miibus_devclass, 0, 0);
|
DRIVER_MODULE(miibus, if_vr, miibus_driver, miibus_devclass, 0, 0);
|
||||||
|
|
||||||
#define VR_SETBIT(sc, reg, x) \
|
#define VR_SETBIT(sc, reg, x) \
|
||||||
CSR_WRITE_1(sc, reg, \
|
CSR_WRITE_1(sc, reg, \
|
||||||
|
@ -230,7 +230,7 @@ static driver_t wb_driver = {
|
|||||||
static devclass_t wb_devclass;
|
static devclass_t wb_devclass;
|
||||||
|
|
||||||
DRIVER_MODULE(if_wb, pci, wb_driver, wb_devclass, 0, 0);
|
DRIVER_MODULE(if_wb, pci, wb_driver, wb_devclass, 0, 0);
|
||||||
DRIVER_MODULE(miibus, wb, miibus_driver, miibus_devclass, 0, 0);
|
DRIVER_MODULE(miibus, if_wb, miibus_driver, miibus_devclass, 0, 0);
|
||||||
|
|
||||||
#define WB_SETBIT(sc, reg, x) \
|
#define WB_SETBIT(sc, reg, x) \
|
||||||
CSR_WRITE_4(sc, reg, \
|
CSR_WRITE_4(sc, reg, \
|
||||||
|
@ -285,7 +285,7 @@ static driver_t xl_driver = {
|
|||||||
static devclass_t xl_devclass;
|
static devclass_t xl_devclass;
|
||||||
|
|
||||||
DRIVER_MODULE(if_xl, pci, xl_driver, xl_devclass, 0, 0);
|
DRIVER_MODULE(if_xl, pci, xl_driver, xl_devclass, 0, 0);
|
||||||
DRIVER_MODULE(miibus, xl, miibus_driver, miibus_devclass, 0, 0);
|
DRIVER_MODULE(miibus, if_xl, miibus_driver, miibus_devclass, 0, 0);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Murphy's law says that it's possible the chip can wedge and
|
* Murphy's law says that it's possible the chip can wedge and
|
||||||
|
Loading…
Reference in New Issue
Block a user