Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
3cb9f9fd
Commit
3cb9f9fd
authored
Oct 18, 2002
by
Jeb J. Cramer
Committed by
Jeff Garzik
Oct 18, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
e1000 1/10:
* add new pci ids
parent
8bee0cd9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
15 deletions
+36
-15
drivers/net/e1000/e1000_hw.c
drivers/net/e1000/e1000_hw.c
+15
-0
drivers/net/e1000/e1000_hw.h
drivers/net/e1000/e1000_hw.h
+17
-14
drivers/net/e1000/e1000_main.c
drivers/net/e1000/e1000_main.c
+4
-1
No files found.
drivers/net/e1000/e1000_hw.c
View file @
3cb9f9fd
...
@@ -88,6 +88,9 @@ e1000_set_mac_type(struct e1000_hw *hw)
...
@@ -88,6 +88,9 @@ e1000_set_mac_type(struct e1000_hw *hw)
break
;
break
;
case
E1000_DEV_ID_82540EM
:
case
E1000_DEV_ID_82540EM
:
case
E1000_DEV_ID_82540EM_LOM
:
case
E1000_DEV_ID_82540EM_LOM
:
case
E1000_DEV_ID_82540EP
:
case
E1000_DEV_ID_82540EP_LOM
:
case
E1000_DEV_ID_82540EP_LP
:
hw
->
mac_type
=
e1000_82540
;
hw
->
mac_type
=
e1000_82540
;
break
;
break
;
case
E1000_DEV_ID_82545EM_COPPER
:
case
E1000_DEV_ID_82545EM_COPPER
:
...
@@ -3140,6 +3143,9 @@ e1000_setup_led(struct e1000_hw *hw)
...
@@ -3140,6 +3143,9 @@ e1000_setup_led(struct e1000_hw *hw)
ledctl
|=
(
E1000_LEDCTL_MODE_LED_OFF
<<
E1000_LEDCTL_LED0_MODE_SHIFT
);
ledctl
|=
(
E1000_LEDCTL_MODE_LED_OFF
<<
E1000_LEDCTL_LED0_MODE_SHIFT
);
E1000_WRITE_REG
(
hw
,
LEDCTL
,
ledctl
);
E1000_WRITE_REG
(
hw
,
LEDCTL
,
ledctl
);
break
;
break
;
case
E1000_DEV_ID_82540EP
:
case
E1000_DEV_ID_82540EP_LOM
:
case
E1000_DEV_ID_82540EP_LP
:
case
E1000_DEV_ID_82540EM
:
case
E1000_DEV_ID_82540EM
:
case
E1000_DEV_ID_82540EM_LOM
:
case
E1000_DEV_ID_82540EM_LOM
:
case
E1000_DEV_ID_82545EM_COPPER
:
case
E1000_DEV_ID_82545EM_COPPER
:
...
@@ -3173,6 +3179,9 @@ e1000_cleanup_led(struct e1000_hw *hw)
...
@@ -3173,6 +3179,9 @@ e1000_cleanup_led(struct e1000_hw *hw)
case
E1000_DEV_ID_82544GC_LOM
:
case
E1000_DEV_ID_82544GC_LOM
:
/* No cleanup necessary */
/* No cleanup necessary */
break
;
break
;
case
E1000_DEV_ID_82540EP
:
case
E1000_DEV_ID_82540EP_LOM
:
case
E1000_DEV_ID_82540EP_LP
:
case
E1000_DEV_ID_82540EM
:
case
E1000_DEV_ID_82540EM
:
case
E1000_DEV_ID_82540EM_LOM
:
case
E1000_DEV_ID_82540EM_LOM
:
case
E1000_DEV_ID_82545EM_COPPER
:
case
E1000_DEV_ID_82545EM_COPPER
:
...
@@ -3223,6 +3232,9 @@ e1000_led_on(struct e1000_hw *hw)
...
@@ -3223,6 +3232,9 @@ e1000_led_on(struct e1000_hw *hw)
ctrl
|=
E1000_CTRL_SWDPIO0
;
ctrl
|=
E1000_CTRL_SWDPIO0
;
E1000_WRITE_REG
(
hw
,
CTRL
,
ctrl
);
E1000_WRITE_REG
(
hw
,
CTRL
,
ctrl
);
break
;
break
;
case
E1000_DEV_ID_82540EP
:
case
E1000_DEV_ID_82540EP_LOM
:
case
E1000_DEV_ID_82540EP_LP
:
case
E1000_DEV_ID_82540EM
:
case
E1000_DEV_ID_82540EM
:
case
E1000_DEV_ID_82540EM_LOM
:
case
E1000_DEV_ID_82540EM_LOM
:
case
E1000_DEV_ID_82545EM_COPPER
:
case
E1000_DEV_ID_82545EM_COPPER
:
...
@@ -3270,6 +3282,9 @@ e1000_led_off(struct e1000_hw *hw)
...
@@ -3270,6 +3282,9 @@ e1000_led_off(struct e1000_hw *hw)
ctrl
|=
E1000_CTRL_SWDPIO0
;
ctrl
|=
E1000_CTRL_SWDPIO0
;
E1000_WRITE_REG
(
hw
,
CTRL
,
ctrl
);
E1000_WRITE_REG
(
hw
,
CTRL
,
ctrl
);
break
;
break
;
case
E1000_DEV_ID_82540EP
:
case
E1000_DEV_ID_82540EP_LOM
:
case
E1000_DEV_ID_82540EP_LP
:
case
E1000_DEV_ID_82540EM
:
case
E1000_DEV_ID_82540EM
:
case
E1000_DEV_ID_82540EM_LOM
:
case
E1000_DEV_ID_82540EM_LOM
:
case
E1000_DEV_ID_82545EM_COPPER
:
case
E1000_DEV_ID_82545EM_COPPER
:
...
...
drivers/net/e1000/e1000_hw.h
View file @
3cb9f9fd
...
@@ -237,20 +237,23 @@ void e1000_write_reg_io(struct e1000_hw *hw, uint32_t offset, uint32_t value);
...
@@ -237,20 +237,23 @@ void e1000_write_reg_io(struct e1000_hw *hw, uint32_t offset, uint32_t value);
e1000_write_reg_io((a), E1000_##reg, val)
e1000_write_reg_io((a), E1000_##reg, val)
/* PCI Device IDs */
/* PCI Device IDs */
#define E1000_DEV_ID_82542 0x1000
#define E1000_DEV_ID_82542 0x1000
#define E1000_DEV_ID_82543GC_FIBER 0x1001
#define E1000_DEV_ID_82543GC_FIBER 0x1001
#define E1000_DEV_ID_82543GC_COPPER 0x1004
#define E1000_DEV_ID_82543GC_COPPER 0x1004
#define E1000_DEV_ID_82544EI_COPPER 0x1008
#define E1000_DEV_ID_82544EI_COPPER 0x1008
#define E1000_DEV_ID_82544EI_FIBER 0x1009
#define E1000_DEV_ID_82544EI_FIBER 0x1009
#define E1000_DEV_ID_82544GC_COPPER 0x100C
#define E1000_DEV_ID_82544GC_COPPER 0x100C
#define E1000_DEV_ID_82544GC_LOM 0x100D
#define E1000_DEV_ID_82544GC_LOM 0x100D
#define E1000_DEV_ID_82540EM 0x100E
#define E1000_DEV_ID_82540EM 0x100E
#define E1000_DEV_ID_82540EM_LOM 0x1015
#define E1000_DEV_ID_82540EM_LOM 0x1015
#define E1000_DEV_ID_82545EM_COPPER 0x100F
#define E1000_DEV_ID_82540EP_LOM 0x1016
#define E1000_DEV_ID_82545EM_FIBER 0x1011
#define E1000_DEV_ID_82540EP 0x1017
#define E1000_DEV_ID_82546EB_COPPER 0x1010
#define E1000_DEV_ID_82540EP_LP 0x101E
#define E1000_DEV_ID_82546EB_FIBER 0x1012
#define E1000_DEV_ID_82545EM_COPPER 0x100F
#define NUM_DEV_IDS 13
#define E1000_DEV_ID_82545EM_FIBER 0x1011
#define E1000_DEV_ID_82546EB_COPPER 0x1010
#define E1000_DEV_ID_82546EB_FIBER 0x1012
#define NUM_DEV_IDS 16
#define NODE_ADDRESS_SIZE 6
#define NODE_ADDRESS_SIZE 6
#define ETH_LENGTH_OF_ADDRESS 6
#define ETH_LENGTH_OF_ADDRESS 6
...
...
drivers/net/e1000/e1000_main.c
View file @
3cb9f9fd
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
char
e1000_driver_name
[]
=
"e1000"
;
char
e1000_driver_name
[]
=
"e1000"
;
char
e1000_driver_string
[]
=
"Intel(R) PRO/1000 Network Driver"
;
char
e1000_driver_string
[]
=
"Intel(R) PRO/1000 Network Driver"
;
char
e1000_driver_version
[]
=
"4.
3.15
-k1"
;
char
e1000_driver_version
[]
=
"4.
4.12
-k1"
;
char
e1000_copyright
[]
=
"Copyright (c) 1999-2002 Intel Corporation."
;
char
e1000_copyright
[]
=
"Copyright (c) 1999-2002 Intel Corporation."
;
/* e1000_pci_tbl - PCI Device ID Table
/* e1000_pci_tbl - PCI Device ID Table
...
@@ -113,6 +113,9 @@ static struct pci_device_id e1000_pci_tbl[] __devinitdata = {
...
@@ -113,6 +113,9 @@ static struct pci_device_id e1000_pci_tbl[] __devinitdata = {
{
0x8086
,
0x1011
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
0
},
{
0x8086
,
0x1011
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
0
},
{
0x8086
,
0x1010
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
0
},
{
0x8086
,
0x1010
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
0
},
{
0x8086
,
0x1012
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
0
},
{
0x8086
,
0x1012
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
0
},
{
0x8086
,
0x1016
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
0
},
{
0x8086
,
0x1017
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
0
},
{
0x8086
,
0x101E
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
0
},
/* required last entry */
/* required last entry */
{
0
,}
{
0
,}
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment