Subject: kern/2840: Additions to list of 3com PCI devices.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <curt@portal.ca>
List: netbsd-bugs
Date: 10/13/1996 13:56:18
>Number:         2840
>Category:       kern
>Synopsis:       Additions to list of 3com PCI devices.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 13 14:05:03 1996
>Last-Modified:
>Originator:     Curt Sampson
>Organization:
Curt Sampson    curt@portal.ca		Info at http://www.portal.ca/
Internet Portal Services, Inc.	
Vancouver, BC   (604) 257-9400		De gustibus, aut bene aut nihil.
>Release:        1.2
>Environment:
	
NetBSD cynic.portal.ca 1.2 NetBSD 1.2 (CYNIC) #4: Sat Oct 12 18:14:15 PDT 1996     curt@amon.portal.ca:/usr/src/sys/arch/i386/compile/CYNIC i386

>Description:
Some PCI identifiers for 3com PCI cards are missing, and the ep driver does
not recognise 3c90x cards..
>How-To-Repeat:
Put certain varieties of the 3c590 or 3c595 card in your machine, or any
variety of 3x900 or 3c905.
>Fix:
Apply the following patches in against NetBSD-1.2 in /sys/dev/pci:

Index: pcidevs
===================================================================
RCS file: /usr2/CVSRoot/netbsd/src/sys/dev/pci/pcidevs,v
retrieving revision 1.1.1.2
retrieving revision 1.4
diff -c -r1.1.1.2 -r1.4
*** pcidevs	1996/05/16 18:16:59	1.1.1.2
--- pcidevs	1996/10/13 20:29:55	1.5
***************
*** 396,403 ****
   */
  
  /* 3COM Products */
! product	3COM 3C590	0x5900	3c590
! product	3COM 3C595	0x5950	3c595
  
  /* Acer products */
  product ACER M1435	0x1435	M1435
--- 397,410 ----
   */
  
  /* 3COM Products */
! product	3COM 3C590	0x5900	3c590 10Mbps
! product	3COM 3C595	0x5950	3c595 100Base-TX
! product	3COM 3C595	0x5951	3c595 100Base-T4
! product	3COM 3C595	0x5952	3c595 100Base-T/MII
! product	3COM 3C900	0x9000	3c900 10Base-T
! product	3COM 3C900	0x9001	3c900 10Mbps-Combo
! product	3COM 3C905	0x9050	3c905 100Base-TX
! product	3COM 3C905	0x9051	3c905 100Base-T4
  
  /* Acer products */
  product ACER M1435	0x1435	M1435
Index: if_ep_pci.c
===================================================================
RCS file: /usr2/CVSRoot/netbsd/src/sys/dev/pci/if_ep_pci.c,v
retrieving revision 1.1.1.1
retrieving revision 1.3
diff -c -r1.1.1.1 -r1.3
*** if_ep_pci.c	1996/05/13 11:36:32	1.1.1.1
--- if_ep_pci.c	1996/10/13 20:50:12	1.3
***************
*** 102,107 ****
--- 102,109 ----
  	switch (PCI_PRODUCT(pa->pa_id)) {
  	case PCI_PRODUCT_3COM_3C590:
  	case PCI_PRODUCT_3COM_3C595:
+ 	case PCI_PRODUCT_3COM_3C900:
+ 	case PCI_PRODUCT_3COM_3C905:
  		break;
  	default:
  		return 0;
***************
*** 159,167 ****
  	case PCI_PRODUCT_3COM_3C590:
  		model = "3Com 3C590 Ethernet";
  		break;
- 
  	case PCI_PRODUCT_3COM_3C595:
  		model = "3Com 3C595 Ethernet";
  		break;
  	default:
  		model = "unknown model!";
--- 161,174 ----
  	case PCI_PRODUCT_3COM_3C590:
  		model = "3Com 3C590 Ethernet";
  		break;
  	case PCI_PRODUCT_3COM_3C595:
  		model = "3Com 3C595 Ethernet";
+ 		break;
+ 	case PCI_PRODUCT_3COM_3C900:
+ 		model = "3Com 3C900 Ethernet";
+ 		break;
+ 	case PCI_PRODUCT_3COM_3C905:
+ 		model = "3Com 3C905 Ethernet";
  		break;
  	default:
  		model = "unknown model!";
>Audit-Trail:
>Unformatted: