This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

mac adress setup for edb7xxx network interface


In the ethernet driver setup for the edb7xxx boards the hardware address is
set to a fixed value
( devs/arm/eth/arm/edb7xxxx/current/src/if_edb7xxx.c line line 174 - 178 )

my board (edb7111-2) is equipped with an eeprom which contains a
configuration for the ethenet chip.
Is it possible to check for the eprom_present and eeprom_ok bits in the
status register?

you'd get something like this:

if( !(chip_status&PP_SelfStat_EEPROM) ||
!(chip_status&PP_SelfStat_EEPROM_OK) )
{   // no eeprom present  or eeprom not OK
     // Set up hardware address - FIXME
    for (i = 0;  i < ETHER_ADDR_LEN;  i += 2) {
        put_reg(PP_LAF+i, 0xFFFF);
        put_reg(PP_IA+i, enaddr[i] | (enaddr[i+1] << 8));
    }
}

was this not implemented because of time pressure, or is there some other
reason and might it break something?
Rene




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]