Netboot Mailing List (by thread)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MX98715 hacked into submission.



On Tue, Nov 23, 1999 at 08:36:51AM -0500, Marty Connor wrote:
> 
> On 11/22/1999 12:01 AM micros@azstarnet.com Harry  McGregor wrote:
> 
> >I have some eproms that I intend to use for etherboot with both some 3c509
> >and some Cnet PRO120B network cards (MX clone of the dec tulip, I will see
> >if we can send in that we did to get it to work, I am not the one that
> >coded it... I should be able to get Nick to package it up).
> 
> This sounds great!  I have an MX clone card I have been trying to get to 
> work as well, and would be really interested in getting a driver that 
> works!
  Ask and ye shall recieve. The patch is three fold. The first two are
obviously just the addition of the PCI id to the tulip ids list. The third
is the ugly part. I just copy&pasted the mx98715 specific init code from the
Linux tulip driver 0.91g. It will probably break most other cards, but until
we create a better solution for clones this should get those cards usable.
  The attached .diff is from 4.3.9. It affects config.c, pci.h, and tulip.c.
  - Nick Lopez
    kimo_sabe@atdot.org
diff -ur etherboot-4.2/src-32/config.c etherboot-4.2-mine/src-32/config.c
--- etherboot-4.2/src-32/config.c	Sat Oct  2 03:50:58 1999
+++ etherboot-4.2-mine/src-32/config.c	Tue Nov 16 21:59:27 1999
@@ -79,6 +79,8 @@
 		"Digital Tulip+", 0, 0, 0},
 	{ PCI_VENDOR_ID_DEC,		PCI_DEVICE_ID_DEC_21142,
 		"Digital Tulip 21142", 0, 0, 0},
+	{ PCI_VENDOR_ID_MACRONIX,	PCI_DEVICE_ID_MX987x5,
+		"Macronix MX987x5", 0, 0, 0},
 #endif
 /* other PCI NICs go here */
 	{0,}
diff -ur etherboot-4.2/src-32/pci.h etherboot-4.2-mine/src-32/pci.h
--- etherboot-4.2/src-32/pci.h	Sat Oct  2 04:14:55 1999
+++ etherboot-4.2-mine/src-32/pci.h	Tue Nov 16 21:52:25 1999
@@ -114,6 +114,8 @@
 #ifndef PCI_DEVICE_ID_SMC_EPIC100
 # define PCI_DEVICE_ID_SMC_EPIC100	0x0005
 #endif
+#define PCI_VENDOR_ID_MACRONIX		0x10d9
+#define PCI_DEVICE_ID_MX987x5		0x0531
 
 struct pci_device {
 	unsigned short	vendor, dev_id;
diff -ur etherboot-4.2/src-32/tulip.c etherboot-4.2-mine/src-32/tulip.c
--- etherboot-4.2/src-32/tulip.c	Mon Jan 18 01:58:32 1999
+++ etherboot-4.2-mine/src-32/tulip.c	Tue Nov 16 16:22:50 1999
@@ -190,7 +190,11 @@
         outl(0x50008, ioaddr + CSR15);
 
         /* end  set to 10Mbps half-duplex */
-
+	/* do stuff for MX98715 */
+	outl(0x01a80000, ioaddr + CSR6);
+	outl(0xFFFFFFFF, ioaddr + CSR14);
+	outl(0x00001000, ioaddr + CSR12);
+							
         outl(0x0, ioaddr + CSR7);       /* disable interrupts */
 
         /* construct setup packet which is used by the 21143 to


For requests or suggestions regarding this mailing list archive please write to netboot@gkminix.han.de.