[3109] in linux-net channel archive
lance driver don't known pcne
daemon@ATHENA.MIT.EDU (Tekno Soft Snc)
Tue Jun 4 19:59:03 1996
To: linux-net@vger.rutgers.edu
Date: Tue, 4 Jun 96 19:02:49 CEST
From: Tekno Soft Snc <MC3641@mclink.it>
Why the lance driver don't known the PCnet/PCI II card ?
This patch was send me by Thomas Bogendoerfer
<tsbogend@bigbug.franken.de>.
--- cut here --- cut here --- cut here --- cut here --- cut here ---
--- linux/drivers/net/lance.old Tue Jun 4 10:22:02 1996
+++ linux/drivers/net/lance.c Tue Jun 4 10:25:04 1996
@@ -165,6 +165,7 @@
* - added support for Linux/Alpha, but removed most of it, because
* it worked only for the PCI chip.
* - added hook for the 32bit lance driver
+ * - added PCnetPCI II (79C970A) to chip table
*
* Paul Gortmaker (gpg109@rsphy1.anu.edu.au):
* - hopefully fix above so Linux/Alpha can use ISA cards too.
@@ -268,12 +269,15 @@
{0x2430, "PCnet32", /* 79C965
PCnet for VL bus. */
LANCE_ENABLE_AUTOSELECT + LANCE_MUST_REINIT_RING +
LANCE_HAS_MISSED_FRAME},
+ {0x2621, "PCnet/PCI-II 79C970A", /* 79C970A PCInetPCI II.
*/
+ LANCE_ENABLE_AUTOSELECT + LANCE_MUST_REINIT_RING +
+ LANCE_HAS_MISSED_FRAME},
{0x0, "PCnet (unknown)",
LANCE_ENABLE_AUTOSELECT + LANCE_MUST_REINIT_RING +
LANCE_HAS_MISSED_FRAME},
};
-enum {OLD_LANCE = 0, PCNET_ISA=1, PCNET_ISAP=2, PCNET_PCI=3, PCNET_VLB=4,
LANCE_UNKNOWN=5};
+enum {OLD_LANCE = 0, PCNET_ISA=1, PCNET_ISAP=2, PCNET_PCI=3, PCNET_VLB=4,
PCNET_PCI_II=5, LANCE_UNKNOWN=6};
/* Non-zero only if the current card is a PCI with BIOS-set IRQ. */
static unsigned char pci_irq_line = 0;
@@ -437,7 +441,7 @@
#ifdef CONFIG_LANCE32
/* look if it's a PCI or VLB chip */
- if (lance_version == PCNET_PCI || lance_version == PCNET_VLB) {
+ if (lance_version == PCNET_PCI || lance_version == PCNET_VLB ||
lance_version == PCNET_PCI_II) {
extern void lance32_probe1 (struct device *dev, const char
*chipname, int pci_irq_line);
lance32_probe1 (dev, chipname, pci_irq_line);
--- cut here --- cut here --- cut here --- cut here --- cut here ---
--
Roberto Fichera - email MC3641@mclink.it
TeknoSOFT s.n.c.