mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-29 04:21:30 +08:00
ffec: Port to RTEMS
This commit is contained in:
parent
807b5bb2c3
commit
95b102f733
@ -1464,7 +1464,11 @@ ffec_attach(device_t dev)
|
||||
if (sc->phy_conn_type == PHY_CONN_UNKNOWN) {
|
||||
device_printf(sc->dev, "No valid 'phy-mode' "
|
||||
"property found in FDT data for device.\n");
|
||||
#ifndef __rtems__
|
||||
error = ENOATTR;
|
||||
#else /* __rtems__ */
|
||||
error = ENXIO;
|
||||
#endif /* __rtems__ */
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
@ -1220,6 +1220,7 @@ def dev_net(mm):
|
||||
mod = builder.Module('dev_net')
|
||||
mod.addKernelSpaceHeaderFiles(
|
||||
[
|
||||
'sys/dev/ffec/if_ffecreg.h',
|
||||
'sys/dev/mii/mii.h',
|
||||
'sys/dev/mii/mii_bitbang.h',
|
||||
'sys/dev/mii/miivar.h',
|
||||
@ -1253,6 +1254,7 @@ def dev_net(mm):
|
||||
)
|
||||
mod.addKernelSpaceSourceFiles(
|
||||
[
|
||||
'sys/dev/ffec/if_ffec.c',
|
||||
'sys/dev/mii/mii.c',
|
||||
'sys/dev/mii/mii_bitbang.c',
|
||||
'sys/dev/mii/mii_physubr.c',
|
||||
|
@ -1616,6 +1616,7 @@ def build(bld):
|
||||
'freebsd/sys/dev/evdev/uinput.c',
|
||||
'freebsd/sys/dev/fdt/fdt_common.c',
|
||||
'freebsd/sys/dev/fdt/simplebus.c',
|
||||
'freebsd/sys/dev/ffec/if_ffec.c',
|
||||
'freebsd/sys/dev/fxp/if_fxp.c',
|
||||
'freebsd/sys/dev/kbd/kbd.c',
|
||||
'freebsd/sys/dev/led/led.c',
|
||||
|
@ -113,6 +113,13 @@ RTEMS_BSD_DRIVER_MMC;
|
||||
RTEMS_BSD_DRIVER_USB;
|
||||
RTEMS_BSD_DRIVER_USB_MASS;
|
||||
|
||||
#elif defined(LIBBSP_ARM_IMX_BSP_H)
|
||||
|
||||
RTEMS_BSD_DEFINE_NEXUS_DEVICE(ofwbus, 0, 0, NULL);
|
||||
SYSINIT_DRIVER_REFERENCE(simplebus, ofwbus);
|
||||
SYSINIT_DRIVER_REFERENCE(ffec, simplebus);
|
||||
SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
|
||||
|
||||
#elif defined(LIBBSP_ARM_LPC24XX_BSP_H)
|
||||
|
||||
RTEMS_BSD_DEFINE_NEXUS_DEVICE(ohci, 0, 0, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user