linux/drivers/net/wireless/realtek/rtlwifi/pwrseqcmd.h

/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright(c) 2009-2012  Realtek Corporation.*/

#ifndef __RTL8723E_PWRSEQCMD_H__
#define __RTL8723E_PWRSEQCMD_H__

#include "wifi.h"
/*---------------------------------------------
 * 3 The value of cmd: 4 bits
 *---------------------------------------------
 */
#define PWR_CMD_READ
#define PWR_CMD_WRITE
#define PWR_CMD_POLLING
#define PWR_CMD_DELAY
#define PWR_CMD_END

/* define the base address of each block */
#define PWR_BASEADDR_MAC
#define PWR_BASEADDR_USB
#define PWR_BASEADDR_PCIE
#define PWR_BASEADDR_SDIO

#define PWR_INTF_SDIO_MSK
#define PWR_INTF_USB_MSK
#define PWR_INTF_PCI_MSK
#define PWR_INTF_ALL_MSK

#define PWR_FAB_TSMC_MSK
#define PWR_FAB_UMC_MSK
#define PWR_FAB_ALL_MSK

#define PWR_CUT_TESTCHIP_MSK
#define PWR_CUT_A_MSK
#define PWR_CUT_B_MSK
#define PWR_CUT_C_MSK
#define PWR_CUT_D_MSK
#define PWR_CUT_E_MSK
#define PWR_CUT_F_MSK
#define PWR_CUT_G_MSK
#define PWR_CUT_ALL_MSK

enum pwrseq_delay_unit {};

struct wlan_pwr_cfg {};

#define GET_PWR_CFG_OFFSET(__PWR_CMD)
#define GET_PWR_CFG_CUT_MASK(__PWR_CMD)
#define GET_PWR_CFG_FAB_MASK(__PWR_CMD)
#define GET_PWR_CFG_INTF_MASK(__PWR_CMD)
#define GET_PWR_CFG_BASE(__PWR_CMD)
#define GET_PWR_CFG_CMD(__PWR_CMD)
#define GET_PWR_CFG_MASK(__PWR_CMD)
#define GET_PWR_CFG_VALUE(__PWR_CMD)

bool rtl_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version,
			      u8 fab_version, u8 interface_type,
			      struct wlan_pwr_cfg pwrcfgcmd[]);

#endif