public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* via-rhine and MMIO
@ 2001-10-29 13:06 Martin Eriksson
  2001-10-29 18:13 ` Urban Widmark
  2001-10-30  9:12 ` via-rhine and MMIO Jeff Garzik
  0 siblings, 2 replies; 7+ messages in thread
From: Martin Eriksson @ 2001-10-29 13:06 UTC (permalink / raw)
  To: linux-kernel

I have done some changes to the via-rhine driver in 2.4.13 to be able to run
with MMIO. I know it isn't really needed but I do it mainly for fun &
learning.

The most important change was to enable memory-mapped mode within the rhine
chip by a standard port-io call. I have got it all to work, and it works
under stress test too, but there is a section in the code that I wonder
about:

(drivers/net/via-rhine.c)
...
/* Reload the station address from the EEPROM. */
writeb(0x20, ioaddr + MACRegEEcsr);
/* Typically 2 cycles to reload. */
for (i = 0; i < 150; i++)
    if (! (readb(ioaddr + MACRegEEcsr) & 0x20))
        break;
...

If I run this code when I'm using MMIO, I get a hardware adress of
"ff:ff:ff:ff:ff:ff" instead of the right one (and everything craps up). But
when I comment out this part all is fine. So what's it needed for anyway?

_____________________________________________________
|  Martin Eriksson <nitrax@giron.wox.org>
|  MSc CSE student, department of Computing Science
|  Umeå University, Sweden



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-11-03 15:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-29 13:06 via-rhine and MMIO Martin Eriksson
2001-10-29 18:13 ` Urban Widmark
2001-10-29 20:11   ` Martin Eriksson
2001-10-29 21:22     ` Urban Widmark
2001-10-29 21:36   ` Experimental via-rhine.c, mmio enabled Martin Eriksson
2001-10-30  9:12 ` via-rhine and MMIO Jeff Garzik
2001-11-03 15:55   ` [patch] " Urban Widmark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox