2015-08-18 19:03:09 +00:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
2019-11-09 10:12:08 +00:00
|
|
|
* Copyright(c) 2007 - 2017 Realtek Corporation.
|
|
|
|
*
|
2015-08-18 19:03:09 +00:00
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of version 2 of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
* more details.
|
|
|
|
*
|
2019-11-09 10:12:08 +00:00
|
|
|
*****************************************************************************/
|
2015-08-18 19:03:09 +00:00
|
|
|
#ifndef __HAL_INTF_H__
|
|
|
|
#define __HAL_INTF_H__
|
|
|
|
|
|
|
|
|
|
|
|
enum RTL871X_HCI_TYPE {
|
|
|
|
RTW_PCIE = BIT0,
|
2019-11-09 10:12:08 +00:00
|
|
|
RTW_USB = BIT1,
|
|
|
|
RTW_SDIO = BIT2,
|
2015-08-18 19:03:09 +00:00
|
|
|
RTW_GSPI = BIT3,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum _CHIP_TYPE {
|
|
|
|
|
2017-05-11 18:47:23 +00:00
|
|
|
NULL_CHIP_TYPE,
|
2015-08-18 19:03:09 +00:00
|
|
|
RTL8188E,
|
|
|
|
RTL8192E,
|
|
|
|
RTL8812,
|
2019-11-09 10:12:08 +00:00
|
|
|
RTL8821, /* RTL8811 */
|
2015-08-18 19:03:09 +00:00
|
|
|
RTL8723B,
|
2017-05-11 18:47:23 +00:00
|
|
|
RTL8814A,
|
|
|
|
RTL8703B,
|
|
|
|
RTL8188F,
|
2019-11-09 10:12:08 +00:00
|
|
|
RTL8188GTV,
|
|
|
|
RTL8822B,
|
|
|
|
RTL8723D,
|
|
|
|
RTL8821C,
|
|
|
|
RTL8710B,
|
|
|
|
RTL8192F,
|
2015-08-18 19:03:09 +00:00
|
|
|
MAX_CHIP_TYPE
|
|
|
|
};
|
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
#ifdef RTW_HALMAC
|
|
|
|
enum fw_mem {
|
|
|
|
FW_EMEM,
|
|
|
|
FW_IMEM,
|
|
|
|
FW_DMEM,
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2017-05-11 18:47:23 +00:00
|
|
|
extern const u32 _chip_type_to_odm_ic_type[];
|
|
|
|
#define chip_type_to_odm_ic_type(chip_type) (((chip_type) >= MAX_CHIP_TYPE) ? _chip_type_to_odm_ic_type[MAX_CHIP_TYPE] : _chip_type_to_odm_ic_type[(chip_type)])
|
|
|
|
|
|
|
|
typedef enum _HAL_HW_TIMER_TYPE {
|
|
|
|
HAL_TIMER_NONE = 0,
|
|
|
|
HAL_TIMER_TXBF = 1,
|
|
|
|
HAL_TIMER_EARLYMODE = 2,
|
|
|
|
} HAL_HW_TIMER_TYPE, *PHAL_HW_TIMER_TYPE;
|
|
|
|
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
typedef enum _HW_VARIABLES {
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_MEDIA_STATUS,
|
|
|
|
HW_VAR_SET_OPMODE,
|
|
|
|
HW_VAR_MAC_ADDR,
|
|
|
|
HW_VAR_BSSID,
|
|
|
|
HW_VAR_INIT_RTS_RATE,
|
|
|
|
HW_VAR_BASIC_RATE,
|
|
|
|
HW_VAR_TXPAUSE,
|
|
|
|
HW_VAR_BCN_FUNC,
|
2019-11-09 10:12:08 +00:00
|
|
|
HW_VAR_BCN_CTRL_ADDR,
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_CORRECT_TSF,
|
2019-11-09 10:12:08 +00:00
|
|
|
HW_VAR_RCR,
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_MLME_DISCONNECT,
|
|
|
|
HW_VAR_MLME_SITESURVEY,
|
|
|
|
HW_VAR_MLME_JOIN,
|
|
|
|
HW_VAR_ON_RCR_AM,
|
2019-11-09 10:12:08 +00:00
|
|
|
HW_VAR_OFF_RCR_AM,
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_BEACON_INTERVAL,
|
|
|
|
HW_VAR_SLOT_TIME,
|
|
|
|
HW_VAR_RESP_SIFS,
|
|
|
|
HW_VAR_ACK_PREAMBLE,
|
|
|
|
HW_VAR_SEC_CFG,
|
2017-05-11 18:35:20 +00:00
|
|
|
HW_VAR_SEC_DK_CFG,
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_BCN_VALID,
|
|
|
|
HW_VAR_RF_TYPE,
|
2019-11-09 10:12:08 +00:00
|
|
|
HW_VAR_FREECNT,
|
|
|
|
|
2017-05-11 18:47:23 +00:00
|
|
|
/* PHYDM odm->SupportAbility */
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_CAM_EMPTY_ENTRY,
|
|
|
|
HW_VAR_CAM_INVALID_ALL,
|
|
|
|
HW_VAR_AC_PARAM_VO,
|
|
|
|
HW_VAR_AC_PARAM_VI,
|
|
|
|
HW_VAR_AC_PARAM_BE,
|
|
|
|
HW_VAR_AC_PARAM_BK,
|
|
|
|
HW_VAR_ACM_CTRL,
|
2019-11-09 10:12:08 +00:00
|
|
|
#ifdef CONFIG_WMMPS_STA
|
|
|
|
HW_VAR_UAPSD_TID,
|
|
|
|
#endif /* CONFIG_WMMPS_STA */
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_AMPDU_MIN_SPACE,
|
2019-11-09 10:12:08 +00:00
|
|
|
#ifdef CONFIG_80211N_HT
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_AMPDU_FACTOR,
|
2019-11-09 10:12:08 +00:00
|
|
|
#endif /* CONFIG_80211N_HT */
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_RXDMA_AGG_PG_TH,
|
|
|
|
HW_VAR_SET_RPWM,
|
|
|
|
HW_VAR_CPWM,
|
|
|
|
HW_VAR_H2C_FW_PWRMODE,
|
2019-11-09 10:12:08 +00:00
|
|
|
HW_VAR_H2C_INACTIVE_IPS,
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_H2C_PS_TUNE_PARAM,
|
|
|
|
HW_VAR_H2C_FW_JOINBSSRPT,
|
|
|
|
HW_VAR_FWLPS_RF_ON,
|
|
|
|
HW_VAR_H2C_FW_P2P_PS_OFFLOAD,
|
2019-11-09 10:12:08 +00:00
|
|
|
#ifdef CONFIG_LPS_POFF
|
|
|
|
HW_VAR_LPS_POFF_INIT,
|
|
|
|
HW_VAR_LPS_POFF_DEINIT,
|
|
|
|
HW_VAR_LPS_POFF_SET_MODE,
|
|
|
|
HW_VAR_LPS_POFF_WOW_EN,
|
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_LPS_PG
|
|
|
|
HW_VAR_LPS_PG_HANDLE,
|
|
|
|
#endif
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_TRIGGER_GPIO_0,
|
|
|
|
HW_VAR_BT_SET_COEXIST,
|
2019-11-09 10:12:08 +00:00
|
|
|
HW_VAR_BT_ISSUE_DELBA,
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_SWITCH_EPHY_WoWLAN,
|
|
|
|
HW_VAR_EFUSE_USAGE,
|
|
|
|
HW_VAR_EFUSE_BYTES,
|
|
|
|
HW_VAR_EFUSE_BT_USAGE,
|
|
|
|
HW_VAR_EFUSE_BT_BYTES,
|
|
|
|
HW_VAR_FIFO_CLEARN_UP,
|
2017-05-11 18:47:23 +00:00
|
|
|
HW_VAR_RESTORE_HW_SEQ,
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_CHECK_TXBUF,
|
|
|
|
HW_VAR_PCIE_STOP_TX_DMA,
|
2019-11-09 10:12:08 +00:00
|
|
|
HW_VAR_APFM_ON_MAC, /* Auto FSM to Turn On, include clock, isolation, power control for MAC only */
|
2017-05-11 18:47:23 +00:00
|
|
|
HW_VAR_HCI_SUS_STATE,
|
2019-11-09 10:12:08 +00:00
|
|
|
/* The valid upper nav range for the HW updating, if the true value is larger than the upper range, the HW won't update it. */
|
|
|
|
/* Unit in microsecond. 0 means disable this function. */
|
2017-05-11 18:47:23 +00:00
|
|
|
#if defined(CONFIG_WOWLAN) || defined(CONFIG_AP_WOWLAN)
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_WOWLAN,
|
|
|
|
HW_VAR_WAKEUP_REASON,
|
|
|
|
#endif
|
2019-11-09 10:12:08 +00:00
|
|
|
HW_VAR_RPWM_TOG,
|
2017-05-11 18:47:23 +00:00
|
|
|
#ifdef CONFIG_GPIO_WAKEUP
|
|
|
|
HW_SET_GPIO_WL_CTRL,
|
2015-08-18 19:03:09 +00:00
|
|
|
#endif
|
|
|
|
HW_VAR_SYS_CLKR,
|
|
|
|
HW_VAR_NAV_UPPER,
|
|
|
|
HW_VAR_RPT_TIMER_SETTING,
|
2019-11-09 10:12:08 +00:00
|
|
|
HW_VAR_TX_RPT_MAX_MACID,
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_CHK_HI_QUEUE_EMPTY,
|
2019-11-09 10:12:08 +00:00
|
|
|
HW_VAR_CHK_MGQ_CPU_EMPTY,
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_DL_BCN_SEL,
|
|
|
|
HW_VAR_AMPDU_MAX_TIME,
|
|
|
|
HW_VAR_WIRELESS_MODE,
|
|
|
|
HW_VAR_USB_MODE,
|
|
|
|
HW_VAR_PORT_SWITCH,
|
2019-11-09 10:12:08 +00:00
|
|
|
HW_VAR_PORT_CFG,
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_DO_IQK,
|
2019-11-09 10:12:08 +00:00
|
|
|
HW_VAR_DM_IN_LPS_LCLK,/*flag CONFIG_LPS_LCLK_WD_TIMER*/
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_SET_REQ_FW_PS,
|
|
|
|
HW_VAR_FW_PS_STATE,
|
|
|
|
HW_VAR_SOUNDING_ENTER,
|
|
|
|
HW_VAR_SOUNDING_LEAVE,
|
|
|
|
HW_VAR_SOUNDING_RATE,
|
|
|
|
HW_VAR_SOUNDING_STATUS,
|
|
|
|
HW_VAR_SOUNDING_FW_NDPA,
|
|
|
|
HW_VAR_SOUNDING_CLK,
|
2019-11-09 10:12:08 +00:00
|
|
|
HW_VAR_SOUNDING_SET_GID_TABLE,
|
|
|
|
HW_VAR_SOUNDING_CSI_REPORT,
|
|
|
|
/*Add by YuChen for TXBF HW timer*/
|
2017-05-11 18:47:23 +00:00
|
|
|
HW_VAR_HW_REG_TIMER_INIT,
|
|
|
|
HW_VAR_HW_REG_TIMER_RESTART,
|
|
|
|
HW_VAR_HW_REG_TIMER_START,
|
|
|
|
HW_VAR_HW_REG_TIMER_STOP,
|
2019-11-09 10:12:08 +00:00
|
|
|
/*Add by YuChen for TXBF HW timer*/
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_DL_RSVD_PAGE,
|
2017-05-11 18:47:23 +00:00
|
|
|
HW_VAR_MACID_LINK,
|
|
|
|
HW_VAR_MACID_NOLINK,
|
2017-05-11 18:35:20 +00:00
|
|
|
HW_VAR_DUMP_MAC_QUEUE_INFO,
|
|
|
|
HW_VAR_ASIX_IOT,
|
2019-11-09 10:12:08 +00:00
|
|
|
#ifdef CONFIG_MBSSID_CAM
|
|
|
|
HW_VAR_MBSSID_CAM_WRITE,
|
|
|
|
HW_VAR_MBSSID_CAM_CLEAR,
|
|
|
|
HW_VAR_RCR_MBSSID_EN,
|
|
|
|
#endif
|
2017-05-11 18:47:23 +00:00
|
|
|
HW_VAR_EN_HW_UPDATE_TSF,
|
|
|
|
HW_VAR_CH_SW_NEED_TO_TAKE_CARE_IQK_INFO,
|
|
|
|
HW_VAR_CH_SW_IQK_INFO_BACKUP,
|
|
|
|
HW_VAR_CH_SW_IQK_INFO_RESTORE,
|
2019-11-09 10:12:08 +00:00
|
|
|
|
|
|
|
HW_VAR_DBI,
|
|
|
|
HW_VAR_MDIO,
|
|
|
|
HW_VAR_L1OFF_CAPABILITY,
|
|
|
|
HW_VAR_L1OFF_NIC_SUPPORT,
|
2017-05-11 18:47:23 +00:00
|
|
|
#ifdef CONFIG_TDLS
|
|
|
|
#ifdef CONFIG_TDLS_CH_SW
|
2019-11-09 10:12:08 +00:00
|
|
|
HW_VAR_TDLS_BCN_EARLY_C2H_RPT,
|
|
|
|
#endif
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
2019-11-09 10:12:08 +00:00
|
|
|
HW_VAR_DUMP_MAC_TXFIFO,
|
|
|
|
HW_VAR_PWR_CMD,
|
|
|
|
#ifdef CONFIG_FW_HANDLE_TXBCN
|
|
|
|
HW_VAR_BCN_HEAD_SEL,
|
|
|
|
#endif
|
|
|
|
HW_VAR_SET_SOML_PARAM,
|
|
|
|
HW_VAR_ENABLE_RX_BAR,
|
|
|
|
HW_VAR_TSF_AUTO_SYNC,
|
|
|
|
HW_VAR_LPS_STATE_CHK,
|
|
|
|
#ifdef CONFIG_RTS_FULL_BW
|
|
|
|
HW_VAR_SET_RTS_BW,
|
|
|
|
#endif
|
|
|
|
#if defined(CONFIG_PCI_HCI)
|
|
|
|
HW_VAR_ENSWBCN,
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
2019-11-09 10:12:08 +00:00
|
|
|
} HW_VARIABLES;
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
typedef enum _HAL_DEF_VARIABLE {
|
2015-08-18 19:03:09 +00:00
|
|
|
HAL_DEF_UNDERCORATEDSMOOTHEDPWDB,
|
|
|
|
HAL_DEF_IS_SUPPORT_ANT_DIV,
|
|
|
|
HAL_DEF_DRVINFO_SZ,
|
|
|
|
HAL_DEF_MAX_RECVBUF_SZ,
|
|
|
|
HAL_DEF_RX_PACKET_OFFSET,
|
2017-05-11 18:47:23 +00:00
|
|
|
HAL_DEF_RX_DMA_SZ_WOW,
|
|
|
|
HAL_DEF_RX_DMA_SZ,
|
|
|
|
HAL_DEF_RX_PAGE_SIZE,
|
2019-11-09 10:12:08 +00:00
|
|
|
HAL_DEF_DBG_DUMP_RXPKT,/* for dbg */
|
2015-08-18 19:03:09 +00:00
|
|
|
HAL_DEF_RA_DECISION_RATE,
|
|
|
|
HAL_DEF_RA_SGI,
|
|
|
|
HAL_DEF_PT_PWR_STATUS,
|
2019-11-09 10:12:08 +00:00
|
|
|
HAL_DEF_TX_LDPC, /* LDPC support */
|
|
|
|
HAL_DEF_RX_LDPC, /* LDPC support */
|
|
|
|
HAL_DEF_TX_STBC, /* TX STBC support */
|
|
|
|
HAL_DEF_RX_STBC, /* RX STBC support */
|
|
|
|
HAL_DEF_EXPLICIT_BEAMFORMER,/* Explicit Compressed Steering Capable */
|
|
|
|
HAL_DEF_EXPLICIT_BEAMFORMEE,/* Explicit Compressed Beamforming Feedback Capable */
|
|
|
|
HAL_DEF_VHT_MU_BEAMFORMER, /* VHT MU Beamformer support */
|
|
|
|
HAL_DEF_VHT_MU_BEAMFORMEE, /* VHT MU Beamformee support */
|
2017-05-11 18:47:23 +00:00
|
|
|
HAL_DEF_BEAMFORMER_CAP,
|
|
|
|
HAL_DEF_BEAMFORMEE_CAP,
|
2015-08-18 19:03:09 +00:00
|
|
|
HW_VAR_MAX_RX_AMPDU_FACTOR,
|
|
|
|
HW_DEF_RA_INFO_DUMP,
|
|
|
|
HAL_DEF_DBG_DUMP_TXPKT,
|
2017-05-11 18:47:23 +00:00
|
|
|
|
2015-08-18 19:03:09 +00:00
|
|
|
HAL_DEF_TX_PAGE_SIZE,
|
|
|
|
HAL_DEF_TX_PAGE_BOUNDARY,
|
|
|
|
HAL_DEF_TX_PAGE_BOUNDARY_WOWLAN,
|
2019-11-09 10:12:08 +00:00
|
|
|
HAL_DEF_ANT_DETECT,/* to do for 8723a */
|
|
|
|
HAL_DEF_PCI_SUUPORT_L1_BACKDOOR, /* Determine if the L1 Backdoor setting is turned on. */
|
2015-08-18 19:03:09 +00:00
|
|
|
HAL_DEF_PCI_AMD_L1_SUPPORT,
|
2019-11-09 10:12:08 +00:00
|
|
|
HAL_DEF_PCI_ASPM_OSC, /* Support for ASPM OSC, added by Roger, 2013.03.27. */
|
2017-05-11 18:47:23 +00:00
|
|
|
HAL_DEF_EFUSE_USAGE, /* Get current EFUSE utilization. 2008.12.19. Added by Roger. */
|
|
|
|
HAL_DEF_EFUSE_BYTES,
|
|
|
|
HW_VAR_BEST_AMPDU_DENSITY,
|
2019-11-09 10:12:08 +00:00
|
|
|
} HAL_DEF_VARIABLE;
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
typedef enum _HAL_ODM_VARIABLE {
|
|
|
|
HAL_ODM_STA_INFO,
|
2015-08-18 19:03:09 +00:00
|
|
|
HAL_ODM_P2P_STATE,
|
|
|
|
HAL_ODM_WIFI_DISPLAY_STATE,
|
2017-05-11 18:35:20 +00:00
|
|
|
HAL_ODM_REGULATION,
|
2017-05-11 18:47:23 +00:00
|
|
|
HAL_ODM_INITIAL_GAIN,
|
|
|
|
HAL_ODM_RX_INFO_DUMP,
|
|
|
|
HAL_ODM_RX_Dframe_INFO,
|
|
|
|
#ifdef CONFIG_ANTENNA_DIVERSITY
|
|
|
|
HAL_ODM_ANTDIV_SELECT
|
|
|
|
#endif
|
2019-11-09 10:12:08 +00:00
|
|
|
} HAL_ODM_VARIABLE;
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
typedef enum _HAL_INTF_PS_FUNC {
|
2015-08-18 19:03:09 +00:00
|
|
|
HAL_USB_SELECT_SUSPEND,
|
|
|
|
HAL_MAX_ID,
|
2019-11-09 10:12:08 +00:00
|
|
|
} HAL_INTF_PS_FUNC;
|
|
|
|
|
|
|
|
typedef s32(*c2h_id_filter)(_adapter *adapter, u8 id, u8 seq, u8 plen, u8 *payload);
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
struct txpwr_idx_comp;
|
2015-08-18 19:03:09 +00:00
|
|
|
|
|
|
|
struct hal_ops {
|
2017-05-11 18:47:23 +00:00
|
|
|
/*** initialize section ***/
|
|
|
|
void (*read_chip_version)(_adapter *padapter);
|
|
|
|
void (*init_default_value)(_adapter *padapter);
|
|
|
|
void (*intf_chip_configure)(_adapter *padapter);
|
2019-11-09 10:12:08 +00:00
|
|
|
u8 (*read_adapter_info)(_adapter *padapter);
|
|
|
|
u32(*hal_power_on)(_adapter *padapter);
|
|
|
|
void (*hal_power_off)(_adapter *padapter);
|
|
|
|
u32(*hal_init)(_adapter *padapter);
|
|
|
|
u32(*hal_deinit)(_adapter *padapter);
|
2017-05-11 18:47:23 +00:00
|
|
|
void (*dm_init)(_adapter *padapter);
|
|
|
|
void (*dm_deinit)(_adapter *padapter);
|
2019-11-09 10:12:08 +00:00
|
|
|
|
2017-05-11 18:47:23 +00:00
|
|
|
/*** xmit section ***/
|
2019-11-09 10:12:08 +00:00
|
|
|
s32(*init_xmit_priv)(_adapter *padapter);
|
2015-08-18 19:03:09 +00:00
|
|
|
void (*free_xmit_priv)(_adapter *padapter);
|
2019-11-09 10:12:08 +00:00
|
|
|
s32(*hal_xmit)(_adapter *padapter, struct xmit_frame *pxmitframe);
|
2017-05-11 18:47:23 +00:00
|
|
|
/*
|
|
|
|
* mgnt_xmit should be implemented to run in interrupt context
|
|
|
|
*/
|
2019-11-09 10:12:08 +00:00
|
|
|
s32(*mgnt_xmit)(_adapter *padapter, struct xmit_frame *pmgntframe);
|
|
|
|
s32(*hal_xmitframe_enqueue)(_adapter *padapter, struct xmit_frame *pxmitframe);
|
2017-05-11 18:47:23 +00:00
|
|
|
#ifdef CONFIG_XMIT_THREAD_MODE
|
2019-11-09 10:12:08 +00:00
|
|
|
s32(*xmit_thread_handler)(_adapter *padapter);
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
|
|
|
void (*run_thread)(_adapter *padapter);
|
|
|
|
void (*cancel_thread)(_adapter *padapter);
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2017-05-11 18:47:23 +00:00
|
|
|
/*** recv section ***/
|
2019-11-09 10:12:08 +00:00
|
|
|
s32(*init_recv_priv)(_adapter *padapter);
|
|
|
|
void (*free_recv_priv)(_adapter *padapter);
|
|
|
|
#ifdef CONFIG_RECV_THREAD_MODE
|
|
|
|
s32 (*recv_hdl)(_adapter *adapter);
|
|
|
|
#endif
|
|
|
|
#if defined(CONFIG_USB_HCI) || defined(CONFIG_PCI_HCI)
|
|
|
|
u32(*inirp_init)(_adapter *padapter);
|
|
|
|
u32(*inirp_deinit)(_adapter *padapter);
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
|
|
|
/*** interrupt hdl section ***/
|
|
|
|
void (*enable_interrupt)(_adapter *padapter);
|
|
|
|
void (*disable_interrupt)(_adapter *padapter);
|
2019-11-09 10:12:08 +00:00
|
|
|
u8(*check_ips_status)(_adapter *padapter);
|
2017-05-11 18:47:23 +00:00
|
|
|
#if defined(CONFIG_PCI_HCI)
|
2019-11-09 10:12:08 +00:00
|
|
|
s32(*interrupt_handler)(_adapter *padapter);
|
|
|
|
void (*unmap_beacon_icf)(_adapter *padapter);
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2017-05-11 18:47:23 +00:00
|
|
|
#if defined(CONFIG_USB_HCI) && defined(CONFIG_SUPPORT_USB_INT)
|
|
|
|
void (*interrupt_handler)(_adapter *padapter, u16 pkt_len, u8 *pbuf);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(CONFIG_PCI_HCI)
|
|
|
|
void (*irp_reset)(_adapter *padapter);
|
|
|
|
#endif
|
2019-11-09 10:12:08 +00:00
|
|
|
|
2017-05-11 18:47:23 +00:00
|
|
|
/*** DM section ***/
|
2019-11-09 10:12:08 +00:00
|
|
|
#ifdef CONFIG_RTW_SW_LED
|
2015-08-18 19:03:09 +00:00
|
|
|
void (*InitSwLeds)(_adapter *padapter);
|
|
|
|
void (*DeInitSwLeds)(_adapter *padapter);
|
2019-11-09 10:12:08 +00:00
|
|
|
#endif
|
|
|
|
void (*set_chnl_bw_handler)(_adapter *padapter, u8 channel, enum channel_width Bandwidth, u8 Offset40, u8 Offset80);
|
2015-08-18 19:03:09 +00:00
|
|
|
|
|
|
|
void (*set_tx_power_level_handler)(_adapter *padapter, u8 channel);
|
|
|
|
void (*get_tx_power_level_handler)(_adapter *padapter, s32 *powerlevel);
|
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
void (*set_tx_power_index_handler)(_adapter *padapter, u32 powerindex, enum rf_path rfpath, u8 rate);
|
|
|
|
u8 (*get_tx_power_index_handler)(_adapter *padapter, enum rf_path rfpath, u8 rate, u8 bandwidth, u8 channel, struct txpwr_idx_comp *tic);
|
|
|
|
|
2015-08-18 19:03:09 +00:00
|
|
|
void (*hal_dm_watchdog)(_adapter *padapter);
|
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
u8 (*set_hw_reg_handler)(_adapter *padapter, u8 variable, u8 *val);
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
void (*GetHwRegHandler)(_adapter *padapter, u8 variable, u8 *val);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
u8 (*get_hal_def_var_handler)(_adapter *padapter, HAL_DEF_VARIABLE eVariable, PVOID pValue);
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
u8(*SetHalDefVarHandler)(_adapter *padapter, HAL_DEF_VARIABLE eVariable, PVOID pValue);
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
void (*GetHalODMVarHandler)(_adapter *padapter, HAL_ODM_VARIABLE eVariable, PVOID pValue1, PVOID pValue2);
|
|
|
|
void (*SetHalODMVarHandler)(_adapter *padapter, HAL_ODM_VARIABLE eVariable, PVOID pValue1, BOOLEAN bSet);
|
2015-08-18 19:03:09 +00:00
|
|
|
|
|
|
|
void (*SetBeaconRelatedRegistersHandler)(_adapter *padapter);
|
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
u8(*interface_ps_func)(_adapter *padapter, HAL_INTF_PS_FUNC efunc_id, u8 *val);
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
u32(*read_bbreg)(_adapter *padapter, u32 RegAddr, u32 BitMask);
|
2015-08-18 19:03:09 +00:00
|
|
|
void (*write_bbreg)(_adapter *padapter, u32 RegAddr, u32 BitMask, u32 Data);
|
2019-11-09 10:12:08 +00:00
|
|
|
u32 (*read_rfreg)(_adapter *padapter, enum rf_path eRFPath, u32 RegAddr, u32 BitMask);
|
|
|
|
void (*write_rfreg)(_adapter *padapter, enum rf_path eRFPath, u32 RegAddr, u32 BitMask, u32 Data);
|
|
|
|
#ifdef CONFIG_SYSON_INDIRECT_ACCESS
|
|
|
|
u32 (*read_syson_reg)(_adapter *padapter, u32 RegAddr, u32 BitMask);
|
|
|
|
void (*write_syson_reg)(_adapter *padapter, u32 RegAddr, u32 BitMask, u32 Data);
|
|
|
|
#endif
|
|
|
|
void (*read_wmmedca_reg)(_adapter *padapter, u16 *vo_params, u16 *vi_params, u16 *be_params, u16 *bk_params);
|
|
|
|
|
2015-08-18 19:03:09 +00:00
|
|
|
#ifdef CONFIG_HOSTAPD_MLME
|
2019-11-09 10:12:08 +00:00
|
|
|
s32(*hostap_mgnt_xmit_entry)(_adapter *padapter, _pkt *pkt);
|
2015-08-18 19:03:09 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
void (*EfusePowerSwitch)(_adapter *padapter, u8 bWrite, u8 PwrState);
|
|
|
|
void (*BTEfusePowerSwitch)(_adapter *padapter, u8 bWrite, u8 PwrState);
|
|
|
|
void (*ReadEFuse)(_adapter *padapter, u8 efuseType, u16 _offset, u16 _size_byte, u8 *pbuf, BOOLEAN bPseudoTest);
|
|
|
|
void (*EFUSEGetEfuseDefinition)(_adapter *padapter, u8 efuseType, u8 type, void *pOut, BOOLEAN bPseudoTest);
|
2019-11-09 10:12:08 +00:00
|
|
|
u16(*EfuseGetCurrentSize)(_adapter *padapter, u8 efuseType, BOOLEAN bPseudoTest);
|
|
|
|
int (*Efuse_PgPacketRead)(_adapter *padapter, u8 offset, u8 *data, BOOLEAN bPseudoTest);
|
|
|
|
int (*Efuse_PgPacketWrite)(_adapter *padapter, u8 offset, u8 word_en, u8 *data, BOOLEAN bPseudoTest);
|
|
|
|
u8(*Efuse_WordEnableDataWrite)(_adapter *padapter, u16 efuse_addr, u8 word_en, u8 *data, BOOLEAN bPseudoTest);
|
|
|
|
BOOLEAN(*Efuse_PgPacketWrite_BT)(_adapter *padapter, u8 offset, u8 word_en, u8 *data, BOOLEAN bPseudoTest);
|
|
|
|
#if defined(CONFIG_RTL8710B)
|
|
|
|
BOOLEAN(*efuse_indirect_read4)(_adapter *padapter, u16 regaddr, u8 *value);
|
|
|
|
#endif
|
|
|
|
|
2015-08-18 19:03:09 +00:00
|
|
|
#ifdef DBG_CONFIG_ERROR_DETECT
|
|
|
|
void (*sreset_init_value)(_adapter *padapter);
|
2019-11-09 10:12:08 +00:00
|
|
|
void (*sreset_reset_value)(_adapter *padapter);
|
2015-08-18 19:03:09 +00:00
|
|
|
void (*silentreset)(_adapter *padapter);
|
|
|
|
void (*sreset_xmit_status_check)(_adapter *padapter);
|
2019-11-09 10:12:08 +00:00
|
|
|
void (*sreset_linked_status_check)(_adapter *padapter);
|
|
|
|
u8(*sreset_get_wifi_status)(_adapter *padapter);
|
2015-08-18 19:03:09 +00:00
|
|
|
bool (*sreset_inprogress)(_adapter *padapter);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_IOL
|
|
|
|
int (*IOL_exec_cmds_sync)(_adapter *padapter, struct xmit_frame *xmit_frame, u32 max_wating_ms, u32 bndy_cnt);
|
|
|
|
#endif
|
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
void (*hal_notch_filter)(_adapter *adapter, bool enable);
|
|
|
|
#ifdef RTW_HALMAC
|
|
|
|
void (*hal_mac_c2h_handler)(_adapter *adapter, u8 *pbuf, u16 length);
|
|
|
|
#else
|
|
|
|
s32(*c2h_handler)(_adapter *adapter, u8 id, u8 seq, u8 plen, u8 *payload);
|
|
|
|
#endif
|
|
|
|
void (*reqtxrpt)(_adapter *padapter, u8 macid);
|
|
|
|
s32(*fill_h2c_cmd)(PADAPTER, u8 ElementID, u32 CmdLen, u8 *pCmdBuffer);
|
2017-05-11 18:47:23 +00:00
|
|
|
void (*fill_fake_txdesc)(PADAPTER, u8 *pDesc, u32 BufferLen,
|
2019-11-09 10:12:08 +00:00
|
|
|
u8 IsPsPoll, u8 IsBTQosNull, u8 bDataFrame);
|
|
|
|
s32(*fw_dl)(_adapter *adapter, u8 wowlan);
|
|
|
|
#ifdef RTW_HALMAC
|
|
|
|
s32 (*fw_mem_dl)(_adapter *adapter, enum fw_mem mem);
|
|
|
|
#endif
|
2017-05-11 18:47:23 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
#if defined(CONFIG_WOWLAN) || defined(CONFIG_AP_WOWLAN) || defined(CONFIG_PCI_HCI)
|
2017-05-11 18:47:23 +00:00
|
|
|
void (*clear_interrupt)(_adapter *padapter);
|
2019-11-09 10:12:08 +00:00
|
|
|
#endif
|
|
|
|
u8(*hal_get_tx_buff_rsvd_page_num)(_adapter *adapter, bool wowlan);
|
2017-05-11 18:47:23 +00:00
|
|
|
#ifdef CONFIG_GPIO_API
|
|
|
|
void (*update_hisr_hsisr_ind)(PADAPTER padapter, u32 flag);
|
2019-11-09 10:12:08 +00:00
|
|
|
int (*hal_gpio_func_check)(_adapter *padapter, u8 gpio_num);
|
|
|
|
void (*hal_gpio_multi_func_reset)(_adapter *padapter, u8 gpio_num);
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
2019-11-09 10:12:08 +00:00
|
|
|
#ifdef CONFIG_FW_CORRECT_BCN
|
2017-05-11 18:47:23 +00:00
|
|
|
void (*fw_correct_bcn)(PADAPTER padapter);
|
2019-11-09 10:12:08 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef RTW_HALMAC
|
|
|
|
u8(*init_mac_register)(PADAPTER);
|
|
|
|
u8(*init_phy)(PADAPTER);
|
|
|
|
#endif /* RTW_HALMAC */
|
|
|
|
|
|
|
|
#ifdef CONFIG_PCI_HCI
|
|
|
|
void (*hal_set_l1ssbackdoor_handler)(_adapter *padapter, u8 enable);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_RFKILL_POLL
|
|
|
|
bool (*hal_radio_onoff_check)(_adapter *adapter, u8 *valid);
|
|
|
|
#endif
|
|
|
|
|
2015-08-18 19:03:09 +00:00
|
|
|
};
|
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
typedef enum _RT_EEPROM_TYPE {
|
2015-08-18 19:03:09 +00:00
|
|
|
EEPROM_93C46,
|
|
|
|
EEPROM_93C56,
|
|
|
|
EEPROM_BOOT_EFUSE,
|
2019-11-09 10:12:08 +00:00
|
|
|
} RT_EEPROM_TYPE, *PRT_EEPROM_TYPE;
|
2015-08-18 19:03:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define RF_CHANGE_BY_INIT 0
|
2019-11-09 10:12:08 +00:00
|
|
|
#define RF_CHANGE_BY_IPS BIT28
|
|
|
|
#define RF_CHANGE_BY_PS BIT29
|
|
|
|
#define RF_CHANGE_BY_HW BIT30
|
|
|
|
#define RF_CHANGE_BY_SW BIT31
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
typedef enum _HARDWARE_TYPE {
|
2015-08-18 19:03:09 +00:00
|
|
|
HARDWARE_TYPE_RTL8188EE,
|
|
|
|
HARDWARE_TYPE_RTL8188EU,
|
|
|
|
HARDWARE_TYPE_RTL8188ES,
|
2019-11-09 10:12:08 +00:00
|
|
|
/* NEW_GENERATION_IC */
|
2015-08-18 19:03:09 +00:00
|
|
|
HARDWARE_TYPE_RTL8192EE,
|
|
|
|
HARDWARE_TYPE_RTL8192EU,
|
|
|
|
HARDWARE_TYPE_RTL8192ES,
|
|
|
|
HARDWARE_TYPE_RTL8812E,
|
|
|
|
HARDWARE_TYPE_RTL8812AU,
|
|
|
|
HARDWARE_TYPE_RTL8811AU,
|
|
|
|
HARDWARE_TYPE_RTL8821E,
|
|
|
|
HARDWARE_TYPE_RTL8821U,
|
|
|
|
HARDWARE_TYPE_RTL8821S,
|
|
|
|
HARDWARE_TYPE_RTL8723BE,
|
|
|
|
HARDWARE_TYPE_RTL8723BU,
|
|
|
|
HARDWARE_TYPE_RTL8723BS,
|
2017-05-11 18:47:23 +00:00
|
|
|
HARDWARE_TYPE_RTL8814AE,
|
|
|
|
HARDWARE_TYPE_RTL8814AU,
|
|
|
|
HARDWARE_TYPE_RTL8814AS,
|
|
|
|
HARDWARE_TYPE_RTL8821BE,
|
|
|
|
HARDWARE_TYPE_RTL8821BU,
|
|
|
|
HARDWARE_TYPE_RTL8821BS,
|
|
|
|
HARDWARE_TYPE_RTL8822BE,
|
|
|
|
HARDWARE_TYPE_RTL8822BU,
|
|
|
|
HARDWARE_TYPE_RTL8822BS,
|
|
|
|
HARDWARE_TYPE_RTL8703BE,
|
|
|
|
HARDWARE_TYPE_RTL8703BU,
|
|
|
|
HARDWARE_TYPE_RTL8703BS,
|
|
|
|
HARDWARE_TYPE_RTL8188FE,
|
|
|
|
HARDWARE_TYPE_RTL8188FU,
|
|
|
|
HARDWARE_TYPE_RTL8188FS,
|
2019-11-09 10:12:08 +00:00
|
|
|
HARDWARE_TYPE_RTL8188GTVU,
|
|
|
|
HARDWARE_TYPE_RTL8188GTVS,
|
|
|
|
HARDWARE_TYPE_RTL8723DE,
|
|
|
|
HARDWARE_TYPE_RTL8723DU,
|
|
|
|
HARDWARE_TYPE_RTL8723DS,
|
|
|
|
HARDWARE_TYPE_RTL8821CE,
|
|
|
|
HARDWARE_TYPE_RTL8821CU,
|
|
|
|
HARDWARE_TYPE_RTL8821CS,
|
|
|
|
HARDWARE_TYPE_RTL8710BU,
|
|
|
|
HARDWARE_TYPE_RTL8192FS,
|
|
|
|
HARDWARE_TYPE_RTL8192FU,
|
|
|
|
HARDWARE_TYPE_RTL8192FE,
|
2015-08-18 19:03:09 +00:00
|
|
|
HARDWARE_TYPE_MAX,
|
2019-11-09 10:12:08 +00:00
|
|
|
} HARDWARE_TYPE;
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2017-05-11 18:47:23 +00:00
|
|
|
#define IS_NEW_GENERATION_IC(_Adapter) (rtw_get_hw_type(_Adapter) >= HARDWARE_TYPE_RTL8192EE)
|
2019-11-09 10:12:08 +00:00
|
|
|
/*
|
|
|
|
* RTL8188E Series
|
|
|
|
* */
|
2017-05-11 18:47:23 +00:00
|
|
|
#define IS_HARDWARE_TYPE_8188EE(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8188EE)
|
|
|
|
#define IS_HARDWARE_TYPE_8188EU(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8188EU)
|
|
|
|
#define IS_HARDWARE_TYPE_8188ES(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8188ES)
|
2015-08-18 19:03:09 +00:00
|
|
|
#define IS_HARDWARE_TYPE_8188E(_Adapter) \
|
2019-11-09 10:12:08 +00:00
|
|
|
(IS_HARDWARE_TYPE_8188EE(_Adapter) || IS_HARDWARE_TYPE_8188EU(_Adapter) || IS_HARDWARE_TYPE_8188ES(_Adapter))
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
/* RTL8812 Series */
|
2017-05-11 18:47:23 +00:00
|
|
|
#define IS_HARDWARE_TYPE_8812E(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8812E)
|
|
|
|
#define IS_HARDWARE_TYPE_8812AU(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8812AU)
|
2015-08-18 19:03:09 +00:00
|
|
|
#define IS_HARDWARE_TYPE_8812(_Adapter) \
|
2019-11-09 10:12:08 +00:00
|
|
|
(IS_HARDWARE_TYPE_8812E(_Adapter) || IS_HARDWARE_TYPE_8812AU(_Adapter))
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
/* RTL8821 Series */
|
2017-05-11 18:47:23 +00:00
|
|
|
#define IS_HARDWARE_TYPE_8821E(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8821E)
|
|
|
|
#define IS_HARDWARE_TYPE_8811AU(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8811AU)
|
2019-11-09 10:12:08 +00:00
|
|
|
#define IS_HARDWARE_TYPE_8821U(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8821U || \
|
|
|
|
rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8811AU)
|
2017-05-11 18:47:23 +00:00
|
|
|
#define IS_HARDWARE_TYPE_8821S(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8821S)
|
2015-08-18 19:03:09 +00:00
|
|
|
#define IS_HARDWARE_TYPE_8821(_Adapter) \
|
2019-11-09 10:12:08 +00:00
|
|
|
(IS_HARDWARE_TYPE_8821E(_Adapter) || IS_HARDWARE_TYPE_8821U(_Adapter) || IS_HARDWARE_TYPE_8821S(_Adapter))
|
2015-08-18 19:03:09 +00:00
|
|
|
|
|
|
|
#define IS_HARDWARE_TYPE_JAGUAR(_Adapter) \
|
2019-11-09 10:12:08 +00:00
|
|
|
(IS_HARDWARE_TYPE_8812(_Adapter) || IS_HARDWARE_TYPE_8821(_Adapter))
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
/* RTL8192E Series */
|
2017-05-11 18:47:23 +00:00
|
|
|
#define IS_HARDWARE_TYPE_8192EE(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8192EE)
|
|
|
|
#define IS_HARDWARE_TYPE_8192EU(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8192EU)
|
|
|
|
#define IS_HARDWARE_TYPE_8192ES(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8192ES)
|
2015-08-18 19:03:09 +00:00
|
|
|
|
|
|
|
#define IS_HARDWARE_TYPE_8192E(_Adapter) \
|
2019-11-09 10:12:08 +00:00
|
|
|
(IS_HARDWARE_TYPE_8192EE(_Adapter) || IS_HARDWARE_TYPE_8192EU(_Adapter) || IS_HARDWARE_TYPE_8192ES(_Adapter))
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2017-05-11 18:47:23 +00:00
|
|
|
#define IS_HARDWARE_TYPE_8723BE(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8723BE)
|
|
|
|
#define IS_HARDWARE_TYPE_8723BU(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8723BU)
|
|
|
|
#define IS_HARDWARE_TYPE_8723BS(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8723BS)
|
2015-08-18 19:03:09 +00:00
|
|
|
|
|
|
|
#define IS_HARDWARE_TYPE_8723B(_Adapter) \
|
2019-11-09 10:12:08 +00:00
|
|
|
(IS_HARDWARE_TYPE_8723BE(_Adapter) || IS_HARDWARE_TYPE_8723BU(_Adapter) || IS_HARDWARE_TYPE_8723BS(_Adapter))
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2017-05-11 18:47:23 +00:00
|
|
|
/* RTL8814A Series */
|
|
|
|
#define IS_HARDWARE_TYPE_8814AE(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8814AE)
|
|
|
|
#define IS_HARDWARE_TYPE_8814AU(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8814AU)
|
|
|
|
#define IS_HARDWARE_TYPE_8814AS(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8814AS)
|
|
|
|
|
|
|
|
#define IS_HARDWARE_TYPE_8814A(_Adapter) \
|
2019-11-09 10:12:08 +00:00
|
|
|
(IS_HARDWARE_TYPE_8814AE(_Adapter) || IS_HARDWARE_TYPE_8814AU(_Adapter) || IS_HARDWARE_TYPE_8814AS(_Adapter))
|
2017-05-11 18:47:23 +00:00
|
|
|
|
|
|
|
/* RTL8703B Series */
|
|
|
|
#define IS_HARDWARE_TYPE_8703BE(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8703BE)
|
|
|
|
#define IS_HARDWARE_TYPE_8703BS(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8703BS)
|
|
|
|
#define IS_HARDWARE_TYPE_8703BU(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8703BU)
|
|
|
|
#define IS_HARDWARE_TYPE_8703B(_Adapter) \
|
2019-11-09 10:12:08 +00:00
|
|
|
(IS_HARDWARE_TYPE_8703BE(_Adapter) || IS_HARDWARE_TYPE_8703BU(_Adapter) || IS_HARDWARE_TYPE_8703BS(_Adapter))
|
|
|
|
|
|
|
|
/* RTL8723D Series */
|
|
|
|
#define IS_HARDWARE_TYPE_8723DE(_Adapter)\
|
|
|
|
(rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8723DE)
|
|
|
|
#define IS_HARDWARE_TYPE_8723DS(_Adapter)\
|
|
|
|
(rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8723DS)
|
|
|
|
#define IS_HARDWARE_TYPE_8723DU(_Adapter)\
|
|
|
|
(rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8723DU)
|
|
|
|
#define IS_HARDWARE_TYPE_8723D(_Adapter)\
|
|
|
|
(IS_HARDWARE_TYPE_8723DE(_Adapter) || \
|
|
|
|
IS_HARDWARE_TYPE_8723DU(_Adapter) || \
|
|
|
|
IS_HARDWARE_TYPE_8723DS(_Adapter))
|
|
|
|
|
|
|
|
/* RTL8192F Series */
|
|
|
|
#define IS_HARDWARE_TYPE_8192FS(_Adapter)\
|
|
|
|
(rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8192FS)
|
|
|
|
#define IS_HARDWARE_TYPE_8192FU(_Adapter)\
|
|
|
|
(rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8192FU)
|
|
|
|
#define IS_HARDWARE_TYPE_8192FE(_Adapter)\
|
|
|
|
(rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8192FE)
|
|
|
|
#define IS_HARDWARE_TYPE_8192F(_Adapter)\
|
|
|
|
(IS_HARDWARE_TYPE_8192FS(_Adapter) ||\
|
|
|
|
IS_HARDWARE_TYPE_8192FU(_Adapter) ||\
|
|
|
|
IS_HARDWARE_TYPE_8192FE(_Adapter))
|
2017-05-11 18:47:23 +00:00
|
|
|
|
|
|
|
/* RTL8188F Series */
|
|
|
|
#define IS_HARDWARE_TYPE_8188FE(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8188FE)
|
|
|
|
#define IS_HARDWARE_TYPE_8188FS(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8188FS)
|
|
|
|
#define IS_HARDWARE_TYPE_8188FU(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8188FU)
|
|
|
|
#define IS_HARDWARE_TYPE_8188F(_Adapter) \
|
2019-11-09 10:12:08 +00:00
|
|
|
(IS_HARDWARE_TYPE_8188FE(_Adapter) || IS_HARDWARE_TYPE_8188FU(_Adapter) || IS_HARDWARE_TYPE_8188FS(_Adapter))
|
|
|
|
|
|
|
|
#define IS_HARDWARE_TYPE_8188GTVU(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8188GTVU)
|
|
|
|
#define IS_HARDWARE_TYPE_8188GTVS(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8188GTVS)
|
|
|
|
#define IS_HARDWARE_TYPE_8188GTV(_Adapter) \
|
|
|
|
(IS_HARDWARE_TYPE_8188GTVU(_Adapter) || IS_HARDWARE_TYPE_8188GTVS(_Adapter))
|
|
|
|
|
|
|
|
/* RTL8710B Series */
|
|
|
|
#define IS_HARDWARE_TYPE_8710BU(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8710BU)
|
|
|
|
#define IS_HARDWARE_TYPE_8710B(_Adapter) (IS_HARDWARE_TYPE_8710BU(_Adapter))
|
2017-05-11 18:47:23 +00:00
|
|
|
|
|
|
|
#define IS_HARDWARE_TYPE_8821BE(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8821BE)
|
|
|
|
#define IS_HARDWARE_TYPE_8821BU(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8821BU)
|
|
|
|
#define IS_HARDWARE_TYPE_8821BS(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8821BS)
|
|
|
|
|
|
|
|
#define IS_HARDWARE_TYPE_8821B(_Adapter) \
|
2019-11-09 10:12:08 +00:00
|
|
|
(IS_HARDWARE_TYPE_8821BE(_Adapter) || IS_HARDWARE_TYPE_8821BU(_Adapter) || IS_HARDWARE_TYPE_8821BS(_Adapter))
|
2017-05-11 18:47:23 +00:00
|
|
|
|
|
|
|
#define IS_HARDWARE_TYPE_8822BE(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8822BE)
|
|
|
|
#define IS_HARDWARE_TYPE_8822BU(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8822BU)
|
|
|
|
#define IS_HARDWARE_TYPE_8822BS(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8822BS)
|
|
|
|
#define IS_HARDWARE_TYPE_8822B(_Adapter) \
|
2019-11-09 10:12:08 +00:00
|
|
|
(IS_HARDWARE_TYPE_8822BE(_Adapter) || IS_HARDWARE_TYPE_8822BU(_Adapter) || IS_HARDWARE_TYPE_8822BS(_Adapter))
|
|
|
|
|
|
|
|
#define IS_HARDWARE_TYPE_8821CE(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8821CE)
|
|
|
|
#define IS_HARDWARE_TYPE_8821CU(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8821CU)
|
|
|
|
#define IS_HARDWARE_TYPE_8821CS(_Adapter) (rtw_get_hw_type(_Adapter) == HARDWARE_TYPE_RTL8821CS)
|
|
|
|
#define IS_HARDWARE_TYPE_8821C(_Adapter) \
|
|
|
|
(IS_HARDWARE_TYPE_8821CE(_Adapter) || IS_HARDWARE_TYPE_8821CU(_Adapter) || IS_HARDWARE_TYPE_8821CS(_Adapter))
|
|
|
|
|
|
|
|
#define IS_HARDWARE_TYPE_JAGUAR2(_Adapter) \
|
|
|
|
(IS_HARDWARE_TYPE_8814A(_Adapter) || IS_HARDWARE_TYPE_8821B(_Adapter) || IS_HARDWARE_TYPE_8822B(_Adapter) || IS_HARDWARE_TYPE_8821C(_Adapter))
|
|
|
|
|
|
|
|
#define IS_HARDWARE_TYPE_JAGUAR_AND_JAGUAR2(_Adapter) \
|
|
|
|
(IS_HARDWARE_TYPE_JAGUAR(_Adapter) || IS_HARDWARE_TYPE_JAGUAR2(_Adapter))
|
2017-05-11 18:47:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef enum _wowlan_subcode {
|
|
|
|
WOWLAN_ENABLE = 0,
|
|
|
|
WOWLAN_DISABLE = 1,
|
|
|
|
WOWLAN_AP_ENABLE = 2,
|
|
|
|
WOWLAN_AP_DISABLE = 3,
|
|
|
|
WOWLAN_PATTERN_CLEAN = 4
|
|
|
|
} wowlan_subcode;
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
struct wowlan_ioctl_param {
|
2015-08-18 19:03:09 +00:00
|
|
|
unsigned int subcode;
|
|
|
|
unsigned int subcode_value;
|
|
|
|
unsigned int wakeup_reason;
|
|
|
|
};
|
|
|
|
|
2017-05-11 18:47:23 +00:00
|
|
|
u8 rtw_hal_data_init(_adapter *padapter);
|
|
|
|
void rtw_hal_data_deinit(_adapter *padapter);
|
|
|
|
|
2015-08-18 19:03:09 +00:00
|
|
|
void rtw_hal_def_value_init(_adapter *padapter);
|
|
|
|
|
|
|
|
void rtw_hal_free_data(_adapter *padapter);
|
|
|
|
|
|
|
|
void rtw_hal_dm_init(_adapter *padapter);
|
|
|
|
void rtw_hal_dm_deinit(_adapter *padapter);
|
2019-11-09 10:12:08 +00:00
|
|
|
#ifdef CONFIG_RTW_SW_LED
|
2015-08-18 19:03:09 +00:00
|
|
|
void rtw_hal_sw_led_init(_adapter *padapter);
|
|
|
|
void rtw_hal_sw_led_deinit(_adapter *padapter);
|
2019-11-09 10:12:08 +00:00
|
|
|
#endif
|
2015-08-18 19:03:09 +00:00
|
|
|
u32 rtw_hal_power_on(_adapter *padapter);
|
|
|
|
void rtw_hal_power_off(_adapter *padapter);
|
2017-05-11 18:47:23 +00:00
|
|
|
|
2015-08-18 19:03:09 +00:00
|
|
|
uint rtw_hal_init(_adapter *padapter);
|
2019-11-09 10:12:08 +00:00
|
|
|
#ifdef CONFIG_NEW_NETDEV_HDL
|
|
|
|
uint rtw_hal_iface_init(_adapter *adapter);
|
|
|
|
#endif
|
2015-08-18 19:03:09 +00:00
|
|
|
uint rtw_hal_deinit(_adapter *padapter);
|
|
|
|
void rtw_hal_stop(_adapter *padapter);
|
2019-11-09 10:12:08 +00:00
|
|
|
u8 rtw_hal_set_hwreg(PADAPTER padapter, u8 variable, u8 *val);
|
2015-08-18 19:03:09 +00:00
|
|
|
void rtw_hal_get_hwreg(PADAPTER padapter, u8 variable, u8 *val);
|
|
|
|
|
|
|
|
void rtw_hal_chip_configure(_adapter *padapter);
|
2019-11-09 10:12:08 +00:00
|
|
|
u8 rtw_hal_read_chip_info(_adapter *padapter);
|
2015-08-18 19:03:09 +00:00
|
|
|
void rtw_hal_read_chip_version(_adapter *padapter);
|
|
|
|
|
|
|
|
u8 rtw_hal_set_def_var(_adapter *padapter, HAL_DEF_VARIABLE eVariable, PVOID pValue);
|
|
|
|
u8 rtw_hal_get_def_var(_adapter *padapter, HAL_DEF_VARIABLE eVariable, PVOID pValue);
|
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
void rtw_hal_set_odm_var(_adapter *padapter, HAL_ODM_VARIABLE eVariable, PVOID pValue1, BOOLEAN bSet);
|
|
|
|
void rtw_hal_get_odm_var(_adapter *padapter, HAL_ODM_VARIABLE eVariable, PVOID pValue1, PVOID pValue2);
|
2017-05-11 18:47:23 +00:00
|
|
|
|
2015-08-18 19:03:09 +00:00
|
|
|
void rtw_hal_enable_interrupt(_adapter *padapter);
|
|
|
|
void rtw_hal_disable_interrupt(_adapter *padapter);
|
|
|
|
|
|
|
|
u8 rtw_hal_check_ips_status(_adapter *padapter);
|
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
#if defined(CONFIG_USB_HCI) || defined(CONFIG_PCI_HCI)
|
|
|
|
u32 rtw_hal_inirp_init(_adapter *padapter);
|
|
|
|
u32 rtw_hal_inirp_deinit(_adapter *padapter);
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2017-05-11 18:47:23 +00:00
|
|
|
#if defined(CONFIG_PCI_HCI)
|
2019-11-09 10:12:08 +00:00
|
|
|
void rtw_hal_irp_reset(_adapter *padapter);
|
|
|
|
void rtw_hal_pci_dbi_write(_adapter *padapter, u16 addr, u8 data);
|
|
|
|
u8 rtw_hal_pci_dbi_read(_adapter *padapter, u16 addr);
|
|
|
|
void rtw_hal_pci_mdio_write(_adapter *padapter, u8 addr, u16 data);
|
|
|
|
u16 rtw_hal_pci_mdio_read(_adapter *padapter, u8 addr);
|
|
|
|
u8 rtw_hal_pci_l1off_nic_support(_adapter *padapter);
|
|
|
|
u8 rtw_hal_pci_l1off_capability(_adapter *padapter);
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
u8 rtw_hal_intf_ps_func(_adapter *padapter, HAL_INTF_PS_FUNC efunc_id, u8 *val);
|
2015-08-18 19:03:09 +00:00
|
|
|
|
|
|
|
s32 rtw_hal_xmitframe_enqueue(_adapter *padapter, struct xmit_frame *pxmitframe);
|
|
|
|
s32 rtw_hal_xmit(_adapter *padapter, struct xmit_frame *pxmitframe);
|
|
|
|
s32 rtw_hal_mgnt_xmit(_adapter *padapter, struct xmit_frame *pmgntframe);
|
|
|
|
|
|
|
|
s32 rtw_hal_init_xmit_priv(_adapter *padapter);
|
|
|
|
void rtw_hal_free_xmit_priv(_adapter *padapter);
|
|
|
|
|
|
|
|
s32 rtw_hal_init_recv_priv(_adapter *padapter);
|
|
|
|
void rtw_hal_free_recv_priv(_adapter *padapter);
|
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
void rtw_hal_update_ra_mask(struct sta_info *psta);
|
2015-08-18 19:03:09 +00:00
|
|
|
|
|
|
|
void rtw_hal_start_thread(_adapter *padapter);
|
|
|
|
void rtw_hal_stop_thread(_adapter *padapter);
|
|
|
|
|
|
|
|
void rtw_hal_bcn_related_reg_setting(_adapter *padapter);
|
|
|
|
|
|
|
|
u32 rtw_hal_read_bbreg(_adapter *padapter, u32 RegAddr, u32 BitMask);
|
|
|
|
void rtw_hal_write_bbreg(_adapter *padapter, u32 RegAddr, u32 BitMask, u32 Data);
|
2019-11-09 10:12:08 +00:00
|
|
|
u32 rtw_hal_read_rfreg(_adapter *padapter, enum rf_path eRFPath, u32 RegAddr, u32 BitMask);
|
|
|
|
void rtw_hal_write_rfreg(_adapter *padapter, enum rf_path eRFPath, u32 RegAddr, u32 BitMask, u32 Data);
|
|
|
|
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
#define phy_query_bb_reg(Adapter, RegAddr, BitMask) rtw_hal_read_bbreg((Adapter), (RegAddr), (BitMask))
|
|
|
|
#define phy_set_bb_reg(Adapter, RegAddr, BitMask, Data) rtw_hal_write_bbreg((Adapter), (RegAddr), (BitMask), (Data))
|
|
|
|
#define phy_query_rf_reg(Adapter, eRFPath, RegAddr, BitMask) rtw_hal_read_rfreg((Adapter), (eRFPath), (RegAddr), (BitMask))
|
|
|
|
#define phy_set_rf_reg(Adapter, eRFPath, RegAddr, BitMask, Data) rtw_hal_write_rfreg((Adapter), (eRFPath), (RegAddr), (BitMask), (Data))
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
#ifdef CONFIG_SYSON_INDIRECT_ACCESS
|
|
|
|
u32 rtw_hal_read_syson_reg(PADAPTER padapter, u32 RegAddr, u32 BitMask);
|
|
|
|
void rtw_hal_write_syson_reg(_adapter *padapter, u32 RegAddr, u32 BitMask, u32 Data);
|
|
|
|
#define hal_query_syson_reg(Adapter, RegAddr, BitMask) rtw_hal_read_syson_reg((Adapter), (RegAddr), (BitMask))
|
|
|
|
#define hal_set_syson_reg(Adapter, RegAddr, BitMask, Data) rtw_hal_write_syson_reg((Adapter), (RegAddr), (BitMask), (Data))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define phy_set_mac_reg phy_set_bb_reg
|
|
|
|
#define phy_query_mac_reg phy_query_bb_reg
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2017-05-11 18:47:23 +00:00
|
|
|
#if defined(CONFIG_PCI_HCI)
|
2019-11-09 10:12:08 +00:00
|
|
|
s32 rtw_hal_interrupt_handler(_adapter *padapter);
|
|
|
|
void rtw_hal_unmap_beacon_icf(_adapter *padapter);
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
|
|
|
#if defined(CONFIG_USB_HCI) && defined(CONFIG_SUPPORT_USB_INT)
|
2019-11-09 10:12:08 +00:00
|
|
|
void rtw_hal_interrupt_handler(_adapter *padapter, u16 pkt_len, u8 *pbuf);
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
void rtw_hal_set_chnl_bw(_adapter *padapter, u8 channel, enum channel_width Bandwidth, u8 Offset40, u8 Offset80);
|
2015-08-18 19:03:09 +00:00
|
|
|
void rtw_hal_dm_watchdog(_adapter *padapter);
|
|
|
|
void rtw_hal_dm_watchdog_in_lps(_adapter *padapter);
|
|
|
|
|
|
|
|
void rtw_hal_set_tx_power_level(_adapter *padapter, u8 channel);
|
|
|
|
void rtw_hal_get_tx_power_level(_adapter *padapter, s32 *powerlevel);
|
|
|
|
|
|
|
|
#ifdef CONFIG_HOSTAPD_MLME
|
2019-11-09 10:12:08 +00:00
|
|
|
s32 rtw_hal_hostap_mgnt_xmit_entry(_adapter *padapter, _pkt *pkt);
|
2015-08-18 19:03:09 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DBG_CONFIG_ERROR_DETECT
|
|
|
|
void rtw_hal_sreset_init(_adapter *padapter);
|
|
|
|
void rtw_hal_sreset_reset(_adapter *padapter);
|
|
|
|
void rtw_hal_sreset_reset_value(_adapter *padapter);
|
|
|
|
void rtw_hal_sreset_xmit_status_check(_adapter *padapter);
|
2019-11-09 10:12:08 +00:00
|
|
|
void rtw_hal_sreset_linked_status_check(_adapter *padapter);
|
2015-08-18 19:03:09 +00:00
|
|
|
u8 rtw_hal_sreset_get_wifi_status(_adapter *padapter);
|
|
|
|
bool rtw_hal_sreset_inprogress(_adapter *padapter);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_IOL
|
|
|
|
int rtw_hal_iol_cmd(ADAPTER *adapter, struct xmit_frame *xmit_frame, u32 max_wating_ms, u32 bndy_cnt);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_XMIT_THREAD_MODE
|
|
|
|
s32 rtw_hal_xmit_thread_handler(_adapter *padapter);
|
|
|
|
#endif
|
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
#ifdef CONFIG_RECV_THREAD_MODE
|
|
|
|
s32 rtw_hal_recv_hdl(_adapter *adapter);
|
|
|
|
#endif
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
void rtw_hal_notch_filter(_adapter *adapter, bool enable);
|
|
|
|
|
|
|
|
#ifdef CONFIG_FW_C2H_REG
|
|
|
|
bool rtw_hal_c2h_reg_hdr_parse(_adapter *adapter, u8 *buf, u8 *id, u8 *seq, u8 *plen, u8 **payload);
|
2015-08-18 19:03:09 +00:00
|
|
|
bool rtw_hal_c2h_valid(_adapter *adapter, u8 *buf);
|
|
|
|
s32 rtw_hal_c2h_evt_read(_adapter *adapter, u8 *buf);
|
2019-11-09 10:12:08 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_FW_C2H_PKT
|
|
|
|
bool rtw_hal_c2h_pkt_hdr_parse(_adapter *adapter, u8 *buf, u16 len, u8 *id, u8 *seq, u8 *plen, u8 **payload);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
s32 c2h_handler(_adapter *adapter, u8 id, u8 seq, u8 plen, u8 *payload);
|
|
|
|
#ifndef RTW_HALMAC
|
|
|
|
s32 rtw_hal_c2h_handler(_adapter *adapter, u8 id, u8 seq, u8 plen, u8 *payload);
|
|
|
|
s32 rtw_hal_c2h_id_handle_directly(_adapter *adapter, u8 id, u8 seq, u8 plen, u8 *payload);
|
|
|
|
#endif
|
2015-08-18 19:03:09 +00:00
|
|
|
|
|
|
|
s32 rtw_hal_is_disable_sw_channel_plan(PADAPTER padapter);
|
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
s32 rtw_hal_macid_sleep(_adapter *adapter, u8 macid);
|
|
|
|
s32 rtw_hal_macid_wakeup(_adapter *adapter, u8 macid);
|
|
|
|
s32 rtw_hal_macid_sleep_all_used(_adapter *adapter);
|
|
|
|
s32 rtw_hal_macid_wakeup_all_used(_adapter *adapter);
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2017-05-11 18:47:23 +00:00
|
|
|
s32 rtw_hal_fill_h2c_cmd(PADAPTER padapter, u8 ElementID, u32 CmdLen, u8 *pCmdBuffer);
|
|
|
|
void rtw_hal_fill_fake_txdesc(_adapter *padapter, u8 *pDesc, u32 BufferLen,
|
2019-11-09 10:12:08 +00:00
|
|
|
u8 IsPsPoll, u8 IsBTQosNull, u8 bDataFrame);
|
2017-05-11 18:47:23 +00:00
|
|
|
u8 rtw_hal_get_txbuff_rsvd_page_num(_adapter *adapter, bool wowlan);
|
|
|
|
|
|
|
|
#ifdef CONFIG_GPIO_API
|
|
|
|
void rtw_hal_update_hisr_hsisr_ind(_adapter *padapter, u32 flag);
|
2019-11-09 10:12:08 +00:00
|
|
|
int rtw_hal_gpio_func_check(_adapter *padapter, u8 gpio_num);
|
|
|
|
void rtw_hal_gpio_multi_func_reset(_adapter *padapter, u8 gpio_num);
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
2019-11-09 10:12:08 +00:00
|
|
|
#ifdef CONFIG_FW_CORRECT_BCN
|
2017-05-11 18:47:23 +00:00
|
|
|
void rtw_hal_fw_correct_bcn(_adapter *padapter);
|
2019-11-09 10:12:08 +00:00
|
|
|
#endif
|
2017-05-11 18:47:23 +00:00
|
|
|
s32 rtw_hal_fw_dl(_adapter *padapter, u8 wowlan);
|
|
|
|
|
|
|
|
#if defined(CONFIG_WOWLAN) || defined(CONFIG_AP_WOWLAN)
|
2019-11-09 10:12:08 +00:00
|
|
|
void rtw_hal_clear_interrupt(_adapter *padapter);
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
2019-11-09 10:12:08 +00:00
|
|
|
|
|
|
|
void rtw_hal_set_tx_power_index(PADAPTER adapter, u32 powerindex, enum rf_path rfpath, u8 rate);
|
|
|
|
u8 rtw_hal_get_tx_power_index(PADAPTER adapter, enum rf_path
|
|
|
|
rfpath, u8 rate, u8 bandwidth, u8 channel, struct txpwr_idx_comp *tic);
|
|
|
|
|
2017-05-11 18:47:23 +00:00
|
|
|
u8 rtw_hal_ops_check(_adapter *padapter);
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
#ifdef RTW_HALMAC
|
|
|
|
u8 rtw_hal_init_mac_register(PADAPTER);
|
|
|
|
u8 rtw_hal_init_phy(PADAPTER);
|
|
|
|
s32 rtw_hal_fw_mem_dl(_adapter *padapter, enum fw_mem mem);
|
|
|
|
#endif /* RTW_HALMAC */
|
|
|
|
|
|
|
|
#ifdef CONFIG_RFKILL_POLL
|
|
|
|
bool rtw_hal_rfkill_poll(_adapter *adapter, u8 *valid);
|
|
|
|
#endif
|
2015-08-18 19:03:09 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
#endif /* __HAL_INTF_H__ */
|