kern/74262: Added to support a CardBus NIC with RealTek 8169 chip

Yoshikazu GOTO goto at snowy.to
Mon Nov 22 19:20:28 GMT 2004


>Number:         74262
>Category:       kern
>Synopsis:       Added to support a CardBus NIC with RealTek 8169 chip
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 22 19:20:27 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Yoshikazu GOTO
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD light.snowy.to 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Sat Nov 20 23:01:49 JST 2004 goto at light.snowy.to:/usr/fs/src/sys/i386/compile/LIGHT i386
>Description:
I use "SUGOI LAN GIGA" NIC made by System TALKS Inc. in Japan. This Card is
used RealTek 8169 chip. This patch works for me, but I'm not comfortable with
string of H/W revision.
Last, I am sorry for my poor English.
>How-To-Repeat:
code
>Fix:
please see this patch.

--- diff.txt begins here ---
Index: dev/re/if_re.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/re/if_re.c,v
retrieving revision 1.35
diff -c -C5 -r1.35 if_re.c
*** dev/re/if_re.c	28 Sep 2004 18:22:24 -0000	1.35
--- dev/re/if_re.c	22 Nov 2004 18:32:20 -0000
***************
*** 164,173 ****
--- 164,175 ----
  		"RealTek 8139C+ 10/100BaseTX" },
  	{ RT_VENDORID, RT_DEVICEID_8169, RL_HWREV_8169,
  		"RealTek 8169 Gigabit Ethernet" },
  	{ RT_VENDORID, RT_DEVICEID_8169, RL_HWREV_8169S,
  		"RealTek 8169S Single-chip Gigabit Ethernet" },
+ 	{ RT_VENDORID, RT_DEVICEID_8169, RL_HWREV_8169SB,
+ 		"RealTek 8169SB Single-chip Gigabit Ethernet" },
  	{ RT_VENDORID, RT_DEVICEID_8169, RL_HWREV_8110S,
  		"RealTek 8110S Single-chip Gigabit Ethernet" },
  	{ COREGA_VENDORID, COREGA_DEVICEID_CGLAPCIGT, RL_HWREV_8169S,
  		"Corega CG-LAPCIGT (RTL8169S) Gigabit Ethernet" },
  	{ 0, 0, 0, NULL }
***************
*** 182,191 ****
--- 184,194 ----
  	{ RL_HWREV_8139C, RL_8139, "C" },
  	{ RL_HWREV_8139D, RL_8139, "8139D/8100B/8100C" },
  	{ RL_HWREV_8139CPLUS, RL_8139CPLUS, "C+"},
  	{ RL_HWREV_8169, RL_8169, "8169"},
  	{ RL_HWREV_8169S, RL_8169, "8169S"},
+ 	{ RL_HWREV_8169SB, RL_8169, "8169SB"},
  	{ RL_HWREV_8110S, RL_8169, "8110S"},
  	{ RL_HWREV_8100, RL_8139, "8100"},
  	{ RL_HWREV_8101, RL_8139, "8101"},
  	{ 0, 0, NULL }
  };
Index: pci/if_rlreg.h
===================================================================
RCS file: /home/ncvs/src/sys/pci/if_rlreg.h,v
retrieving revision 1.48
diff -c -C5 -r1.48 if_rlreg.h
*** pci/if_rlreg.h	28 Sep 2004 18:22:24 -0000	1.48
--- pci/if_rlreg.h	22 Nov 2004 18:32:26 -0000
***************
*** 145,154 ****
--- 145,155 ----
  #define RL_LOOPTEST_ON		0x00020000
  #define RL_LOOPTEST_ON_CPLUS	0x00060000
  
  #define RL_HWREV_8169		0x00000000
  #define RL_HWREV_8169S		0x04000000
+ #define RL_HWREV_8169SB		0x10000000
  #define RL_HWREV_8110S		0x00800000
  #define RL_HWREV_8139		0x60000000
  #define RL_HWREV_8139A		0x70000000
  #define RL_HWREV_8139AG		0x70800000
  #define RL_HWREV_8139B		0x78000000
--- diff.txt ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list