This is the mail archive of the ecos-discuss@sourceware.org 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]
Other format: [Raw text]

Reload ESA from EEPROM (Rhine ethernet drivers)


Hi, 

My problem is that before the HAL_PCI_IO_WRITE_UINT8 instruction I succeed
to read the MAC address but after it I read other data which are not the
real MAC address.

What is the meaning of these lines in Rhine ethernet driver?

                    diag_printf("Reload ESA from EEPROM...");
                    HAL_PCI_IO_WRITE_UINT8(cpd->base+RHINE_EECSR, 0x20);

                    for (i = 0; i < 150; i++) 
                    {
                        HAL_PCI_IO_READ_UINT8(cpd->base+RHINE_EECSR, tmp);
                        if (!(tmp & 0x20)) 
                        {
                            break;
                        }
                    }
                    if (tmp & 0x20)
                        diag_printf("Timed out\n");
                    else
                        diag_printf("Done\n");


Thanks in advance.

Guillaume MENANT



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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