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
Kirill Smelkov
linux
Commits
5326bbc6
Commit
5326bbc6
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] Miscellaneous code cleanup
* Added Change Log entries * Miscellaneous code cleanup
parent
b38c2709
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
22 deletions
+16
-22
drivers/net/e1000/Makefile
drivers/net/e1000/Makefile
+1
-1
drivers/net/e1000/e1000_ethtool.c
drivers/net/e1000/e1000_ethtool.c
+4
-6
drivers/net/e1000/e1000_hw.h
drivers/net/e1000/e1000_hw.h
+0
-1
drivers/net/e1000/e1000_main.c
drivers/net/e1000/e1000_main.c
+11
-14
No files found.
drivers/net/e1000/Makefile
View file @
5326bbc6
################################################################################
#
#
# Copyright(c) 1999 - 200
2
Intel Corporation. All rights reserved.
# Copyright(c) 1999 - 200
3
Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
...
...
drivers/net/e1000/e1000_ethtool.c
View file @
5326bbc6
...
...
@@ -1406,16 +1406,14 @@ e1000_ethtool_ioctl(struct net_device *netdev, struct ifreq *ifr)
void
*
ptr
;
int
err
=
0
;
if
(
copy_from_user
(
&
eeprom
,
addr
,
sizeof
(
eeprom
)))
return
-
EFAULT
;
eeprom_buff
=
kmalloc
(
hw
->
eeprom
.
word_size
*
2
,
GFP_KERNEL
);
if
(
eeprom_buff
==
NULL
)
if
(
!
eeprom_buff
)
return
-
ENOMEM
;
if
(
copy_from_user
(
&
eeprom
,
addr
,
sizeof
(
eeprom
)))
{
err
=
-
EFAULT
;
goto
err_geeprom_ioctl
;
}
if
((
err
=
e1000_ethtool_geeprom
(
adapter
,
&
eeprom
,
eeprom_buff
)))
goto
err_geeprom_ioctl
;
...
...
drivers/net/e1000/e1000_hw.h
View file @
5326bbc6
...
...
@@ -1487,7 +1487,6 @@ struct e1000_hw {
#define E1000_COLLISION_DISTANCE 64
#define E1000_FDX_COLLISION_DISTANCE E1000_COLLISION_DISTANCE
#define E1000_HDX_COLLISION_DISTANCE E1000_COLLISION_DISTANCE
#define E1000_GB_HDX_COLLISION_DISTANCE 512
#define E1000_COLD_SHIFT 12
/* The number of Transmit and Receive Descriptors must be a multiple of 8 */
...
...
drivers/net/e1000/e1000_main.c
View file @
5326bbc6
...
...
@@ -30,7 +30,14 @@
/* Change Log
*
* 5.0.43 3/5/03
* 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
* o Feature: Added support for 82541 and 82547 hardware.
* o Feature: Added support for Intel Gigabit PHY (IGP) and a variety of
* eeproms.
...
...
@@ -46,22 +53,11 @@
* shared interrupt instances.
*
* 4.4.18 11/27/02
* o Feature: Added user-settable knob for interrupt throttle rate (ITR).
* o Cleanup: removed large static array allocations.
* o Cleanup: C99 struct initializer format.
* o Bug fix: restore VLAN settings when interface is brought up.
* o Bug fix: return cleanly in probe if error in detecting MAC type.
* o Bug fix: Wake up on magic packet by default only if enabled in eeprom.
* o Bug fix: Validate MAC address in set_mac.
* o Bug fix: Throw away zero-length Tx skbs.
* o Bug fix: Make ethtool EEPROM acceses work on older versions of ethtool.
*
* 4.4.12 10/15/02
*/
char
e1000_driver_name
[]
=
"e1000"
;
char
e1000_driver_string
[]
=
"Intel(R) PRO/1000 Network Driver"
;
char
e1000_driver_version
[]
=
"5.
0.43-k3
"
;
char
e1000_driver_version
[]
=
"5.
1.11-k1
"
;
char
e1000_copyright
[]
=
"Copyright (c) 1999-2003 Intel Corporation."
;
/* e1000_pci_tbl - PCI Device ID Table
...
...
@@ -107,7 +103,7 @@ int e1000_set_spd_dplx(struct e1000_adapter *adapter, uint16_t spddplx);
static
int
e1000_init_module
(
void
);
static
void
e1000_exit_module
(
void
);
static
int
e1000_probe
(
struct
pci_dev
*
pdev
,
const
struct
pci_device_id
*
ent
);
static
void
e1000_remove
(
struct
pci_dev
*
pdev
);
static
void
__devexit
e1000_remove
(
struct
pci_dev
*
pdev
);
static
int
e1000_sw_init
(
struct
e1000_adapter
*
adapter
);
static
int
e1000_open
(
struct
net_device
*
netdev
);
static
int
e1000_close
(
struct
net_device
*
netdev
);
...
...
@@ -1929,6 +1925,7 @@ e1000_update_stats(struct e1000_adapter *adapter)
}
if
((
hw
->
mac_type
<=
e1000_82546
)
&&
(
hw
->
phy_type
==
e1000_phy_m88
)
&&
!
e1000_read_phy_reg
(
hw
,
M88E1000_RX_ERR_CNTR
,
&
phy_tmp
))
adapter
->
phy_stats
.
receive_errors
+=
phy_tmp
;
}
...
...
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