On 4/5/01 11:45 PM Ken Yap ke...@nl... wrote:
>static void rtl_disable(struct nic *nic)
>{
> /* reset the chip */
> outb(CmdReset, ioaddr + ChipCmd);
>
> /* 10 ms timeout */
> load_timer2(10*TICKS_PER_MS);
> while ((inb(ioaddr + ChipCmd) & CmdReset) != 0 && timer2_running())
> /* wait */;
>}
>
>and add #include "timer.h" near the top. The hardware timer is more
>consistent than a counting loop.
Thanks Ken! I just changed rom-o-matic.net to include this code in
4.6.12 and 4.7.23. I also made floppies and booted my test station, and
the code seems to function properly.
Many thanks to Mr. Hyun-Joon Cha for this contribution. We should
probably go through each driver to make sure that we are disabling the
NIC's receive and transmit engines either by explicitly turning them off
or resetting the NIC as is done here.
---
Try: http://rom-o-matic.net/ to make Etherboot images instantly.
Name: Marty Connor
US Mail: Entity Cyber, Inc.; P.O. Box 391827; Cambridge, MA 02139; USA
Voice: (617) 491-6935, Fax: (617) 491-7046
Email: md...@th...
Web: http://www.thinguin.org/
|