40 lines · c
1/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */2/* Copyright(c) 2018-2019 Realtek Corporation3 */4 5#ifndef __RTW8723D_H__6#define __RTW8723D_H__7 8#include "rtw8723x.h"9 10extern const struct rtw_chip_info rtw8723d_hw_spec;11 12/* phy status page0 */13#define GET_PHY_STAT_P0_PWDB(phy_stat) \14 le32_get_bits(*((__le32 *)(phy_stat) + 0x00), GENMASK(15, 8))15 16/* phy status page1 */17#define GET_PHY_STAT_P1_PWDB_A(phy_stat) \18 le32_get_bits(*((__le32 *)(phy_stat) + 0x00), GENMASK(15, 8))19#define GET_PHY_STAT_P1_PWDB_B(phy_stat) \20 le32_get_bits(*((__le32 *)(phy_stat) + 0x00), GENMASK(23, 16))21#define GET_PHY_STAT_P1_RF_MODE(phy_stat) \22 le32_get_bits(*((__le32 *)(phy_stat) + 0x03), GENMASK(29, 28))23#define GET_PHY_STAT_P1_L_RXSC(phy_stat) \24 le32_get_bits(*((__le32 *)(phy_stat) + 0x01), GENMASK(11, 8))25#define GET_PHY_STAT_P1_HT_RXSC(phy_stat) \26 le32_get_bits(*((__le32 *)(phy_stat) + 0x01), GENMASK(15, 12))27#define GET_PHY_STAT_P1_RXEVM_A(phy_stat) \28 le32_get_bits(*((__le32 *)(phy_stat) + 0x04), GENMASK(7, 0))29#define GET_PHY_STAT_P1_CFO_TAIL_A(phy_stat) \30 le32_get_bits(*((__le32 *)(phy_stat) + 0x05), GENMASK(7, 0))31#define GET_PHY_STAT_P1_RXSNR_A(phy_stat) \32 le32_get_bits(*((__le32 *)(phy_stat) + 0x06), GENMASK(7, 0))33 34#define RTW_DEF_OFDM_SWING_INDEX 2835#define RTW_DEF_CCK_SWING_INDEX 2836 37#define CCK_DFIR_NR 338 39#endif40