diff options
Diffstat (limited to 'freebsd/sys/dev/ffec/if_ffec.c')
-rw-r--r-- | freebsd/sys/dev/ffec/if_ffec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/sys/dev/ffec/if_ffec.c b/freebsd/sys/dev/ffec/if_ffec.c index 6df995c9..2fc94a6a 100644 --- a/freebsd/sys/dev/ffec/if_ffec.c +++ b/freebsd/sys/dev/ffec/if_ffec.c @@ -1458,7 +1458,11 @@ ffec_attach(device_t dev) sc->phy_conn_type = PHY_CONN_MII; else if (strcasecmp(phy_conn_name, "rmii") == 0) sc->phy_conn_type = PHY_CONN_RMII; +#ifndef __rtems__ else if (strcasecmp(phy_conn_name, "rgmii") == 0) +#else /* __rtems__ */ + else if (strncasecmp(phy_conn_name, "rgmii", 5) == 0) +#endif /* __rtems__ */ sc->phy_conn_type = PHY_CONN_RGMII; } if (sc->phy_conn_type == PHY_CONN_UNKNOWN) { |