mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.4.19-pre6] via-rhine.c to support new VIA's nic chip VT6 105, V6105M.
@ 2002-04-12  8:13 Shing Chuang
  2002-04-12  8:52 ` [PATCH 2.4.19-pre6] via-rhine.c to support new VIA's nic chip VT6105, V6105M Martin Eriksson
  0 siblings, 1 reply; 2+ messages in thread
From: Shing Chuang @ 2002-04-12  8:13 UTC (permalink / raw)
  To: linux-kernel; +Cc: AJ Jiang, Shing Chuang

Hi,

      This patch applied to linux kernel 2.4.19-per6 to support VIA's new
NIC chip.
      However, VIA don't have any nic chip with pci device id 0x6100 so far,
so this patch also remove the device ID 0x6100.

       
--- linux/drivers/net/via-rhine.c.orig	Fri Apr 12 15:36:38 2002
+++ linux/drivers/net/via-rhine.c	Fri Apr 12 15:39:04 2002
@@ -317,7 +317,8 @@
 enum via_rhine_chips {
 	VT86C100A = 0,
 	VT6102,
-	VT3043,
+	VT6105,
+	VT6105M,
 };
 
 struct via_rhine_chip_info {
@@ -345,7 +346,9 @@
 	  CanHaveMII | ReqTxAlign },
 	{ "VIA VT6102 Rhine-II", RHINE_IOTYPE, 256,
 	  CanHaveMII | HasWOL },
-	{ "VIA VT3043 Rhine",    RHINE_IOTYPE, 128,
+	{ "VIA VT6105 Rhine-III",    RHINE_IOTYPE, 256,
+	  CanHaveMII | ReqTxAlign },
+	{ "VIA VT6105M Rhine-III",    RHINE_IOTYPE, 256,
 	  CanHaveMII | ReqTxAlign }
 };
 
@@ -353,7 +356,8 @@
 {
 	{0x1106, 0x6100, PCI_ANY_ID, PCI_ANY_ID, 0, 0, VT86C100A},
 	{0x1106, 0x3065, PCI_ANY_ID, PCI_ANY_ID, 0, 0, VT6102},
-	{0x1106, 0x3043, PCI_ANY_ID, PCI_ANY_ID, 0, 0, VT3043},
+	{0x1106, 0x3106, PCI_ANY_ID, PCI_ANY_ID, 0, 0, VT6105},
+	{0x1106, 0x3106, PCI_ANY_ID, PCI_ANY_ID, 0, 0, VT6105M},
 	{0,}			/* terminate list */
 };
 MODULE_DEVICE_TABLE(pci, via_rhine_pci_tbl);
@@ -510,7 +514,7 @@
 	int i;
 
 	/* 3043 may need long delay after reset (dlink) */
-	if (chip_id == VT3043 || chip_id == VT86C100A)
+	if (chip_id == VT86C100A)
 		udelay(100);
 
 	i = 0;
@@ -531,7 +535,7 @@
 static void __devinit enable_mmio(long ioaddr, int chip_id)
 {
 	int n;
-	if (chip_id == VT3043 || chip_id == VT86C100A) {
+	if (chip_id == VT86C100A) {
 		/* More recent docs say that this bit is reserved ... */
 		n = inb(ioaddr + ConfigA) | 0x20;
 		outb(n, ioaddr + ConfigA);

-- 
Chuang Liang-Shing
VIA Technologies, Inc.
+886-2-22185452 Ext. 7523
E-Mail: ShingChuang@via.com.tw


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

* Re: [PATCH 2.4.19-pre6] via-rhine.c to support new VIA's nic chip VT6105, V6105M.
  2002-04-12  8:13 [PATCH 2.4.19-pre6] via-rhine.c to support new VIA's nic chip VT6 105, V6105M Shing Chuang
@ 2002-04-12  8:52 ` Martin Eriksson
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Eriksson @ 2002-04-12  8:52 UTC (permalink / raw)
  To: Shing Chuang, linux-kernel

----- Original Message -----
From: "Shing Chuang" <ShingChuang@via.com.tw>


> Hi,
>
>       This patch applied to linux kernel 2.4.19-per6 to support VIA's new
> NIC chip.
>       However, VIA don't have any nic chip with pci device id 0x6100 so
far,
> so this patch also remove the device ID 0x6100.
>
Typo here I guess... (it removes ID 0x3043)

<snip>
> @@ -345,7 +346,9 @@
>     CanHaveMII | ReqTxAlign },
>   { "VIA VT6102 Rhine-II", RHINE_IOTYPE, 256,
>     CanHaveMII | HasWOL },
> - { "VIA VT3043 Rhine",    RHINE_IOTYPE, 128,
> + { "VIA VT6105 Rhine-III",    RHINE_IOTYPE, 256,
> +   CanHaveMII | ReqTxAlign },
> + { "VIA VT6105M Rhine-III",    RHINE_IOTYPE, 256,
>     CanHaveMII | ReqTxAlign }
>  };

Strange that Rhine-II doesn't require TxAlign, still the newer Rhine-III's
need it? Copy-paste typo or is it really this way?

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



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

end of thread, other threads:[~2002-04-12 10:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-12  8:13 [PATCH 2.4.19-pre6] via-rhine.c to support new VIA's nic chip VT6 105, V6105M Shing Chuang
2002-04-12  8:52 ` [PATCH 2.4.19-pre6] via-rhine.c to support new VIA's nic chip VT6105, V6105M Martin Eriksson

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

all inboxes | Powered by JetHome®