kern/94863: [bge] hack to get bge(4) working on IBM e326m

Internet Partners, Inc. Tech Support support at ipinc.net
Tue May 2 20:10:29 UTC 2006


The following reply was made to PR kern/94863; it has been noted by GNATS.

From: "Internet Partners, Inc. Tech Support" <support at ipinc.net>
To: <bug-followup at FreeBSD.org>
Cc:  
Subject: Re: kern/94863: [bge] hack to get bge(4) working on IBM e326m
Date: Tue, 2 May 2006 13:01:03 -0700

 The current Linux driver from Broadcom, dated Feb 24th 2006, located here:
 http://www.broadcom.com/docs/driver_download/570x/tg3-3.43f.tar.gz
 has a bunch of other ID's in it.  Here's a patch to add these into the
 BGE driver header file and also to change some of the existing chip
 id's and asic revs that are incorrect per the Broadcom driver.
 
 $ diff -c if_bgereg.h.dist if_bgereg.h
 *** if_bgereg.h.dist    Tue May  2 10:58:48 2006
 --- if_bgereg.h Tue May  2 11:31:35 2006
 ***************
 *** 224,232 ****
   
   #define BGE_CHIPID_TIGON_I            0x40000000
   #define BGE_CHIPID_TIGON_II           0x60000000
   #define BGE_CHIPID_BCM5700_B0         0x71000000
 ! #define BGE_CHIPID_BCM5700_B1         0x71020000
 ! #define BGE_CHIPID_BCM5700_B2         0x71030000
   #define BGE_CHIPID_BCM5700_ALTIMA     0x71040000
   #define BGE_CHIPID_BCM5700_C0         0x72000000
   #define BGE_CHIPID_BCM5701_A0         0x00000000      /* grrrr */
 --- 224,234 ----
   
   #define BGE_CHIPID_TIGON_I            0x40000000
   #define BGE_CHIPID_TIGON_II           0x60000000
 + #define BGE_CHIPID_BCM5700_A0         0x70000000
 + #define BGE_CHIPID_BCM5700_A1         0x70010000
   #define BGE_CHIPID_BCM5700_B0         0x71000000
 ! #define BGE_CHIPID_BCM5700_B1         0x71010000
 ! #define BGE_CHIPID_BCM5700_B3         0x71020000
   #define BGE_CHIPID_BCM5700_ALTIMA     0x71040000
   #define BGE_CHIPID_BCM5700_C0         0x72000000
   #define BGE_CHIPID_BCM5701_A0         0x00000000      /* grrrr */
 ***************
 *** 236,251 ****
   #define BGE_CHIPID_BCM5703_A0         0x10000000
   #define BGE_CHIPID_BCM5703_A1         0x10010000
   #define BGE_CHIPID_BCM5703_A2         0x10020000
   #define BGE_CHIPID_BCM5704_A0         0x20000000
   #define BGE_CHIPID_BCM5704_A1         0x20010000
   #define BGE_CHIPID_BCM5704_A2         0x20020000
   #define BGE_CHIPID_BCM5705_A0         0x30000000
   #define BGE_CHIPID_BCM5705_A1         0x30010000
   #define BGE_CHIPID_BCM5705_A2         0x30020000
   #define BGE_CHIPID_BCM5705_A3         0x30030000
   #define BGE_CHIPID_BCM5750_A0         0x40000000
   #define BGE_CHIPID_BCM5750_A1         0x40010000
 ! #define BGE_CHIPID_BCM5714_A0         0x50000000
   
   /* shorthand one */
   #define BGE_ASICREV(x)                        ((x) >> 28)
 --- 238,258 ----
   #define BGE_CHIPID_BCM5703_A0         0x10000000
   #define BGE_CHIPID_BCM5703_A1         0x10010000
   #define BGE_CHIPID_BCM5703_A2         0x10020000
 + #define BGE_CHIPID_BCM5703_A3         0x10030000
   #define BGE_CHIPID_BCM5704_A0         0x20000000
   #define BGE_CHIPID_BCM5704_A1         0x20010000
   #define BGE_CHIPID_BCM5704_A2         0x20020000
 + #define BGE_CHIPID_BCM5704_A3         0x20030000
   #define BGE_CHIPID_BCM5705_A0         0x30000000
   #define BGE_CHIPID_BCM5705_A1         0x30010000
   #define BGE_CHIPID_BCM5705_A2         0x30020000
   #define BGE_CHIPID_BCM5705_A3         0x30030000
   #define BGE_CHIPID_BCM5750_A0         0x40000000
   #define BGE_CHIPID_BCM5750_A1         0x40010000
 ! #define BGE_CHIPID_BCM5750_A3         0x40030000
 ! #define BGE_CHIPID_BCM5752_A0_HW      0x50000000
 ! #define BGE_CHIPID_BCM5752_A0         0x60000000
 ! #define BGE_CHIPID_BCM5752_A1         0x60010000
   
   /* shorthand one */
   #define BGE_ASICREV(x)                        ((x) >> 28)
 ***************
 *** 255,262 ****
   #define BGE_ASICREV_BCM5704           0x02
   #define BGE_ASICREV_BCM5705           0x03
   #define BGE_ASICREV_BCM5750           0x04
 - #define BGE_ASICREV_BCM5714           0x05
   #define BGE_ASICREV_BCM5752           0x06
   
   /* chip revisions */
   #define BGE_CHIPREV(x)                        ((x) >> 24)
 --- 262,270 ----
   #define BGE_ASICREV_BCM5704           0x02
   #define BGE_ASICREV_BCM5705           0x03
   #define BGE_ASICREV_BCM5750           0x04
   #define BGE_ASICREV_BCM5752           0x06
 + #define BGE_ASICREV_BCM5780           0x08
 + #define BGE_ASICREV_BCM5714           0x09
   
   /* chip revisions */
   #define BGE_CHIPREV(x)                        ((x) >> 24)
 ***************
 *** 264,269 ****
 --- 272,282 ----
   #define BGE_CHIPREV_5700_BX           0x71
   #define BGE_CHIPREV_5700_CX           0x72
   #define BGE_CHIPREV_5701_AX           0x00
 + #define BGE_CHIPREV_5703_AX           0x10
 + #define BGE_CHIPREV_5704_AX           0x20
 + #define BGE_CHIPREV_5704_BX           0x21
 + #define BGE_CHIPREV_5750_AX           0x40
 + #define BGE_CHIPREV_5750_BX           0x41
   
   /* PCI DMA Read/Write Control register */
   #define BGE_PCIDMARWCTL_MINDMA                0x000000FF
 ***************
 *** 1945,1961 ****
 --- 1958,1986 ----
   #define BCOM_DEVICEID_BCM5703X                0x16C7
   #define BCOM_DEVICEID_BCM5704C                0x1648
   #define BCOM_DEVICEID_BCM5704S                0x16A8
 + #define BCOM_DEVICEID_BCM5704S_2      0x1649
   #define BCOM_DEVICEID_BCM5705         0x1653
 + #define BCOM_DEVICEID_BCM5705F                0x166E
   #define BCOM_DEVICEID_BCM5705K                0x1654
 + #define BCOM_DEVICEID_BCM5720         0x1658
   #define BCOM_DEVICEID_BCM5721         0x1659
   #define BCOM_DEVICEID_BCM5705M                0x165D
   #define BCOM_DEVICEID_BCM5705M_ALT    0x165E
   #define BCOM_DEVICEID_BCM5714C                0x1668
 + #define BCOM_DEVICEID_BCM5714S                0x1669
 + #define BCOM_DEVICEID_BCM5715         0x1678
 + #define BCOM_DEVICEID_BCM5715S                0x1679
   #define BCOM_DEVICEID_BCM5750         0x1676
   #define BCOM_DEVICEID_BCM5750M                0x167C
   #define BCOM_DEVICEID_BCM5751         0x1677
 + #define BCOM_DEVICEID_BCM5751F                0x167E
   #define BCOM_DEVICEID_BCM5751M                0x167D
   #define BCOM_DEVICEID_BCM5752         0x1600
 + #define BCOM_DEVICEID_BCM5753F                0x16FE
 + #define BCOM_DEVICEID_BCM5753M                0x16FD
 + #define BCOM_DEVICEID_BCM5780         0x166A
 + #define BCOM_DEVICEID_BCM5780S                0x166B
 + #define BCOM_DEVICEID_BCM5781         0x16DD
   #define BCOM_DEVICEID_BCM5782         0x1696
   #define BCOM_DEVICEID_BCM5788         0x169C
   #define BCOM_DEVICEID_BCM5789         0x169D
 
 
 Ted  
 
 


More information about the freebsd-bugs mailing list