linux/drivers/staging/rtl8192e/rtl8192e/rtl_ps.h
<<
>>
Prefs
   1/******************************************************************************
   2 * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
   3 *
   4 * Based on the r8180 driver, which is:
   5 * Copyright 2004-2005 Andrea Merello <andrea.merello@gmail.com>, et al.
   6 * This program is free software; you can redistribute it and/or modify it
   7 * under the terms of version 2 of the GNU General Public License as
   8 * published by the Free Software Foundation.
   9 *
  10 * This program is distributed in the hope that it will be useful, but WITHOUT
  11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
  13 * more details.
  14 *
  15 * The full GNU General Public License is included in this distribution in the
  16 * file called LICENSE.
  17 *
  18 * Contact Information:
  19 * wlanfae <wlanfae@realtek.com>
  20 ******************************************************************************/
  21#ifndef _RTL_PS_H
  22#define _RTL_PS_H
  23
  24#include <linux/types.h>
  25
  26struct net_device;
  27
  28#define RT_CHECK_FOR_HANG_PERIOD 2
  29
  30void rtl92e_hw_wakeup(struct net_device *dev);
  31void rtl92e_enter_sleep(struct net_device *dev, u64 time);
  32void rtl92e_rtllib_ips_leave_wq(struct net_device *dev);
  33void rtl92e_rtllib_ips_leave(struct net_device *dev);
  34void rtl92e_ips_leave_wq(void *data);
  35
  36void rtl92e_ips_enter(struct net_device *dev);
  37void rtl92e_ips_leave(struct net_device *dev);
  38
  39void rtl92e_leisure_ps_enter(struct net_device *dev);
  40void rtl92e_leisure_ps_leave(struct net_device *dev);
  41
  42#endif
  43