kern/125419: [patch][em] add new device id for quad port card
Andrey V. Elsukov
bu7cher at yandex.ru
Wed Jul 9 06:20:02 UTC 2008
>Number: 125419
>Category: kern
>Synopsis: [patch][em] add new device id for quad port card
>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: Wed Jul 09 06:20:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Andrey V. Elsukov
>Release: FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
FreeBSD
>Description:
FreeBSD 7.0 doesn't detect new intel's quad port adapter.
none1 at pci0:5:0:0: class=0x020000 card=0x10a08086 chip=0x10a08086 rev=0x06 hdr=0x00
none2 at pci0:5:0:1: class=0x020000 card=0x10a08086 chip=0x10a08086 rev=0x06 hdr=0x00
none3 at pci0:6:0:0: class=0x020000 card=0x10a08086 chip=0x10a08086 rev=0x06 hdr=0x00
none4 at pci0:6:0:1: class=0x020000 card=0x10a08086 chip=0x10a08086 rev=0x06 hdr=0x00
Attached patch adds support for this adapter (tested by: galucinogen at gmail dot com).
>How-To-Repeat:
>Fix:
--- intel_em_quad_port_devid_10a0.diff begins here ---
Index: src/sys/dev/em/e1000_api.c
===================================================================
RCS file: /ncvs/src/sys/dev/em/e1000_api.c,v
retrieving revision 1.7
diff -u -b -p -r1.7 e1000_api.c
--- src/sys/dev/em/e1000_api.c 25 Apr 2008 21:19:39 -0000 1.7
+++ src/sys/dev/em/e1000_api.c 2 Jul 2008 09:31:06 -0000
@@ -200,6 +200,7 @@ s32 e1000_set_mac_type(struct e1000_hw *
case E1000_DEV_ID_82571EB_SERDES_DUAL:
case E1000_DEV_ID_82571EB_SERDES_QUAD:
case E1000_DEV_ID_82571EB_QUAD_COPPER:
+ case E1000_DEV_ID_82571EB_QUAD_COPPER_A0:
case E1000_DEV_ID_82571PT_QUAD_COPPER:
case E1000_DEV_ID_82571EB_QUAD_FIBER:
case E1000_DEV_ID_82571EB_QUAD_COPPER_LP:
Index: src/sys/dev/em/e1000_hw.h
===================================================================
RCS file: /ncvs/src/sys/dev/em/e1000_hw.h,v
retrieving revision 1.7
diff -u -b -p -r1.7 e1000_hw.h
--- src/sys/dev/em/e1000_hw.h 25 Apr 2008 21:19:40 -0000 1.7
+++ src/sys/dev/em/e1000_hw.h 2 Jul 2008 09:31:06 -0000
@@ -85,6 +85,7 @@ struct e1000_hw;
#define E1000_DEV_ID_82571EB_SERDES_DUAL 0x10D9
#define E1000_DEV_ID_82571EB_SERDES_QUAD 0x10DA
#define E1000_DEV_ID_82571EB_QUAD_COPPER 0x10A4
+#define E1000_DEV_ID_82571EB_QUAD_COPPER_A0 0x10A0
#define E1000_DEV_ID_82571PT_QUAD_COPPER 0x10D5
#define E1000_DEV_ID_82571EB_QUAD_FIBER 0x10A5
#define E1000_DEV_ID_82571EB_QUAD_COPPER_LP 0x10BC
Index: src/sys/dev/em/if_em.c
===================================================================
RCS file: /ncvs/src/sys/dev/em/if_em.c,v
retrieving revision 1.194
diff -u -b -p -r1.194 if_em.c
--- src/sys/dev/em/if_em.c 21 May 2008 21:06:17 -0000 1.194
+++ src/sys/dev/em/if_em.c 2 Jul 2008 09:31:06 -0000
@@ -161,6 +161,8 @@ static em_vendor_info_t em_vendor_info_a
PCI_ANY_ID, PCI_ANY_ID, 0},
{ 0x8086, E1000_DEV_ID_82571EB_QUAD_COPPER,
PCI_ANY_ID, PCI_ANY_ID, 0},
+ { 0x8086, E1000_DEV_ID_82571EB_QUAD_COPPER_A0,
+ PCI_ANY_ID, PCI_ANY_ID, 0},
{ 0x8086, E1000_DEV_ID_82571EB_QUAD_COPPER_LP,
PCI_ANY_ID, PCI_ANY_ID, 0},
{ 0x8086, E1000_DEV_ID_82571EB_QUAD_FIBER,
@@ -765,6 +767,7 @@ em_attach(device_t dev)
break;
case E1000_DEV_ID_82546GB_QUAD_COPPER_KSP3:
case E1000_DEV_ID_82571EB_QUAD_COPPER:
+ case E1000_DEV_ID_82571EB_QUAD_COPPER_A0:
case E1000_DEV_ID_82571EB_QUAD_FIBER:
case E1000_DEV_ID_82571EB_QUAD_COPPER_LP:
/* if quad port adapter, disable WoL on all but port A */
--- intel_em_quad_port_devid_10a0.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list