[Etherboot-developers] 5.1.4/5: patch for tulip.c
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: <ke...@us...> - 2003-01-09 12:47:41
|
Posting this because the tulip is a widely used chip and any
confirmation that this patch works will allow us to tick off this driver
as working for 5.1.x.
Index: tulip.c
===================================================================
RCS file: /cvsroot/etherboot/etherboot/etherboot-5.1/src/drivers/net/tulip.c,v
retrieving revision 1.2
diff -u -r1.2 tulip.c
--- tulip.c 27 Dec 2002 12:44:36 -0000 1.2
+++ tulip.c 9 Jan 2003 12:44:01 -0000
@@ -1014,8 +1014,8 @@
}
/* Point to rx and tx descriptors */
- outl((unsigned long)&rx_ring[0], ioaddr + CSR3);
- outl((unsigned long)&tx_ring[0], ioaddr + CSR4);
+ outl(virt_to_le32desc(&rx_ring[0]), ioaddr + CSR3);
+ outl(virt_to_le32desc(&tx_ring[0]), ioaddr + CSR4);
init_media(nic);
|