Subject: Fixed! Re: The trouble with Tulips
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Dieter <netbsd@sopwith.solgatos.com>
List: netbsd-help
Date: 05/21/2004 11:21:02
> Obviously it gets it wrong, and as interrupts are not shared in reality,
> tlp1 never gets interrupts.
> The attached diff should make it work, but I don't know what the real fix
> would be.
> RCS file: /cvsroot/src/sys/dev/pci/if_tlp_pci.c,v
> retrieving revision 1.65
> diff -u -r1.65 if_tlp_pci.c
> --- if_tlp_pci.c 17 Apr 2002 02:19:14 -0000 1.65
> +++ if_tlp_pci.c 19 May 2004 20:21:11 -0000
> @@ -204,7 +204,7 @@
> const struct tlp_pci_quirks tlp_pci_21040_quirks[] = {
> { tlp_pci_znyx_21040_quirks, { 0x00, 0xc0, 0x95 } },
> { tlp_pci_smc_21040_quirks, { 0x00, 0x00, 0xc0 } },
> - { tlp_pci_cogent_21040_quirks, { 0x00, 0x00, 0x92 } },
> +/* { tlp_pci_cogent_21040_quirks, { 0x00, 0x00, 0x92 } }, */
> { tlp_pci_accton_21040_quirks, { 0x00, 0x00, 0xe8 } },
> { NULL, { 0, 0, 0 } }
> };
I now get:
tlp0 at pci0 dev 6 function 0: DECchip 21040 Ethernet, pass 2.3
tlp0: interrupting at eb164 irq 0
tlp0: 10baseT, 10baseT-FDX, 10base5, manual
tlp1 at pci0 dev 7 function 0: DECchip 21040 Ethernet, pass 2.4
tlp1: interrupting at eb164 irq 1
tlp1: 10baseT, 10baseT-FDX, 10base5, manual
And both networks are working nicely.
Thank you!