Commit 6b60b23f authored by Jeff Garzik's avatar Jeff Garzik

Merge pobox.com:/garz/repo/netdev-2.6/pm_message_t

into pobox.com:/garz/repo/net-drivers-2.6
parents c3a3968b 3a718160
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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));
......
......@@ -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_D0);
pci_restore_state(pdev);
pci_enable_device(pdev);
pci_set_master(pdev);
......
......@@ -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;
......
......@@ -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;
......
......@@ -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);
......
......@@ -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;
}
......
......@@ -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;
......
......@@ -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;
......
......@@ -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);
......
......@@ -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);
......
......@@ -1874,7 +1874,7 @@ typhoon_free_rx_rings(struct typhoon *tp)
}
static int
typhoon_sleep(struct typhoon *tp, int 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;
......
......@@ -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);
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment