Changeset cd524ab in libbsdport


Ignore:
Timestamp:
Apr 23, 2009, 4:24:04 AM (10 years ago)
Author:
Till Straumann <strauman@…>
Branches:
master
Children:
86beed8
Parents:
534996e
Message:
  • fixed ETHER_SIOCMULTIFRAG() macro. Need to reset 'e' (error) to zero if ether_addmulti()/ether_delmulti() return ENETRESET (which is acually an OK status).
  • moved mii_mediachg() dummy from libbsdport.h to libbsdport_post.h
File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsd_eth_drivers/libbsdport/libbsdport_post.h

    r534996e rcd524ab  
    1111#undef  SYSCTL_ADD_INT
    1212#define SYSCTL_ADD_INT(unused...)  do { } while (0)
     13
     14#define RTEMS_SYSCTL_NOTYETSUP
    1315#endif
    1416
     
    8890
    8991#define ETHER_SIOCMULTIFRAG(e, c, ifr, ifp)                    \
    90         ( ENETRESET != (e = (SIOCADDMULTI == (c) ?                 \
     92        ( ((e) = (SIOCADDMULTI == (c) ?                            \
    9193                        ether_addmulti((ifr), (struct arpcom*)(ifp)) :     \
    92                         ether_delmulti((ifr), (struct arpcom*)(ifp)) )))   \
     94                        ether_delmulti((ifr), (struct arpcom*)(ifp)) )),   \
     95          ((e) = ENETRESET == (e) ? 0 : (e)) )
    9396
    9497#define arp_ifinit(ifp, ifa) arp_ifinit((struct arpcom *)ifp, ifa)
    9598
     99
     100#define mii_mediachg(mii) do {} while (0)
     101
     102/* find the currently active PHY; assume bootloader or firmware
     103 * has set it up already.
     104 *
     105 * RETURNS: phy idx 0..31 or -1 on error
     106 */
     107int
     108rtems_mii_phy_probe(struct rtems_mdio_info *mdio, void *if_softc);
Note: See TracChangeset for help on using the changeset viewer.