diff --git a/freebsd/sys/dev/mii/e1000phy.c b/freebsd/sys/dev/mii/e1000phy.c index 47f77d15..f50d41a9 100644 --- a/freebsd/sys/dev/mii/e1000phy.c +++ b/freebsd/sys/dev/mii/e1000phy.c @@ -60,6 +60,12 @@ __FBSDID("$FreeBSD$"); #include #include +#ifdef __rtems__ + /* hacked into here to avoid having to touch the geerated header file. */ + #define MII_MODEL_xxMARVELL_E1512 0x001d + #define MII_STR_xxMARVELL_E1512 "Marvell 88E1512 Gigabit PHY" +#endif /* __rtems__ */ + #include #include @@ -112,6 +118,9 @@ static const struct mii_phydesc e1000phys[] = { MII_PHY_DESC(xxMARVELL, E1149R), MII_PHY_DESC(xxMARVELL, E3016), MII_PHY_DESC(xxMARVELL, PHYG65G), +#if __rtems__ + MII_PHY_DESC(xxMARVELL, E1512), +#endif /* __rtems__ */ MII_PHY_END };