[PATCH] tulip.c, kernel 2.0.35

From: Masaki Tsuji (m-tsuji@tsri.co.jp)
Date: Wed Jan 19 2000 - 05:15:09 EST


Dear sirs,

I made patch for tulip.c for kernel version 2.0.35.

For what ?
--> For Macronix MX98715 Network cards.

Where fixed ?
--> 1. Checking VENDOR ID
    2. Initiallizing CSR6,13,14

What tested ?
--> 1. Probing 100/10Mbps ...OK
    2. Copying 100MByte file
       from 10Mbps(MX98715) to 10Mbps(NE2000 clone)
    3. Copying 100MByte file
       from 100Mbps(MX98715) to 10Mbps(NE2000 clone)
    4. Copying 100MByte file
       from 10Mbps(MX98715) to 100Mbps(DE500XA)
    5. Copying 100MByte file
       from 100Mbps(MX98715) to 100Mbps(DE500XA)
     ** 2 throught 5, copied between Windows95 and
           Linux-box with samba.

Probrem
--> I can't convert CR/LF code to LF.

Thanks.

-- 
-----------------------------------------------
($B3t(B)$B%H%h%?%7%9%F%`%j%5!<%A(B
$B!!!!%7%9%F%`;v6HIt!!Bh#2It!!Bh#2%0%k!<%W(B
$B!!(B                                $BDT!!@5<y(B

Toyota System Reserch Inc. 2nd System-Dep. 2nd Group Masaki Tsuji E-Mail: mailto:m-tsuji@tsri.co.jp TEL: +81-52-933-2554 (Direct), FAX: +81-52-933-2509

--- tulip-orig.c Thu Jun 4 07:17:47 1998 +++ tulip.c Wed Aug 11 13:42:16 1999 @@ -511,8 +511,8 @@ continue; if (vendor == PCI_VENDOR_ID_LITEON) device = PCI_DEVICE_ID_PNIC_X; - else if (vendor == PCI_VENDOR_ID_MXIC) - device = PCI_DEVICE_ID_MX98713; + //else if (vendor == PCI_VENDOR_ID_MXIC) + // device = PCI_DEVICE_ID_MX98713; for (chip_idx = 0; tulip_tbl[chip_idx].chip_name; chip_idx++) if (device == tulip_tbl[chip_idx].device_id) @@ -818,11 +818,16 @@ outl(0x0001F078, ioaddr + 0xB8); outl(0x0201F078, ioaddr + 0xB8); /* Turn on autonegotiation. */ break; - case MX98713: case MX98715: case MX98725: + case MX98713: outl(0x00000000, ioaddr + CSR6); outl(0x000711C0, ioaddr + CSR14); /* Turn on NWay. */ outl(0x00000001, ioaddr + CSR13); break; + case MX98715: case MX98725: + outl(0x00000000, ioaddr + CSR6); + outl(0x000711C4, ioaddr + CSR14); /* Turn on NWay. */ + outl(0x00000001, ioaddr + CSR13); + break; } return dev; @@ -1507,9 +1512,9 @@ if (media_cap[dev->if_port] & MediaIsMII) { new_csr6 = 0x020E0000; } else if (media_cap[dev->if_port] & MediaIsFx) { - new_csr6 = 0x028600000; + new_csr6 = 0x02860000; } else - new_csr6 = 0x038600000; + new_csr6 = 0x03820000; if (tulip_debug > 1) printk(KERN_DEBUG "%s: No media description table, assuming " "%s transceiver, CSR12 %2.2x.\n",

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:19 EST