This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Reload ESA from EEPROM (Rhine ethernet drivers)
- From: "Guillaume Menant" <g dot menant at ayrtontechnology dot com>
- To: <ecos-discuss at sources dot redhat dot com>
- Cc: <jskov at redhat dot com>
- Date: Mon, 12 Feb 2007 17:24:34 +0100
- Subject: [ECOS] 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