* libnetworking/rtems/rtems_mii_ioctl_kern.c: Do not use IFM_ACTIVE
	and IFM_AVALID in the media word.
	* libnetworking/net/if_media.h: Hack to get libbsdport interface
	drivers working.
This commit is contained in:
Sebastian Huber
2011-02-25 10:38:17 +00:00
parent f154804273
commit ebe6edbcf1
3 changed files with 14 additions and 3 deletions

View File

@@ -1,3 +1,10 @@
2011-02-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/rtems/rtems_mii_ioctl_kern.c: Do not use IFM_ACTIVE
and IFM_AVALID in the media word.
* libnetworking/net/if_media.h: Hack to get libbsdport interface
drivers working.
2011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org> 2011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/sleep_noposix.c: Remove. * libcsupport/src/sleep_noposix.c: Remove.

View File

@@ -253,8 +253,12 @@ int ifmedia_ioctl(struct ifnet *ifp, struct ifreq *ifr,
/* /*
* Status bits * Status bits
*/ */
#define IFM_AVALID 0x00000001 /* Active bit valid */ /*
#define IFM_ACTIVE 0x00000002 /* Interface attached to working net */ * FIXME: This is a hack to get the libbsdport interface drivers working. See
* also rtems_mii_ioctl.h.
*/
#define IFM_AVALID IFM_FLAG0 /* Active bit valid */
#define IFM_ACTIVE IFM_FLAG0 /* Interface attached to working net */
/* /*
* Macros to extract various bits of information from the media word. * Macros to extract various bits of information from the media word.

View File

@@ -118,7 +118,7 @@ rtems_mii_ioctl (struct rtems_mdio_info *info, void *uarg, uint32_t cmd,
/* link status */ /* link status */
if (BMSR_LINK & bmsr) if (BMSR_LINK & bmsr)
options |= IFM_LINK_OK | IFM_ACTIVE | IFM_AVALID; options |= IFM_LINK_OK;
/* do we have autonegotiation disabled ? */ /* do we have autonegotiation disabled ? */
if (!(BMCR_AUTOEN & bmcr)) { if (!(BMCR_AUTOEN & bmcr)) {