Changeset 2a2b206 in rtems for c/src/libchip/network/smc91111.h


Ignore:
Timestamp:
Sep 12, 2007, 3:41:43 PM (14 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
98f890b
Parents:
47b29ac
Message:

2007-09-12 Daniel Hellstrom <daniel@…>

  • libchip/network/smc91111.c, libchip/network/smc91111.h: Multiple fixes.
    • Odd bit bug in some chips taken care of.
    • Buggy ASSERT removed, it seem to be inserted to detect if MBUF data alignment but failing to do so must have made the driver writer to make some incorrect assumptions about MBUFs.
    • Fixed MBUF handling to handle mbuf chains better. The Data length of MBUFs in middle of the mbuf chain are now checked for odd number of bytes.
    • Made while loop responsible for copying data to fifo port copy 16 shorts per loop instead of 1 short, increasing the copying process.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/network/smc91111.h

    r47b29ac r2a2b206  
    461461      dbg++;
    462462    }
    463 #else   
     463#else
    464464    db2_printf("%sread  reg %d:%x -> 0x%04x\n", dbg_prefix, regno>>3,(regno&0x7)*2, val);
    465465#endif
     
    484484      dbg++;
    485485    }
    486 #else   
     486#else
    487487    db2_printf("%swrite reg %d:%x <- 0x%04x\n", dbg_prefix, regno>>3,(regno&0x7)*2, val);
    488488#endif
     
    509509
    510510}
     511
     512/* Assumes bank2 has been selected*/
     513static __inline__ void
     514put_data8(struct lan91cxx_priv_data *cpd, unsigned char val)
     515{
     516    db2_printf("%s[bdata] <- 0x%02x\n", dbg_prefix, val);
     517   
     518    HAL_WRITE_UINT8(((unsigned char *)(cpd->base+((LAN91CXX_DATA & 0x7))))+1, val);
     519
     520}
     521
    511522#endif /* SMSC_PLATFORM_DEFINED_PUT_DATA*/
    512523
Note: See TracChangeset for help on using the changeset viewer.