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
b598a404
Commit
b598a404
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 9/10:
* Added bullets to changelog * Whitespace cleanup
parent
4ab38cc7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
32 deletions
+28
-32
drivers/net/e1000/e1000_hw.c
drivers/net/e1000/e1000_hw.c
+10
-9
drivers/net/e1000/e1000_main.c
drivers/net/e1000/e1000_main.c
+16
-22
drivers/net/e1000/e1000_param.c
drivers/net/e1000/e1000_param.c
+2
-1
No files found.
drivers/net/e1000/e1000_hw.c
View file @
b598a404
...
@@ -47,9 +47,9 @@ static void e1000_lower_ee_clk(struct e1000_hw *hw, uint32_t *eecd);
...
@@ -47,9 +47,9 @@ static void e1000_lower_ee_clk(struct e1000_hw *hw, uint32_t *eecd);
static
void
e1000_shift_out_ee_bits
(
struct
e1000_hw
*
hw
,
uint16_t
data
,
uint16_t
count
);
static
void
e1000_shift_out_ee_bits
(
struct
e1000_hw
*
hw
,
uint16_t
data
,
uint16_t
count
);
static
uint16_t
e1000_shift_in_ee_bits
(
struct
e1000_hw
*
hw
);
static
uint16_t
e1000_shift_in_ee_bits
(
struct
e1000_hw
*
hw
);
static
void
e1000_setup_eeprom
(
struct
e1000_hw
*
hw
);
static
void
e1000_setup_eeprom
(
struct
e1000_hw
*
hw
);
static
void
e1000_standby_eeprom
(
struct
e1000_hw
*
hw
);
static
void
e1000_clock_eeprom
(
struct
e1000_hw
*
hw
);
static
void
e1000_clock_eeprom
(
struct
e1000_hw
*
hw
);
static
void
e1000_cleanup_eeprom
(
struct
e1000_hw
*
hw
);
static
void
e1000_cleanup_eeprom
(
struct
e1000_hw
*
hw
);
static
void
e1000_standby_eeprom
(
struct
e1000_hw
*
hw
);
static
int32_t
e1000_id_led_init
(
struct
e1000_hw
*
hw
);
static
int32_t
e1000_id_led_init
(
struct
e1000_hw
*
hw
);
/******************************************************************************
/******************************************************************************
...
@@ -1014,7 +1014,6 @@ e1000_phy_force_speed_duplex(struct e1000_hw *hw)
...
@@ -1014,7 +1014,6 @@ e1000_phy_force_speed_duplex(struct e1000_hw *hw)
/* Write the configured values back to the Device Control Reg. */
/* Write the configured values back to the Device Control Reg. */
E1000_WRITE_REG
(
hw
,
CTRL
,
ctrl
);
E1000_WRITE_REG
(
hw
,
CTRL
,
ctrl
);
/* Write the MII Control Register with the new PHY configuration. */
if
(
e1000_read_phy_reg
(
hw
,
M88E1000_PHY_SPEC_CTRL
,
&
phy_data
)
<
0
)
{
if
(
e1000_read_phy_reg
(
hw
,
M88E1000_PHY_SPEC_CTRL
,
&
phy_data
)
<
0
)
{
DEBUGOUT
(
"PHY Read Error
\n
"
);
DEBUGOUT
(
"PHY Read Error
\n
"
);
return
-
E1000_ERR_PHY
;
return
-
E1000_ERR_PHY
;
...
@@ -1032,6 +1031,8 @@ e1000_phy_force_speed_duplex(struct e1000_hw *hw)
...
@@ -1032,6 +1031,8 @@ e1000_phy_force_speed_duplex(struct e1000_hw *hw)
/* Need to reset the PHY or these changes will be ignored */
/* Need to reset the PHY or these changes will be ignored */
mii_ctrl_reg
|=
MII_CR_RESET
;
mii_ctrl_reg
|=
MII_CR_RESET
;
/* Write back the modified PHY MII control register. */
if
(
e1000_write_phy_reg
(
hw
,
PHY_CTRL
,
mii_ctrl_reg
)
<
0
)
{
if
(
e1000_write_phy_reg
(
hw
,
PHY_CTRL
,
mii_ctrl_reg
)
<
0
)
{
DEBUGOUT
(
"PHY Write Error
\n
"
);
DEBUGOUT
(
"PHY Write Error
\n
"
);
return
-
E1000_ERR_PHY
;
return
-
E1000_ERR_PHY
;
...
@@ -2249,7 +2250,7 @@ e1000_raise_ee_clk(struct e1000_hw *hw,
...
@@ -2249,7 +2250,7 @@ e1000_raise_ee_clk(struct e1000_hw *hw,
uint32_t
*
eecd
)
uint32_t
*
eecd
)
{
{
/* Raise the clock input to the EEPROM (by setting the SK bit), and then
/* Raise the clock input to the EEPROM (by setting the SK bit), and then
* wait
50
microseconds.
* wait
<delay>
microseconds.
*/
*/
*
eecd
=
*
eecd
|
E1000_EECD_SK
;
*
eecd
=
*
eecd
|
E1000_EECD_SK
;
E1000_WRITE_REG
(
hw
,
EECD
,
*
eecd
);
E1000_WRITE_REG
(
hw
,
EECD
,
*
eecd
);
...
@@ -2338,11 +2339,11 @@ e1000_shift_in_ee_bits(struct e1000_hw *hw)
...
@@ -2338,11 +2339,11 @@ e1000_shift_in_ee_bits(struct e1000_hw *hw)
uint32_t
i
;
uint32_t
i
;
uint16_t
data
;
uint16_t
data
;
/* In order to read a register from the EEPROM, we need to shift
16 bits
/* In order to read a register from the EEPROM, we need to shift
'count'
*
in from the EEPROM. Bits are "shifted in" by raising the clock input to
*
bits in from the EEPROM. Bits are "shifted in" by raising the clock
*
the EEPROM (setting the SK bit), and then reading the value of the "DO"
*
input to the EEPROM (setting the SK bit), and then reading the value of
*
bit. During this "shifting in" process the "DI" bit should always be
*
the "DO" bit. During this "shifting in" process the "DI" bit should
*
clear.
.
*
always be clear
.
*/
*/
eecd
=
E1000_READ_REG
(
hw
,
EECD
);
eecd
=
E1000_READ_REG
(
hw
,
EECD
);
...
...
drivers/net/e1000/e1000_main.c
View file @
b598a404
...
@@ -30,6 +30,19 @@
...
@@ -30,6 +30,19 @@
#include "e1000.h"
#include "e1000.h"
/* Change Log
/* Change Log
*
* 4.4.12 10/15/02
* o Clean up: use members of pci_device rather than direct calls to
* pci_read_config_word.
* o Bug fix: changed default flow control settings.
* o Clean up: ethtool file now has an inclusive list for adapters in the
* Wake-On-LAN capabilities instead of an exclusive list.
* o Bug fix: miscellaneous WoL bug fixes.
* o Added software interrupt for clearing rx ring
* o Bug fix: easier to undo "forcing" of 1000/fd using ethtool.
* o Now setting netdev->mem_end in e1000_probe.
* o Clean up: Moved tx_timeout from interrupt context to process context
* using schedule_task.
*
*
* o Feature: merged in modified NAPI patch from Robert Olsson
* o Feature: merged in modified NAPI patch from Robert Olsson
* <Robert.Olsson@its.uu.se> Uppsala Univeristy, Sweden.
* <Robert.Olsson@its.uu.se> Uppsala Univeristy, Sweden.
...
@@ -49,24 +62,6 @@
...
@@ -49,24 +62,6 @@
* o Misc ethtool bug fixes.
* o Misc ethtool bug fixes.
*
*
* 4.3.2 7/5/02
* 4.3.2 7/5/02
* o Bug fix: perform controller reset using I/O rather than mmio because
* some chipsets try to perform a 64-bit write, but the controller ignores
* the upper 32-bit write once the reset is intiated by the lower 32-bit
* write, causing a master abort.
* o Bug fix: fixed jumbo frames sized from 1514 to 2048.
* o ASF support: disable ARP when driver is loaded or resumed; enable when
* driver is removed or suspended.
* o Bug fix: changed default setting for RxIntDelay to 0 for 82542/3/4
* controllers to workaround h/w errata where controller will hang when
* RxIntDelay <> 0 under certian network conditions.
* o Clean up: removed unused and undocumented user-settable settings for
* PHY.
* o Bug fix: ethtool GEEPROM was using byte address rather than word
* addressing.
* o Feature: added support for ethtool SEEPROM.
* o Feature: added support for entropy pool.
*
* 4.2.17 5/30/02
*/
*/
char
e1000_driver_name
[]
=
"e1000"
;
char
e1000_driver_name
[]
=
"e1000"
;
...
@@ -1515,7 +1510,6 @@ e1000_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
...
@@ -1515,7 +1510,6 @@ e1000_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
int
f
;
int
f
;
count
=
TXD_USE_COUNT
(
skb
->
len
-
skb
->
data_len
,
count
=
TXD_USE_COUNT
(
skb
->
len
-
skb
->
data_len
,
adapter
->
max_data_per_txd
);
adapter
->
max_data_per_txd
);
for
(
f
=
0
;
f
<
skb_shinfo
(
skb
)
->
nr_frags
;
f
++
)
for
(
f
=
0
;
f
<
skb_shinfo
(
skb
)
->
nr_frags
;
f
++
)
...
...
drivers/net/e1000/e1000_param.c
View file @
b598a404
...
@@ -314,7 +314,8 @@ e1000_check_options(struct e1000_adapter *adapter)
...
@@ -314,7 +314,8 @@ e1000_check_options(struct e1000_adapter *adapter)
};
};
struct
e1000_desc_ring
*
tx_ring
=
&
adapter
->
tx_ring
;
struct
e1000_desc_ring
*
tx_ring
=
&
adapter
->
tx_ring
;
e1000_mac_type
mac_type
=
adapter
->
hw
.
mac_type
;
e1000_mac_type
mac_type
=
adapter
->
hw
.
mac_type
;
opt
.
arg
.
r
.
max
=
mac_type
<
e1000_82544
?
MAX_TXD
:
MAX_82544_TXD
;
opt
.
arg
.
r
.
max
=
mac_type
<
e1000_82544
?
MAX_TXD
:
MAX_82544_TXD
;
tx_ring
->
count
=
TxDescriptors
[
bd
];
tx_ring
->
count
=
TxDescriptors
[
bd
];
e1000_validate_option
(
&
tx_ring
->
count
,
&
opt
);
e1000_validate_option
(
&
tx_ring
->
count
,
&
opt
);
...
...
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