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
58186218
Commit
58186218
authored
May 20, 2003
by
Jeb J. Cramer
Committed by
Jeff Garzik
May 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Added support for 82546 Quad-port adapter
* Added support for 82546 Quad-port adapter
parent
d818233a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
drivers/net/e1000/e1000_hw.c
drivers/net/e1000/e1000_hw.c
+10
-1
drivers/net/e1000/e1000_hw.h
drivers/net/e1000/e1000_hw.h
+3
-1
drivers/net/e1000/e1000_main.c
drivers/net/e1000/e1000_main.c
+1
-0
No files found.
drivers/net/e1000/e1000_hw.c
View file @
58186218
...
...
@@ -185,6 +185,7 @@ e1000_set_mac_type(struct e1000_hw *hw)
break
;
case
E1000_DEV_ID_82546EB_COPPER
:
case
E1000_DEV_ID_82546EB_FIBER
:
case
E1000_DEV_ID_82546EB_QUAD_COPPER
:
hw
->
mac_type
=
e1000_82546
;
break
;
case
E1000_DEV_ID_82541EI
:
...
...
@@ -3801,6 +3802,7 @@ e1000_setup_led(struct e1000_hw *hw)
case
E1000_DEV_ID_82540EM_LOM
:
case
E1000_DEV_ID_82545EM_COPPER
:
case
E1000_DEV_ID_82546EB_COPPER
:
case
E1000_DEV_ID_82546EB_QUAD_COPPER
:
case
E1000_DEV_ID_82541EI
:
case
E1000_DEV_ID_82541EP
:
case
E1000_DEV_ID_82547EI
:
...
...
@@ -3842,6 +3844,7 @@ e1000_cleanup_led(struct e1000_hw *hw)
case
E1000_DEV_ID_82545EM_FIBER
:
case
E1000_DEV_ID_82546EB_COPPER
:
case
E1000_DEV_ID_82546EB_FIBER
:
case
E1000_DEV_ID_82546EB_QUAD_COPPER
:
case
E1000_DEV_ID_82541EI
:
case
E1000_DEV_ID_82541EP
:
case
E1000_DEV_ID_82547EI
:
...
...
@@ -3896,6 +3899,7 @@ e1000_led_on(struct e1000_hw *hw)
case
E1000_DEV_ID_82540EM_LOM
:
case
E1000_DEV_ID_82545EM_COPPER
:
case
E1000_DEV_ID_82546EB_COPPER
:
case
E1000_DEV_ID_82546EB_QUAD_COPPER
:
case
E1000_DEV_ID_82541EI
:
case
E1000_DEV_ID_82541EP
:
case
E1000_DEV_ID_82547EI
:
...
...
@@ -3949,6 +3953,7 @@ e1000_led_off(struct e1000_hw *hw)
case
E1000_DEV_ID_82540EM_LOM
:
case
E1000_DEV_ID_82545EM_COPPER
:
case
E1000_DEV_ID_82546EB_COPPER
:
case
E1000_DEV_ID_82546EB_QUAD_COPPER
:
case
E1000_DEV_ID_82541EI
:
case
E1000_DEV_ID_82541EP
:
case
E1000_DEV_ID_82547EI
:
...
...
@@ -4206,7 +4211,11 @@ e1000_get_bus_info(struct e1000_hw *hw)
status
=
E1000_READ_REG
(
hw
,
STATUS
);
hw
->
bus_type
=
(
status
&
E1000_STATUS_PCIX_MODE
)
?
e1000_bus_type_pcix
:
e1000_bus_type_pci
;
if
(
hw
->
bus_type
==
e1000_bus_type_pci
)
{
if
(
hw
->
device_id
==
E1000_DEV_ID_82546EB_QUAD_COPPER
)
{
hw
->
bus_speed
=
(
hw
->
bus_type
==
e1000_bus_type_pci
)
?
e1000_bus_speed_66
:
e1000_bus_speed_120
;
}
else
if
(
hw
->
bus_type
==
e1000_bus_type_pci
)
{
hw
->
bus_speed
=
(
status
&
E1000_STATUS_PCI66
)
?
e1000_bus_speed_66
:
e1000_bus_speed_33
;
}
else
{
...
...
drivers/net/e1000/e1000_hw.h
View file @
58186218
...
...
@@ -99,6 +99,7 @@ typedef enum {
e1000_bus_speed_33
,
e1000_bus_speed_66
,
e1000_bus_speed_100
,
e1000_bus_speed_120
,
e1000_bus_speed_133
,
e1000_bus_speed_reserved
}
e1000_bus_speed
;
...
...
@@ -314,10 +315,11 @@ void e1000_write_reg_io(struct e1000_hw *hw, uint32_t offset, uint32_t value);
#define E1000_DEV_ID_82545EM_FIBER 0x1011
#define E1000_DEV_ID_82546EB_COPPER 0x1010
#define E1000_DEV_ID_82546EB_FIBER 0x1012
#define E1000_DEV_ID_82546EB_QUAD_COPPER 0x101D
#define E1000_DEV_ID_82541EI 0x1013
#define E1000_DEV_ID_82541EP 0x1018
#define E1000_DEV_ID_82547EI 0x1019
#define NUM_DEV_IDS
19
#define NUM_DEV_IDS
20
#define NODE_ADDRESS_SIZE 6
#define ETH_LENGTH_OF_ADDRESS 6
...
...
drivers/net/e1000/e1000_main.c
View file @
58186218
...
...
@@ -88,6 +88,7 @@ static struct pci_device_id e1000_pci_tbl[] __devinitdata = {
{
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
},
{
0x8086
,
0x101D
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
0
},
{
0x8086
,
0x1013
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
0
},
{
0x8086
,
0x1019
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
0
},
/* required last entry */
...
...
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