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
6b60b23f
Commit
6b60b23f
authored
Mar 06, 2005
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge pobox.com:/garz/repo/netdev-2.6/pm_message_t
into pobox.com:/garz/repo/net-drivers-2.6
parents
c3a3968b
3a718160
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
27 additions
and
27 deletions
+27
-27
drivers/net/3c59x.c
drivers/net/3c59x.c
+1
-1
drivers/net/8139too.c
drivers/net/8139too.c
+1
-1
drivers/net/amd8111e.c
drivers/net/amd8111e.c
+1
-1
drivers/net/b44.c
drivers/net/b44.c
+1
-1
drivers/net/e100.c
drivers/net/e100.c
+2
-2
drivers/net/eepro100.c
drivers/net/eepro100.c
+3
-3
drivers/net/epic100.c
drivers/net/epic100.c
+1
-1
drivers/net/irda/donauboe.c
drivers/net/irda/donauboe.c
+1
-1
drivers/net/natsemi.c
drivers/net/natsemi.c
+1
-1
drivers/net/ne2k-pci.c
drivers/net/ne2k-pci.c
+2
-2
drivers/net/sis900.c
drivers/net/sis900.c
+1
-1
drivers/net/sungem.c
drivers/net/sungem.c
+1
-1
drivers/net/tg3.c
drivers/net/tg3.c
+2
-2
drivers/net/tulip/tulip_core.c
drivers/net/tulip/tulip_core.c
+1
-1
drivers/net/typhoon.c
drivers/net/typhoon.c
+5
-5
drivers/net/via-rhine.c
drivers/net/via-rhine.c
+1
-1
drivers/net/via-velocity.c
drivers/net/via-velocity.c
+2
-2
No files found.
drivers/net/3c59x.c
View file @
6b60b23f
...
...
@@ -964,7 +964,7 @@ static void poll_vortex(struct net_device *dev)
#ifdef CONFIG_PM
static
int
vortex_suspend
(
struct
pci_dev
*
pdev
,
u32
state
)
static
int
vortex_suspend
(
struct
pci_dev
*
pdev
,
pm_message_t
state
)
{
struct
net_device
*
dev
=
pci_get_drvdata
(
pdev
);
...
...
drivers/net/8139too.c
View file @
6b60b23f
...
...
@@ -2578,7 +2578,7 @@ static void rtl8139_set_rx_mode (struct net_device *dev)
#ifdef CONFIG_PM
static
int
rtl8139_suspend
(
struct
pci_dev
*
pdev
,
u32
state
)
static
int
rtl8139_suspend
(
struct
pci_dev
*
pdev
,
pm_message_t
state
)
{
struct
net_device
*
dev
=
pci_get_drvdata
(
pdev
);
struct
rtl8139_private
*
tp
=
netdev_priv
(
dev
);
...
...
drivers/net/amd8111e.c
View file @
6b60b23f
...
...
@@ -1799,7 +1799,7 @@ static void amd8111e_tx_timeout(struct net_device *dev)
if
(
!
err
)
netif_wake_queue
(
dev
);
}
static
int
amd8111e_suspend
(
struct
pci_dev
*
pci_dev
,
u32
state
)
static
int
amd8111e_suspend
(
struct
pci_dev
*
pci_dev
,
pm_message_t
state
)
{
struct
net_device
*
dev
=
pci_get_drvdata
(
pci_dev
);
struct
amd8111e_priv
*
lp
=
netdev_priv
(
dev
);
...
...
drivers/net/b44.c
View file @
6b60b23f
...
...
@@ -1903,7 +1903,7 @@ static void __devexit b44_remove_one(struct pci_dev *pdev)
}
}
static
int
b44_suspend
(
struct
pci_dev
*
pdev
,
u32
state
)
static
int
b44_suspend
(
struct
pci_dev
*
pdev
,
pm_message_t
state
)
{
struct
net_device
*
dev
=
pci_get_drvdata
(
pdev
);
struct
b44
*
bp
=
netdev_priv
(
dev
);
...
...
drivers/net/e100.c
View file @
6b60b23f
...
...
@@ -2310,7 +2310,7 @@ static void __devexit e100_remove(struct pci_dev *pdev)
}
#ifdef CONFIG_PM
static
int
e100_suspend
(
struct
pci_dev
*
pdev
,
u32
state
)
static
int
e100_suspend
(
struct
pci_dev
*
pdev
,
pm_message_t
state
)
{
struct
net_device
*
netdev
=
pci_get_drvdata
(
pdev
);
struct
nic
*
nic
=
netdev_priv
(
netdev
);
...
...
@@ -2321,7 +2321,7 @@ static int e100_suspend(struct pci_dev *pdev, u32 state)
netif_device_detach
(
netdev
);
pci_save_state
(
pdev
);
pci_enable_wake
(
pdev
,
state
,
nic
->
flags
&
(
wol_magic
|
e100_asf
(
nic
)));
pci_enable_wake
(
pdev
,
pci_choose_state
(
pdev
,
state
)
,
nic
->
flags
&
(
wol_magic
|
e100_asf
(
nic
)));
pci_disable_device
(
pdev
);
pci_set_power_state
(
pdev
,
pci_choose_state
(
pdev
,
state
));
...
...
drivers/net/eepro100.c
View file @
6b60b23f
...
...
@@ -2281,7 +2281,7 @@ static void set_rx_mode(struct net_device *dev)
}
#ifdef CONFIG_PM
static
int
eepro100_suspend
(
struct
pci_dev
*
pdev
,
u32
state
)
static
int
eepro100_suspend
(
struct
pci_dev
*
pdev
,
pm_message_t
state
)
{
struct
net_device
*
dev
=
pci_get_drvdata
(
pdev
);
struct
speedo_private
*
sp
=
netdev_priv
(
dev
);
...
...
@@ -2299,7 +2299,7 @@ static int eepro100_suspend(struct pci_dev *pdev, u32 state)
/* XXX call pci_set_power_state ()? */
pci_disable_device
(
pdev
);
pci_set_power_state
(
pdev
,
3
);
pci_set_power_state
(
pdev
,
PCI_D3hot
);
return
0
;
}
...
...
@@ -2309,7 +2309,7 @@ static int eepro100_resume(struct pci_dev *pdev)
struct
speedo_private
*
sp
=
netdev_priv
(
dev
);
void
__iomem
*
ioaddr
=
sp
->
regs
;
pci_set_power_state
(
pdev
,
0
);
pci_set_power_state
(
pdev
,
PCI_D
0
);
pci_restore_state
(
pdev
);
pci_enable_device
(
pdev
);
pci_set_master
(
pdev
);
...
...
drivers/net/epic100.c
View file @
6b60b23f
...
...
@@ -1624,7 +1624,7 @@ static void __devexit epic_remove_one (struct pci_dev *pdev)
#ifdef CONFIG_PM
static
int
epic_suspend
(
struct
pci_dev
*
pdev
,
u32
state
)
static
int
epic_suspend
(
struct
pci_dev
*
pdev
,
pm_message_t
state
)
{
struct
net_device
*
dev
=
pci_get_drvdata
(
pdev
);
long
ioaddr
=
dev
->
base_addr
;
...
...
drivers/net/irda/donauboe.c
View file @
6b60b23f
...
...
@@ -1712,7 +1712,7 @@ toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid)
}
static
int
toshoboe_gotosleep
(
struct
pci_dev
*
pci_dev
,
u32
crap
)
toshoboe_gotosleep
(
struct
pci_dev
*
pci_dev
,
pm_message_t
crap
)
{
struct
toshoboe_cb
*
self
=
(
struct
toshoboe_cb
*
)
pci_get_drvdata
(
pci_dev
);
unsigned
long
flags
;
...
...
drivers/net/natsemi.c
View file @
6b60b23f
...
...
@@ -3162,7 +3162,7 @@ static void __devexit natsemi_remove1 (struct pci_dev *pdev)
* Interrupts must be disabled, otherwise hands_off can cause irq storms.
*/
static
int
natsemi_suspend
(
struct
pci_dev
*
pdev
,
u32
state
)
static
int
natsemi_suspend
(
struct
pci_dev
*
pdev
,
pm_message_t
state
)
{
struct
net_device
*
dev
=
pci_get_drvdata
(
pdev
);
struct
netdev_private
*
np
=
netdev_priv
(
dev
);
...
...
drivers/net/ne2k-pci.c
View file @
6b60b23f
...
...
@@ -654,13 +654,13 @@ static void __devexit ne2k_pci_remove_one (struct pci_dev *pdev)
}
#ifdef CONFIG_PM
static
int
ne2k_pci_suspend
(
struct
pci_dev
*
pdev
,
u32
state
)
static
int
ne2k_pci_suspend
(
struct
pci_dev
*
pdev
,
pm_message_t
state
)
{
struct
net_device
*
dev
=
pci_get_drvdata
(
pdev
);
netif_device_detach
(
dev
);
pci_save_state
(
pdev
);
pci_set_power_state
(
pdev
,
state
);
pci_set_power_state
(
pdev
,
pci_choose_state
(
pdev
,
state
)
);
return
0
;
}
...
...
drivers/net/sis900.c
View file @
6b60b23f
...
...
@@ -2226,7 +2226,7 @@ static void __devexit sis900_remove(struct pci_dev *pci_dev)
#ifdef CONFIG_PM
static
int
sis900_suspend
(
struct
pci_dev
*
pci_dev
,
u32
state
)
static
int
sis900_suspend
(
struct
pci_dev
*
pci_dev
,
pm_message_t
state
)
{
struct
net_device
*
net_dev
=
pci_get_drvdata
(
pci_dev
);
long
ioaddr
=
net_dev
->
base_addr
;
...
...
drivers/net/sungem.c
View file @
6b60b23f
...
...
@@ -2356,7 +2356,7 @@ static int gem_close(struct net_device *dev)
}
#ifdef CONFIG_PM
static
int
gem_suspend
(
struct
pci_dev
*
pdev
,
u32
state
)
static
int
gem_suspend
(
struct
pci_dev
*
pdev
,
pm_message_t
state
)
{
struct
net_device
*
dev
=
pci_get_drvdata
(
pdev
);
struct
gem
*
gp
=
dev
->
priv
;
...
...
drivers/net/tg3.c
View file @
6b60b23f
...
...
@@ -8948,7 +8948,7 @@ static void __devexit tg3_remove_one(struct pci_dev *pdev)
}
}
static
int
tg3_suspend
(
struct
pci_dev
*
pdev
,
u32
state
)
static
int
tg3_suspend
(
struct
pci_dev
*
pdev
,
pm_message_t
state
)
{
struct
net_device
*
dev
=
pci_get_drvdata
(
pdev
);
struct
tg3
*
tp
=
netdev_priv
(
dev
);
...
...
@@ -8975,7 +8975,7 @@ static int tg3_suspend(struct pci_dev *pdev, u32 state)
spin_unlock
(
&
tp
->
tx_lock
);
spin_unlock_irq
(
&
tp
->
lock
);
err
=
tg3_set_power_state
(
tp
,
state
);
err
=
tg3_set_power_state
(
tp
,
pci_choose_state
(
pdev
,
state
)
);
if
(
err
)
{
spin_lock_irq
(
&
tp
->
lock
);
spin_lock
(
&
tp
->
tx_lock
);
...
...
drivers/net/tulip/tulip_core.c
View file @
6b60b23f
...
...
@@ -1749,7 +1749,7 @@ static int __devinit tulip_init_one (struct pci_dev *pdev,
#ifdef CONFIG_PM
static
int
tulip_suspend
(
struct
pci_dev
*
pdev
,
u32
state
)
static
int
tulip_suspend
(
struct
pci_dev
*
pdev
,
pm_message_t
state
)
{
struct
net_device
*
dev
=
pci_get_drvdata
(
pdev
);
...
...
drivers/net/typhoon.c
View file @
6b60b23f
...
...
@@ -1874,7 +1874,7 @@ typhoon_free_rx_rings(struct typhoon *tp)
}
static
int
typhoon_sleep
(
struct
typhoon
*
tp
,
in
t
state
,
u16
events
)
typhoon_sleep
(
struct
typhoon
*
tp
,
pci_power_
t
state
,
u16
events
)
{
struct
pci_dev
*
pdev
=
tp
->
pdev
;
void
__iomem
*
ioaddr
=
tp
->
ioaddr
;
...
...
@@ -2155,7 +2155,7 @@ typhoon_open(struct net_device *dev)
goto
out
;
}
if
(
typhoon_sleep
(
tp
,
3
,
0
)
<
0
)
if
(
typhoon_sleep
(
tp
,
PCI_D3hot
,
0
)
<
0
)
printk
(
KERN_ERR
"%s: unable to go back to sleep
\n
"
,
dev
->
name
);
out:
...
...
@@ -2182,7 +2182,7 @@ typhoon_close(struct net_device *dev)
if
(
typhoon_boot_3XP
(
tp
,
TYPHOON_STATUS_WAITING_FOR_HOST
)
<
0
)
printk
(
KERN_ERR
"%s: unable to boot sleep image
\n
"
,
dev
->
name
);
if
(
typhoon_sleep
(
tp
,
3
,
0
)
<
0
)
if
(
typhoon_sleep
(
tp
,
PCI_D3hot
,
0
)
<
0
)
printk
(
KERN_ERR
"%s: unable to put card to sleep
\n
"
,
dev
->
name
);
return
0
;
...
...
@@ -2222,7 +2222,7 @@ typhoon_resume(struct pci_dev *pdev)
}
static
int
typhoon_suspend
(
struct
pci_dev
*
pdev
,
u32
state
)
typhoon_suspend
(
struct
pci_dev
*
pdev
,
pm_message_t
state
)
{
struct
net_device
*
dev
=
pci_get_drvdata
(
pdev
);
struct
typhoon
*
tp
=
netdev_priv
(
dev
);
...
...
@@ -2532,7 +2532,7 @@ typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
if
(
xp_resp
[
0
].
numDesc
!=
0
)
tp
->
capabilities
|=
TYPHOON_WAKEUP_NEEDS_RESET
;
if
(
typhoon_sleep
(
tp
,
3
,
0
)
<
0
)
{
if
(
typhoon_sleep
(
tp
,
PCI_D3hot
,
0
)
<
0
)
{
printk
(
ERR_PFX
"%s: cannot put adapter to sleep
\n
"
,
pci_name
(
pdev
));
err
=
-
EIO
;
...
...
drivers/net/via-rhine.c
View file @
6b60b23f
...
...
@@ -1937,7 +1937,7 @@ static void rhine_shutdown (struct device *gendev)
}
#ifdef CONFIG_PM
static
int
rhine_suspend
(
struct
pci_dev
*
pdev
,
u32
state
)
static
int
rhine_suspend
(
struct
pci_dev
*
pdev
,
pm_message_t
state
)
{
struct
net_device
*
dev
=
pci_get_drvdata
(
pdev
);
struct
rhine_private
*
rp
=
netdev_priv
(
dev
);
...
...
drivers/net/via-velocity.c
View file @
6b60b23f
...
...
@@ -263,7 +263,7 @@ static int velocity_set_media_mode(struct velocity_info *vptr, u32 mii_status);
#ifdef CONFIG_PM
static
int
velocity_suspend
(
struct
pci_dev
*
pdev
,
u32
state
);
static
int
velocity_suspend
(
struct
pci_dev
*
pdev
,
pm_message_t
state
);
static
int
velocity_resume
(
struct
pci_dev
*
pdev
);
static
int
velocity_netdev_event
(
struct
notifier_block
*
nb
,
unsigned
long
notification
,
void
*
ptr
);
...
...
@@ -3210,7 +3210,7 @@ static int velocity_set_wol(struct velocity_info *vptr)
return
0
;
}
static
int
velocity_suspend
(
struct
pci_dev
*
pdev
,
u32
state
)
static
int
velocity_suspend
(
struct
pci_dev
*
pdev
,
pm_message_t
state
)
{
struct
velocity_info
*
vptr
=
pci_get_drvdata
(
pdev
);
unsigned
long
flags
;
...
...
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