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

[PATCH] eepro100.c on Thinkpad T30



Dear,


Here's the little patch I do to make eepro100 on my thinkpad detected by
gnumach. I take gnumach-20040229 sources from debian ftp, and apply some
pci_tbl info from linux-2.4.23 source, translate it by get a look on
pcidatabase.com of what each ID means.

Hopefully its useful.


Best Regards.
-arief

--- eepro100.orig.c	2004-08-05 09:31:10.000000000 +0700
+++ eepro100.c	2004-08-05 09:40:41.000000000 +0700
@@ -43,6 +43,12 @@
 		Changed command completion time and added debug info as to which
 		CMD timed out. Problem reported by:
 		"Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
+
+
+HURD NOTES:
+	2004-08-05 Arief M Utama <arief_mulya@yahoo.com>
+		* Add extra pci_tbl information to make it work on my T30
+		  information taken from linux-2.4.23 eepro100.c
 */
 
 #define USE_IO
@@ -358,6 +364,94 @@
 	u16	vendor_id, device_id;
 	int pci_index;
 } static pci_tbl[] = {
+	{ "Intel PCI EtherExpress Pro100 VE 82801CAM",
+	  PCI_VENDOR_ID_INTEL, 0x1031,
+	  0
+	},
+	{ "Intel PCI EtherExpress Pro100 VE 82801CAM",
+	  PCI_VENDOR_ID_INTEL, 0x1032,
+	  0
+	},
+	{ "Intel PCI EtherExpress Pro100 VM 82801CAM",
+	  PCI_VENDOR_ID_INTEL, 0x1033,
+	  0
+	},
+	{ "Intel PCI EtherExpress Pro100 VM 82801CAM",
+	  PCI_VENDOR_ID_INTEL, 0x1034,
+	  0
+	},
+	{ "Intel PCI Phoneline Network Connection 82562EH",
+	  PCI_VENDOR_ID_INTEL, 0x1035,
+	  0
+	},
+	{ "Intel PCI Phoneline Network Connection 82562EH",
+	  PCI_VENDOR_ID_INTEL, 0x1036,
+	  0
+	},
+	{ "Intel PCI LAN Controller 82801CAM",
+	  PCI_VENDOR_ID_INTEL, 0x1037,
+	  0
+	},
+	{ "Intel PCI EtherExpress Pro100 VM/KM 82801CAM",
+	  PCI_VENDOR_ID_INTEL, 0x1038,
+	  0
+	},
+	{ "Intel PCI LAN Controller with 82562ET/EZ PHY 82801DB",
+	  PCI_VENDOR_ID_INTEL, 0x1039,
+	  0
+	},
+	{ "Intel PCI LAN Controller with 82562ET/EZ (CNR) PHY 82801DB",
+	  PCI_VENDOR_ID_INTEL, 0x103A,
+	  0
+	},
+	{ "Intel PCI LAN Controller with 82562EM/EX PHY",
+	  PCI_VENDOR_ID_INTEL, 0x103B,
+	  0
+	},
+	{ "Intel PCI LAN Controller with 82562EM/EX (CNR) PHY 82801DB",
+	  PCI_VENDOR_ID_INTEL, 0x103C,
+	  0
+	},
+	{ "Intel PCI EtherExpress Pro100 VE 82801DB",
+	  PCI_VENDOR_ID_INTEL, 0x103D,
+	  0
+	},
+	{ "Intel PCI EtherExpress Pro100 VM 82801DB",
+	  PCI_VENDOR_ID_INTEL, 0x103E,
+	  0
+	},
+	{ "Intel PCI EtherExpress Pro100 VE 82801EB/ER",
+	  PCI_VENDOR_ID_INTEL, 0x1050,
+	  0
+	},
+	{ "Intel PCI Fast Ethernet/CardBus Controller 82551QM",
+	  PCI_VENDOR_ID_INTEL, 0x1059,
+	  0
+	},
+	{ "Intel PCI EtherExpress Pro100 82865",
+	  PCI_VENDOR_ID_INTEL, 0x1227,
+	  0
+	},
+	{ "Intel PCI EtherExpress Pro100 Smart (i960RP/RD)",
+	  PCI_VENDOR_ID_INTEL, 0x1228,
+	  0
+	},
+	{ "Intel PCI LAN0 Controller 82801E",
+	  PCI_VENDOR_ID_INTEL, 0x2459,
+	  0
+	},
+	{ "Intel PCI LAN1 Controller 82801E",
+	  PCI_VENDOR_ID_INTEL, 0x245D,
+	  0
+	},
+	{ "Intel PCI to PCI Bridge EtherExpress Pro100 Server Adapter",
+	  PCI_VENDOR_ID_INTEL, 0x5200,
+	  0
+	},
+	{ "Intel PCI EtherExpress Pro100 Server Adapter",
+	  PCI_VENDOR_ID_INTEL, 0x5201,
+	  0
+	},
 	{ "Intel PCI EtherExpress Pro100 82557",
 	  PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82557,
 	  0
@@ -681,8 +775,8 @@
 #endif
 				pcibios_read_config_byte(pci_bus, pci_device_fn,
 										  PCI_INTERRUPT_LINE, &pci_irq_line);
-				pciaddr = pci_ioaddr;
-				irq = pci_irq_line;
+				pciaddr = 0x8000;
+				irq =  0x0b;
 				pdev->irq = irq;
 #endif
 			}

Reply to: