Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
rtl871x_pwrctrl.h File Reference
#include "osdep_service.h"
#include "drv_types.h"

Go to the source code of this file.

Data Structures

struct  reportpwrstate_parm
 
struct  pwrctrl_priv
 

Macros

#define CMD_ALIVE   BIT(2)
 
#define PS_DPS   BIT(0)
 
#define PS_LCLK   (PS_DPS)
 
#define PS_RF_OFF   BIT(1)
 
#define PS_ALL_ON   BIT(2)
 
#define PS_ST_ACTIVE   BIT(3)
 
#define PS_LP   BIT(4) /* low performance */
 
#define PS_STATE_MASK   (0x0F)
 
#define PS_STATE_HW_MASK   (0x07)
 
#define PS_SEQ_MASK   (0xc0)
 
#define PS_STATE(x)   (PS_STATE_MASK & (x))
 
#define PS_STATE_HW(x)   (PS_STATE_HW_MASK & (x))
 
#define PS_SEQ(x)   (PS_SEQ_MASK & (x))
 
#define PS_STATE_S0   (PS_DPS)
 
#define PS_STATE_S1   (PS_LCLK)
 
#define PS_STATE_S2   (PS_RF_OFF)
 
#define PS_STATE_S3   (PS_ALL_ON)
 
#define PS_STATE_S4   ((PS_ST_ACTIVE) | (PS_ALL_ON))
 
#define PS_IS_RF_ON(x)   ((x) & (PS_ALL_ON))
 
#define PS_IS_ACTIVE(x)   ((x) & (PS_ST_ACTIVE))
 
#define CLR_PS_STATE(x)   ((x) = ((x) & (0xF0)))
 

Enumerations

enum  Power_Mgnt {
  PS_MODE_ACTIVE = 0, PS_MODE_MIN, PS_MODE_MAX, PS_MODE_DTIM,
  PS_MODE_VOIP, PS_MODE_UAPSD_WMM, PS_MODE_UAPSD, PS_MODE_IBSS,
  PS_MODE_WWLAN, PM_Radio_Off, PM_Card_Disable, PS_MODE_NUM
}
 

Functions

void r8712_init_pwrctrl_priv (struct _adapter *adapter)
 
sint r8712_register_cmd_alive (struct _adapter *padapter)
 
void r8712_unregister_cmd_alive (struct _adapter *padapter)
 
void r8712_cpwm_int_hdl (struct _adapter *padapter, struct reportpwrstate_parm *preportpwrstate)
 
void r8712_set_ps_mode (struct _adapter *padapter, uint ps_mode, uint smart_ps)
 
void r8712_set_rpwm (struct _adapter *padapter, u8 val8)
 

Macro Definition Documentation

#define CLR_PS_STATE (   x)    ((x) = ((x) & (0xF0)))

Definition at line 81 of file rtl871x_pwrctrl.h.

#define CMD_ALIVE   BIT(2)

Definition at line 33 of file rtl871x_pwrctrl.h.

#define PS_ALL_ON   BIT(2)

Definition at line 60 of file rtl871x_pwrctrl.h.

#define PS_DPS   BIT(0)

Definition at line 57 of file rtl871x_pwrctrl.h.

#define PS_IS_ACTIVE (   x)    ((x) & (PS_ST_ACTIVE))

Definition at line 80 of file rtl871x_pwrctrl.h.

#define PS_IS_RF_ON (   x)    ((x) & (PS_ALL_ON))

Definition at line 79 of file rtl871x_pwrctrl.h.

#define PS_LCLK   (PS_DPS)

Definition at line 58 of file rtl871x_pwrctrl.h.

#define PS_LP   BIT(4) /* low performance */

Definition at line 62 of file rtl871x_pwrctrl.h.

#define PS_RF_OFF   BIT(1)

Definition at line 59 of file rtl871x_pwrctrl.h.

#define PS_SEQ (   x)    (PS_SEQ_MASK & (x))

Definition at line 70 of file rtl871x_pwrctrl.h.

#define PS_SEQ_MASK   (0xc0)

Definition at line 66 of file rtl871x_pwrctrl.h.

#define PS_ST_ACTIVE   BIT(3)

Definition at line 61 of file rtl871x_pwrctrl.h.

#define PS_STATE (   x)    (PS_STATE_MASK & (x))

Definition at line 68 of file rtl871x_pwrctrl.h.

#define PS_STATE_HW (   x)    (PS_STATE_HW_MASK & (x))

Definition at line 69 of file rtl871x_pwrctrl.h.

#define PS_STATE_HW_MASK   (0x07)

Definition at line 65 of file rtl871x_pwrctrl.h.

#define PS_STATE_MASK   (0x0F)

Definition at line 64 of file rtl871x_pwrctrl.h.

#define PS_STATE_S0   (PS_DPS)

Definition at line 72 of file rtl871x_pwrctrl.h.

#define PS_STATE_S1   (PS_LCLK)

Definition at line 73 of file rtl871x_pwrctrl.h.

#define PS_STATE_S2   (PS_RF_OFF)

Definition at line 74 of file rtl871x_pwrctrl.h.

#define PS_STATE_S3   (PS_ALL_ON)

Definition at line 75 of file rtl871x_pwrctrl.h.

#define PS_STATE_S4   ((PS_ST_ACTIVE) | (PS_ALL_ON))

Definition at line 76 of file rtl871x_pwrctrl.h.

Enumeration Type Documentation

enum Power_Mgnt
Enumerator:
PS_MODE_ACTIVE 
PS_MODE_MIN 
PS_MODE_MAX 
PS_MODE_DTIM 
PS_MODE_VOIP 
PS_MODE_UAPSD_WMM 
PS_MODE_UAPSD 
PS_MODE_IBSS 
PS_MODE_WWLAN 
PM_Radio_Off 
PM_Card_Disable 
PS_MODE_NUM 

Definition at line 35 of file rtl871x_pwrctrl.h.

Function Documentation

void r8712_cpwm_int_hdl ( struct _adapter padapter,
struct reportpwrstate_parm preportpwrstate 
)

Definition at line 98 of file rtl871x_pwrctrl.c.

void r8712_init_pwrctrl_priv ( struct _adapter adapter)

Definition at line 175 of file rtl871x_pwrctrl.c.

sint r8712_register_cmd_alive ( struct _adapter padapter)

Definition at line 209 of file rtl871x_pwrctrl.c.

void r8712_set_ps_mode ( struct _adapter padapter,
uint  ps_mode,
uint  smart_ps 
)

Definition at line 70 of file rtl871x_pwrctrl.c.

void r8712_set_rpwm ( struct _adapter padapter,
u8  val8 
)

Definition at line 38 of file rtl871x_pwrctrl.c.

void r8712_unregister_cmd_alive ( struct _adapter padapter)

Definition at line 232 of file rtl871x_pwrctrl.c.