Changeset 1199e1c in libbsdport


Ignore:
Timestamp:
Apr 23, 2009, 4:42:27 AM (10 years ago)
Author:
Till Straumann <strauman@…>
Branches:
master
Children:
c877b08
Parents:
c8c8daa
Message:
  • removed definition of 'bootverbose' (now in libbsdport)
  • removed definition of 'bswap32' (now in libbsdport)
  • removed definition of 'callout_active' (now in libbsdport)
  • removed definition of 'callout_pending' (now in libbsdport)
  • removed bus_dmamap_load() -- I believe the version from libbsdport should work (but setting the bus addr to zero probably not).
  • added (rtems) specific code to set multicast address filter
  • added ETHER_SIOCMULTIFRAG() macro (rtems specific) to ioctl.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsd_eth_drivers/if_bge/if_bge.c

    rc8c8daa r1199e1c  
    139139#ifdef __rtems__
    140140#include <libbsdport_post.h>
    141 #define bootverbose 0
    142 #define bswap32(_x) CPU_swap_u32(_x)
    143141#define TUNABLE_INT(_a,_b)
    144142#define m_cljget(_a, _b, _c)
    145143#define MJUM9BYTES 0
    146 #define bus_dmamap_load(a, b, c, d, e, _ctx, g) 0; (_ctx)->bge_busaddr = 0
    147144#define static
    148145#define PCIM_MSICTRL_MSI_ENABLE 0
    149 #define callout_pending(_a) 1
    150 #define callout_active(_a) 1
    151146#define M_WRITABLE(_m) 1
    152147#define m_collapse(_m, _f, _f1) (_m)
     
    12141209#ifndef __rtems__
    12151210        struct ifmultiaddr *ifma;
     1211#endif
    12161212        int h;
    1217 #endif
    12181213        uint32_t hashes[4] = { 0, 0, 0, 0 };
    12191214        int i;
     
    12451240        IF_ADDR_UNLOCK(ifp);
    12461241#else
    1247         #warning "multiaddrs TBD"
     1242        {
     1243        /* UNTESTED */
     1244        struct ether_multi     *enm;
     1245        struct ether_multistep step;
     1246        ETHER_FIRST_MULTI(step, (struct arpcom*)ifp, enm);
     1247        while ( enm != NULL ) {
     1248                h = ether_crc32_le(enm->enm_addrlo, ETHER_ADDR_LEN) & 0x7F;
     1249                hashes[(h & 0x60) >> 5] |= 1 << (h & 0x1F);
     1250                ETHER_NEXT_MULTI( step, enm );
     1251        }
     1252        }
    12481253#endif
    12491254
     
    41894194        case SIOCADDMULTI:
    41904195        case SIOCDELMULTI:
     4196#ifdef __rtems__
     4197                if ( ETHER_SIOCMULTIFRAG(error, command, ifr, ifp) )
     4198                        break;
     4199#endif
    41914200                if (ifp->if_drv_flags & IFF_DRV_RUNNING) {
    41924201                        BGE_LOCK(sc);
Note: See TracChangeset for help on using the changeset viewer.