From c94bb491a0b693d095c1dbe979f1302ab02c13c4 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 26 Mar 2015 15:21:07 +0100 Subject: if_dwc: Add nexus device support --- freebsd/sys/dev/dwc/if_dwc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/freebsd/sys/dev/dwc/if_dwc.c b/freebsd/sys/dev/dwc/if_dwc.c index 15d4d594..bb92b9fc 100644 --- a/freebsd/sys/dev/dwc/if_dwc.c +++ b/freebsd/sys/dev/dwc/if_dwc.c @@ -1360,7 +1360,11 @@ static driver_t dwc_driver = { static devclass_t dwc_devclass; +#ifndef __rtems__ DRIVER_MODULE(dwc, simplebus, dwc_driver, dwc_devclass, 0, 0); +#else /* __rtems__ */ +DRIVER_MODULE(dwc, nexus, dwc_driver, dwc_devclass, 0, 0); +#endif /* __rtems__ */ DRIVER_MODULE(miibus, dwc, miibus_driver, miibus_devclass, 0, 0); MODULE_DEPEND(dwc, ether, 1, 1, 1); -- cgit v1.2.3