[Etherboot-developers] 3c509 driver and the troublesome 486
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: Timothy L. <tl...@ro...> - 2003-03-27 02:43:26
|
Hi
In order to get the 3c509 driver to find the card on my 486, I need to
and the old DELAY function:
static void DELAY(int val)
{
int c;
for (c = 0; c < val; c += 20) {
twiddle();
}
}
and change get_eeprom_data as follows (changing the udelay to 60000 does
not help):
static int
get_eeprom_data(int id_port, int offset)
{
int i, data = 0;
outb(0x80 + offset, id_port);
/* Do we really need this wait? Won't be noticeable anyway */
- udelay(10000);
+ DELAY(350);
for (i = 0; i < 16; i++)
data = (data << 1) | (inw(id_port) & 1);
return (data);
}
Some time ago someone mentioned that perhaps currticks was not working
correctly on my 486. How can I find out?
Tim
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003
|