linux/drivers/staging/rtl8712/rtl871x_pwrctrl.h

/* SPDX-License-Identifier: GPL-2.0 */
/******************************************************************************
 *
 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
 *
 * Modifications for inclusion into the Linux staging tree are
 * Copyright(c) 2010 Larry Finger. All rights reserved.
 *
 * Contact information:
 * WLAN FAE <[email protected]>
 * Larry Finger <[email protected]>
 *
 ******************************************************************************/
#ifndef __RTL871X_PWRCTRL_H_
#define __RTL871X_PWRCTRL_H_

#include "osdep_service.h"
#include "drv_types.h"

#define CMD_ALIVE

enum Power_Mgnt {};

/*
 * BIT[2:0] = HW state
 * BIT[3] = Protocol PS state, 0: register active state,
 *				1: register sleep state
 * BIT[4] = sub-state
 */

#define PS_DPS
#define PS_LCLK
#define PS_RF_OFF
#define PS_ALL_ON
#define PS_ST_ACTIVE
#define PS_LP

#define PS_STATE_MASK
#define PS_STATE_HW_MASK
#define PS_SEQ_MASK

#define PS_STATE(x)
#define PS_STATE_HW(x)
#define PS_SEQ(x)

#define PS_STATE_S0
#define PS_STATE_S1
#define PS_STATE_S2
#define PS_STATE_S3
#define PS_STATE_S4

#define PS_IS_RF_ON(x)
#define PS_IS_ACTIVE(x)
#define CLR_PS_STATE(x)

struct reportpwrstate_parm {};

struct	pwrctrl_priv {};

void r8712_init_pwrctrl_priv(struct _adapter *adapter);
int 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);
void r8712_flush_rwctrl_works(struct _adapter *padapter);

#endif  /* __RTL871X_PWRCTRL_H_ */