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
bdaad158
Commit
bdaad158
authored
Sep 11, 2003
by
Scott Feldman
Committed by
Stephen Hemminger
Sep 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[e1000] misc whitespace cleanup, changelog
* misc whitespace cleanup, changelog
parent
95625b88
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
164 additions
and
155 deletions
+164
-155
drivers/net/e1000/e1000_ethtool.c
drivers/net/e1000/e1000_ethtool.c
+1
-1
drivers/net/e1000/e1000_hw.c
drivers/net/e1000/e1000_hw.c
+16
-15
drivers/net/e1000/e1000_hw.h
drivers/net/e1000/e1000_hw.h
+124
-129
drivers/net/e1000/e1000_main.c
drivers/net/e1000/e1000_main.c
+20
-10
drivers/net/e1000/e1000_osdep.h
drivers/net/e1000/e1000_osdep.h
+3
-0
No files found.
drivers/net/e1000/e1000_ethtool.c
View file @
bdaad158
...
...
@@ -1173,7 +1173,7 @@ e1000_ethtool_test(struct e1000_adapter *adapter,
e1000_down
(
adapter
);
else
e1000_reset
(
adapter
);
if
(
e1000_reg_test
(
adapter
,
&
data
[
0
]))
eth_test
->
flags
|=
ETH_TEST_FL_FAILED
;
...
...
drivers/net/e1000/e1000_hw.c
View file @
bdaad158
...
...
@@ -41,7 +41,8 @@ static int32_t e1000_phy_force_speed_duplex(struct e1000_hw *hw);
static
int32_t
e1000_config_mac_to_phy
(
struct
e1000_hw
*
hw
);
static
void
e1000_raise_mdi_clk
(
struct
e1000_hw
*
hw
,
uint32_t
*
ctrl
);
static
void
e1000_lower_mdi_clk
(
struct
e1000_hw
*
hw
,
uint32_t
*
ctrl
);
static
void
e1000_shift_out_mdi_bits
(
struct
e1000_hw
*
hw
,
uint32_t
data
,
uint16_t
count
);
static
void
e1000_shift_out_mdi_bits
(
struct
e1000_hw
*
hw
,
uint32_t
data
,
uint16_t
count
);
static
uint16_t
e1000_shift_in_mdi_bits
(
struct
e1000_hw
*
hw
);
static
int32_t
e1000_phy_reset_dsp
(
struct
e1000_hw
*
hw
);
static
int32_t
e1000_write_eeprom_spi
(
struct
e1000_hw
*
hw
,
uint16_t
offset
,
...
...
@@ -52,7 +53,8 @@ static int32_t e1000_write_eeprom_microwire(struct e1000_hw *hw,
static
int32_t
e1000_spi_eeprom_ready
(
struct
e1000_hw
*
hw
);
static
void
e1000_raise_ee_clk
(
struct
e1000_hw
*
hw
,
uint32_t
*
eecd
);
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
int32_t
e1000_write_phy_reg_ex
(
struct
e1000_hw
*
hw
,
uint32_t
reg_addr
,
uint16_t
phy_data
);
static
int32_t
e1000_read_phy_reg_ex
(
struct
e1000_hw
*
hw
,
uint32_t
reg_addr
,
...
...
@@ -257,7 +259,6 @@ e1000_set_mac_type(struct e1000_hw *hw)
return
-
E1000_ERR_MAC_TYPE
;
}
return
E1000_SUCCESS
;
}
...
...
@@ -342,20 +343,21 @@ e1000_reset_hw(struct e1000_hw *hw)
*/
msec_delay
(
10
);
/* Issue a global reset to the MAC. This will reset the chip's
* transmit, receive, DMA, and link units. It will not effect
* the current PCI configuration. The global reset bit is self-
* clearing, and should clear within a microsecond.
*/
DEBUGOUT
(
"Issuing a global reset to MAC
\n
"
);
ctrl
=
E1000_READ_REG
(
hw
,
CTRL
);
/* Must reset the PHY before resetting the MAC */
if
((
hw
->
mac_type
==
e1000_82541
)
||
(
hw
->
mac_type
==
e1000_82547
))
{
E1000_WRITE_REG_IO
(
hw
,
CTRL
,
(
ctrl
|
E1000_CTRL_PHY_RST
));
msec_delay
(
5
);
msec_delay
(
5
);
}
/* Issue a global reset to the MAC. This will reset the chip's
* transmit, receive, DMA, and link units. It will not effect
* the current PCI configuration. The global reset bit is self-
* clearing, and should clear within a microsecond.
*/
DEBUGOUT
(
"Issuing a global reset to MAC
\n
"
);
switch
(
hw
->
mac_type
)
{
case
e1000_82544
:
case
e1000_82540
:
...
...
@@ -3083,7 +3085,8 @@ e1000_shift_out_ee_bits(struct e1000_hw *hw,
* hw - Struct containing variables accessed by shared code
*****************************************************************************/
static
uint16_t
e1000_shift_in_ee_bits
(
struct
e1000_hw
*
hw
,
uint16_t
count
)
e1000_shift_in_ee_bits
(
struct
e1000_hw
*
hw
,
uint16_t
count
)
{
uint32_t
eecd
;
uint32_t
i
;
...
...
@@ -4359,8 +4362,7 @@ e1000_update_adaptive(struct e1000_hw *hw)
DEBUGFUNC
(
"e1000_update_adaptive"
);
if
(
hw
->
adaptive_ifs
)
{
if
((
hw
->
collision_delta
*
hw
->
ifs_ratio
)
>
hw
->
tx_packet_delta
)
{
if
((
hw
->
collision_delta
*
hw
->
ifs_ratio
)
>
hw
->
tx_packet_delta
)
{
if
(
hw
->
tx_packet_delta
>
MIN_NUM_XMITS
)
{
hw
->
in_ifs_mode
=
TRUE
;
if
(
hw
->
current_ifs_val
<
hw
->
ifs_max_val
)
{
...
...
@@ -4372,8 +4374,7 @@ e1000_update_adaptive(struct e1000_hw *hw)
}
}
}
else
{
if
((
hw
->
in_ifs_mode
==
TRUE
)
&&
(
hw
->
tx_packet_delta
<=
MIN_NUM_XMITS
))
{
if
(
hw
->
in_ifs_mode
&&
(
hw
->
tx_packet_delta
<=
MIN_NUM_XMITS
))
{
hw
->
current_ifs_val
=
0
;
hw
->
in_ifs_mode
=
FALSE
;
E1000_WRITE_REG
(
hw
,
AIT
,
0
);
...
...
drivers/net/e1000/e1000_hw.h
View file @
bdaad158
This diff is collapsed.
Click to expand it.
drivers/net/e1000/e1000_main.c
View file @
bdaad158
...
...
@@ -30,6 +30,22 @@
/* Change Log
*
* 5.2.16 8/8/03
* o Added support for new controllers: 82545GM, 82546GB, 82541/7_B1
* o Bug fix: reset h/w before first EEPROM read because we don't know
* who may have been messing with the device before we got there.
* [Dave Johnson (ddj -a-t- cascv.brown.edu)]
* o Bug fix: read the correct work from EEPROM to detect programmed
* WoL settings.
* o Bug fix: TSO would hang if space left in FIFO was being miscalculated
* when mss dropped without a correspoding drop in the DMA buffer size.
* o ASF for Fiber nics isn't supported.
* o Bug fix: Workaround added for potential hang with 82544 running in
* PCI-X if send buffer terminates within an evenly-aligned dword.
* o Feature: Add support for ethtool flow control setting.
* o Feature: Add support for ethtool TSO setting.
* o Feature: Increase default Tx Descriptor count to 1024 for >= 82544.
*
* 5.1.13 5/28/03
* o Bug fix: request_irq() failure resulted in freeing resources twice!
* [Don Fry (brazilnut@us.ibm.com)]
...
...
@@ -39,18 +55,11 @@
* o Cleanup: s/int/unsigned int/ for descriptor ring indexes.
*
* 5.1.11 5/6/03
* o Feature: Added support for 82546EB (Quad-port) hardware.
* o Feature: Added support for Diagnostics through Ethtool.
* o Cleanup: Removed /proc support.
* o Cleanup: Removed proprietary IDIAG interface.
* o Bug fix: TSO bug fixes.
*
* 5.0.42 3/5/03
*/
char
e1000_driver_name
[]
=
"e1000"
;
char
e1000_driver_string
[]
=
"Intel(R) PRO/1000 Network Driver"
;
char
e1000_driver_version
[]
=
"5.
1.13-k2
"
;
char
e1000_driver_version
[]
=
"5.
2.16-k1
"
;
char
e1000_copyright
[]
=
"Copyright (c) 1999-2003 Intel Corporation."
;
/* e1000_pci_tbl - PCI Device ID Table
...
...
@@ -475,7 +484,7 @@ e1000_probe(struct pci_dev *pdev,
adapter
->
phy_info_timer
.
function
=
&
e1000_update_phy_info
;
adapter
->
phy_info_timer
.
data
=
(
unsigned
long
)
adapter
;
INIT_WORK
(
&
adapter
->
tx_timeout_task
,
INIT_WORK
(
&
adapter
->
tx_timeout_task
,
(
void
(
*
)(
void
*
))
e1000_tx_timeout_task
,
netdev
);
register_netdev
(
netdev
);
...
...
@@ -2078,6 +2087,7 @@ e1000_intr(int irq, void *data, struct pt_regs *regs)
!
e1000_clean_tx_irq
(
adapter
))
break
;
#endif
return
IRQ_HANDLED
;
}
...
...
@@ -2736,7 +2746,7 @@ e1000_notify_reboot(struct notifier_block *nb, unsigned long event, void *p)
case
SYS_DOWN
:
case
SYS_HALT
:
case
SYS_POWER_OFF
:
while
((
pdev
=
pci_find_device
(
PCI_ANY_ID
,
PCI_ANY_ID
,
pdev
))
!=
NULL
)
{
while
((
pdev
=
pci_find_device
(
PCI_ANY_ID
,
PCI_ANY_ID
,
pdev
))
)
{
if
(
pci_dev_driver
(
pdev
)
==
&
e1000_driver
)
e1000_suspend
(
pdev
,
3
);
}
...
...
drivers/net/e1000/e1000_osdep.h
View file @
bdaad158
...
...
@@ -55,10 +55,13 @@
#define CMD_MEM_WRT_INVALIDATE PCI_COMMAND_INVALIDATE
typedef
enum
{
#undef FALSE
FALSE
=
0
,
#undef TRUE
TRUE
=
1
}
boolean_t
;
#undef ASSERT
#define ASSERT(x) if(!(x)) BUG()
#define MSGOUT(S, A, B) printk(KERN_DEBUG S "\n", A, B)
...
...
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