mac.h (48ee4835b73c48590d05a54730dc8037ebd39d3b) mac.h (861e58c8fc6be0e1319525b5e9a27a0d2e776210)
1/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2/* Copyright(c) 2019-2020 Realtek Corporation
3 */
4
5#ifndef __RTW89_MAC_H__
6#define __RTW89_MAC_H__
7
8#include "core.h"

--- 656 unchanged lines hidden (view full) ---

665 MAC_AX_ERR_L1_RCVY_START_REQ = 0x0004,
666 MAC_AX_ERR_L0_CFG_NOTIFY = 0x0010,
667 MAC_AX_ERR_L0_CFG_DIS_NOTIFY = 0x0011,
668 MAC_AX_ERR_L0_CFG_HANDSHAKE = 0x0012,
669 MAC_AX_ERR_L0_RCVY_EN = 0x0013,
670 MAC_AX_SET_ERR_MAX,
671};
672
1/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2/* Copyright(c) 2019-2020 Realtek Corporation
3 */
4
5#ifndef __RTW89_MAC_H__
6#define __RTW89_MAC_H__
7
8#include "core.h"

--- 656 unchanged lines hidden (view full) ---

665 MAC_AX_ERR_L1_RCVY_START_REQ = 0x0004,
666 MAC_AX_ERR_L0_CFG_NOTIFY = 0x0010,
667 MAC_AX_ERR_L0_CFG_DIS_NOTIFY = 0x0011,
668 MAC_AX_ERR_L0_CFG_HANDSHAKE = 0x0012,
669 MAC_AX_ERR_L0_RCVY_EN = 0x0013,
670 MAC_AX_SET_ERR_MAX,
671};
672
673extern const struct rtw89_hfc_prec_cfg rtw_hfc_preccfg_pcie;
674extern const struct rtw89_dle_size wde_size0;
675extern const struct rtw89_dle_size wde_size4;
676extern const struct rtw89_dle_size ple_size0;
677extern const struct rtw89_dle_size ple_size4;
678extern const struct rtw89_wde_quota wde_qt0;
679extern const struct rtw89_wde_quota wde_qt4;
680extern const struct rtw89_ple_quota ple_qt4;
681extern const struct rtw89_ple_quota ple_qt5;
682extern const struct rtw89_ple_quota ple_qt13;
673extern const struct rtw89_hfc_prec_cfg rtw89_hfc_preccfg_pcie;
674extern const struct rtw89_dle_size rtw89_wde_size0;
675extern const struct rtw89_dle_size rtw89_wde_size4;
676extern const struct rtw89_dle_size rtw89_ple_size0;
677extern const struct rtw89_dle_size rtw89_ple_size4;
678extern const struct rtw89_wde_quota rtw89_wde_qt0;
679extern const struct rtw89_wde_quota rtw89_wde_qt4;
680extern const struct rtw89_ple_quota rtw89_ple_qt4;
681extern const struct rtw89_ple_quota rtw89_ple_qt5;
682extern const struct rtw89_ple_quota rtw89_ple_qt13;
683
684static inline u32 rtw89_mac_reg_by_idx(u32 reg_base, u8 band)
685{
686 return band == 0 ? reg_base : (reg_base + 0x2000);
687}
688
689static inline u32 rtw89_mac_reg_by_port(u32 base, u8 port, u8 mac_idx)
690{

--- 181 unchanged lines hidden ---
683
684static inline u32 rtw89_mac_reg_by_idx(u32 reg_base, u8 band)
685{
686 return band == 0 ? reg_base : (reg_base + 0x2000);
687}
688
689static inline u32 rtw89_mac_reg_by_port(u32 base, u8 port, u8 mac_idx)
690{

--- 181 unchanged lines hidden ---