diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-03-26 15:13:18 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-01 09:15:29 +0200 |
commit | acab7270b6a4f09a06b0d74ebb01467ae63680df (patch) | |
tree | 81b6fc9e3f93010276b7c5fb0b24c3e13353bd5b | |
parent | if_dwc: Silence warning (diff) | |
download | rtems-libbsd-acab7270b6a4f09a06b0d74ebb01467ae63680df.tar.bz2 |
if_dwc: Workaround for missing FDT support
-rw-r--r-- | freebsd/sys/dev/dwc/if_dwc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/freebsd/sys/dev/dwc/if_dwc.c b/freebsd/sys/dev/dwc/if_dwc.c index 857f146c..4aaad5dd 100644 --- a/freebsd/sys/dev/dwc/if_dwc.c +++ b/freebsd/sys/dev/dwc/if_dwc.c @@ -56,10 +56,12 @@ __FBSDID("$FreeBSD$"); #include <sys/sockio.h> #include <sys/sysctl.h> +#ifndef __rtems__ #include <dev/fdt/fdt_common.h> #include <dev/ofw/openfirm.h> #include <dev/ofw/ofw_bus.h> #include <dev/ofw/ofw_bus_subr.h> +#endif /* __rtems__ */ #include <net/bpf.h> #include <net/if.h> @@ -71,7 +73,9 @@ __FBSDID("$FreeBSD$"); #include <net/if_vlan_var.h> #include <machine/bus.h> +#ifndef __rtems__ #include <machine/fdt.h> +#endif /* __rtems__ */ #include <dev/mii/mii.h> #include <dev/mii/miivar.h> @@ -1096,11 +1100,13 @@ static int dwc_probe(device_t dev) { +#ifndef __rtems__ if (!ofw_bus_status_okay(dev)) return (ENXIO); if (!ofw_bus_is_compatible(dev, "snps,dwmac")) return (ENXIO); +#endif /* __rtems__ */ device_set_desc(dev, "Gigabit Ethernet Controller"); return (BUS_PROBE_DEFAULT); |