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
968b9f2f
Commit
968b9f2f
authored
Jan 24, 2003
by
Scott Feldman
Committed by
David S. Miller
Jan 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr e1000] remove /proc support (superceded by ETHTOOL_GSTATS)
parent
bfc417dc
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
747 deletions
+3
-747
drivers/net/e1000/Makefile
drivers/net/e1000/Makefile
+1
-2
drivers/net/e1000/e1000.h
drivers/net/e1000/e1000.h
+0
-3
drivers/net/e1000/e1000_main.c
drivers/net/e1000/e1000_main.c
+2
-40
drivers/net/e1000/e1000_proc.c
drivers/net/e1000/e1000_proc.c
+0
-702
No files found.
drivers/net/e1000/Makefile
View file @
968b9f2f
...
@@ -32,5 +32,4 @@
...
@@ -32,5 +32,4 @@
obj-$(CONFIG_E1000)
+=
e1000.o
obj-$(CONFIG_E1000)
+=
e1000.o
e1000-objs
:=
e1000_main.o e1000_hw.o e1000_ethtool.o e1000_param.o
\
e1000-objs
:=
e1000_main.o e1000_hw.o e1000_ethtool.o e1000_param.o
e1000_proc.o
drivers/net/e1000/e1000.h
View file @
968b9f2f
...
@@ -157,9 +157,6 @@ struct e1000_desc_ring {
...
@@ -157,9 +157,6 @@ struct e1000_desc_ring {
struct
e1000_adapter
{
struct
e1000_adapter
{
struct
timer_list
watchdog_timer
;
struct
timer_list
watchdog_timer
;
struct
timer_list
phy_info_timer
;
struct
timer_list
phy_info_timer
;
#ifdef CONFIG_PROC_FS
struct
list_head
proc_list_head
;
#endif
struct
vlan_group
*
vlgrp
;
struct
vlan_group
*
vlgrp
;
char
*
id_string
;
char
*
id_string
;
uint32_t
bd_number
;
uint32_t
bd_number
;
...
...
drivers/net/e1000/e1000_main.c
View file @
968b9f2f
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,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.4.19-k
1
"
;
char
e1000_driver_version
[]
=
"4.4.19-k
2
"
;
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
...
@@ -171,7 +171,6 @@ static void e1000_vlan_rx_kill_vid(struct net_device *netdev, uint16_t vid);
...
@@ -171,7 +171,6 @@ static void e1000_vlan_rx_kill_vid(struct net_device *netdev, uint16_t vid);
static
void
e1000_restore_vlan
(
struct
e1000_adapter
*
adapter
);
static
void
e1000_restore_vlan
(
struct
e1000_adapter
*
adapter
);
static
int
e1000_notify_reboot
(
struct
notifier_block
*
,
unsigned
long
event
,
void
*
ptr
);
static
int
e1000_notify_reboot
(
struct
notifier_block
*
,
unsigned
long
event
,
void
*
ptr
);
static
int
e1000_notify_netdev
(
struct
notifier_block
*
,
unsigned
long
event
,
void
*
ptr
);
static
int
e1000_suspend
(
struct
pci_dev
*
pdev
,
uint32_t
state
);
static
int
e1000_suspend
(
struct
pci_dev
*
pdev
,
uint32_t
state
);
#ifdef CONFIG_PM
#ifdef CONFIG_PM
static
int
e1000_resume
(
struct
pci_dev
*
pdev
);
static
int
e1000_resume
(
struct
pci_dev
*
pdev
);
...
@@ -183,17 +182,9 @@ struct notifier_block e1000_notifier_reboot = {
...
@@ -183,17 +182,9 @@ struct notifier_block e1000_notifier_reboot = {
.
priority
=
0
.
priority
=
0
};
};
struct
notifier_block
e1000_notifier_netdev
=
{
.
notifier_call
=
e1000_notify_netdev
,
.
next
=
NULL
,
.
priority
=
0
};
/* Exported from other modules */
/* Exported from other modules */
extern
void
e1000_check_options
(
struct
e1000_adapter
*
adapter
);
extern
void
e1000_check_options
(
struct
e1000_adapter
*
adapter
);
extern
void
e1000_proc_dev_setup
(
struct
e1000_adapter
*
adapter
);
extern
void
e1000_proc_dev_free
(
struct
e1000_adapter
*
adapter
);
extern
int
e1000_ethtool_ioctl
(
struct
net_device
*
netdev
,
struct
ifreq
*
ifr
);
extern
int
e1000_ethtool_ioctl
(
struct
net_device
*
netdev
,
struct
ifreq
*
ifr
);
static
struct
pci_driver
e1000_driver
=
{
static
struct
pci_driver
e1000_driver
=
{
...
@@ -229,10 +220,8 @@ e1000_init_module(void)
...
@@ -229,10 +220,8 @@ e1000_init_module(void)
printk
(
KERN_INFO
"%s
\n
"
,
e1000_copyright
);
printk
(
KERN_INFO
"%s
\n
"
,
e1000_copyright
);
ret
=
pci_module_init
(
&
e1000_driver
);
ret
=
pci_module_init
(
&
e1000_driver
);
if
(
ret
>=
0
)
{
if
(
ret
>=
0
)
register_reboot_notifier
(
&
e1000_notifier_reboot
);
register_reboot_notifier
(
&
e1000_notifier_reboot
);
register_netdevice_notifier
(
&
e1000_notifier_netdev
);
}
return
ret
;
return
ret
;
}
}
...
@@ -249,7 +238,6 @@ static void __exit
...
@@ -249,7 +238,6 @@ static void __exit
e1000_exit_module
(
void
)
e1000_exit_module
(
void
)
{
{
unregister_reboot_notifier
(
&
e1000_notifier_reboot
);
unregister_reboot_notifier
(
&
e1000_notifier_reboot
);
unregister_netdevice_notifier
(
&
e1000_notifier_netdev
);
pci_unregister_driver
(
&
e1000_driver
);
pci_unregister_driver
(
&
e1000_driver
);
}
}
...
@@ -490,7 +478,6 @@ e1000_probe(struct pci_dev *pdev,
...
@@ -490,7 +478,6 @@ e1000_probe(struct pci_dev *pdev,
printk
(
KERN_INFO
"%s: %s
\n
"
,
netdev
->
name
,
adapter
->
id_string
);
printk
(
KERN_INFO
"%s: %s
\n
"
,
netdev
->
name
,
adapter
->
id_string
);
e1000_check_options
(
adapter
);
e1000_check_options
(
adapter
);
e1000_proc_dev_setup
(
adapter
);
/* Initial Wake on LAN setting
/* Initial Wake on LAN setting
* If APM wake is enabled in the EEPROM,
* If APM wake is enabled in the EEPROM,
...
@@ -548,8 +535,6 @@ e1000_remove(struct pci_dev *pdev)
...
@@ -548,8 +535,6 @@ e1000_remove(struct pci_dev *pdev)
e1000_phy_hw_reset
(
&
adapter
->
hw
);
e1000_phy_hw_reset
(
&
adapter
->
hw
);
e1000_proc_dev_free
(
adapter
);
iounmap
(
adapter
->
hw
.
hw_addr
);
iounmap
(
adapter
->
hw
.
hw_addr
);
pci_release_regions
(
pdev
);
pci_release_regions
(
pdev
);
...
@@ -2429,29 +2414,6 @@ e1000_notify_reboot(struct notifier_block *nb, unsigned long event, void *p)
...
@@ -2429,29 +2414,6 @@ e1000_notify_reboot(struct notifier_block *nb, unsigned long event, void *p)
return
NOTIFY_DONE
;
return
NOTIFY_DONE
;
}
}
static
int
e1000_notify_netdev
(
struct
notifier_block
*
nb
,
unsigned
long
event
,
void
*
p
)
{
struct
e1000_adapter
*
adapter
;
struct
net_device
*
netdev
=
p
;
if
(
netdev
==
NULL
)
return
NOTIFY_DONE
;
switch
(
event
)
{
case
NETDEV_CHANGENAME
:
if
(
netdev
->
open
==
e1000_open
)
{
adapter
=
netdev
->
priv
;
/* rename the proc nodes the easy way */
e1000_proc_dev_free
(
adapter
);
memcpy
(
adapter
->
ifname
,
netdev
->
name
,
IFNAMSIZ
);
adapter
->
ifname
[
IFNAMSIZ
-
1
]
=
0
;
e1000_proc_dev_setup
(
adapter
);
}
break
;
}
return
NOTIFY_DONE
;
}
static
int
static
int
e1000_suspend
(
struct
pci_dev
*
pdev
,
uint32_t
state
)
e1000_suspend
(
struct
pci_dev
*
pdev
,
uint32_t
state
)
{
{
...
...
drivers/net/e1000/e1000_proc.c
deleted
100644 → 0
View file @
bfc417dc
This diff is collapsed.
Click to expand it.
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