2 Power management interface routines.
3 Written by Mariusz Matuszek.
4 This code is currently just a placeholder for later work and
5 does not do anything useful.
7 This is part of rtl8180 OpenSource driver.
8 Copyright (C) Andrea Merello 2004 <andreamrl@tiscali.it>
9 Released under the terms of GPL (General Public Licence)
13 #include "r8192U_pm.h"
15 /*****************************************************************************/
16 int rtl8192U_save_state (struct pci_dev
*dev
, u32 state
)
18 printk(KERN_NOTICE
"r8192U save state call (state %u).\n", state
);
22 int rtl8192U_suspend(struct usb_interface
*intf
, pm_message_t state
)
24 struct net_device
*dev
= usb_get_intfdata(intf
);
26 RT_TRACE(COMP_POWER
, "============> r8192U suspend call.\n");
29 if (!netif_running(dev
)) {
30 printk(KERN_WARNING
"netif not running, go out suspend function\n");
34 if (dev
->netdev_ops
->ndo_stop
)
35 dev
->netdev_ops
->ndo_stop(dev
);
39 netif_device_detach(dev
);
45 int rtl8192U_resume (struct usb_interface
*intf
)
47 struct net_device
*dev
= usb_get_intfdata(intf
);
49 RT_TRACE(COMP_POWER
, "================>r8192U resume call.");
52 if (!netif_running(dev
)){
53 printk(KERN_WARNING
"netif not running, go out resume function\n");
57 netif_device_attach(dev
);
59 if (dev
->netdev_ops
->ndo_open
)
60 dev
->netdev_ops
->ndo_open(dev
);
66 int rtl8192U_enable_wake (struct pci_dev
*dev
, u32 state
, int enable
)
68 printk(KERN_NOTICE
"r8192U enable wake call (state %u, enable %d).\n",