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)
12 #ifdef CONFIG_RTL8192_PM
14 #include "r8192U_pm.h"
16 /*****************************************************************************/
17 int rtl8192U_save_state (struct pci_dev
*dev
, u32 state
)
19 printk(KERN_NOTICE
"r8192U save state call (state %u).\n", state
);
23 int rtl8192U_suspend(struct usb_interface
*intf
, pm_message_t state
)
25 #if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
26 struct net_device
*dev
= usb_get_intfdata(intf
);
28 //struct net_device *dev = (struct net_device *)ptr;
30 RT_TRACE(COMP_POWER
, "============> r8192U suspend call.\n");
33 if (!netif_running(dev
)) {
34 printk(KERN_WARNING
"netif not running, go out suspend function\n");
41 netif_device_detach(dev
);
47 int rtl8192U_resume (struct usb_interface
*intf
)
49 #if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
50 struct net_device
*dev
= usb_get_intfdata(intf
);
52 //struct net_device *dev = (struct net_device *)ptr;
55 RT_TRACE(COMP_POWER
, "================>r8192U resume call.");
58 if (!netif_running(dev
)){
59 printk(KERN_WARNING
"netif not running, go out resume function\n");
63 netif_device_attach(dev
);
70 int rtl8192U_enable_wake (struct pci_dev
*dev
, u32 state
, int enable
)
72 printk(KERN_NOTICE
"r8192U enable wake call (state %u, enable %d).\n",
77 #endif //CONFIG_RTL8192_PM