162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 262306a36Sopenharmony_ci/* Copyright(c) 2022-2023 Realtek Corporation 362306a36Sopenharmony_ci */ 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#ifndef __RTW89_8851B_H__ 662306a36Sopenharmony_ci#define __RTW89_8851B_H__ 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci#include "core.h" 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#define RF_PATH_NUM_8851B 1 1162306a36Sopenharmony_ci#define BB_PATH_NUM_8851B 1 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_cistruct rtw8851bu_efuse { 1462306a36Sopenharmony_ci u8 rsvd[0x88]; 1562306a36Sopenharmony_ci u8 mac_addr[ETH_ALEN]; 1662306a36Sopenharmony_ci}; 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_cistruct rtw8851be_efuse { 1962306a36Sopenharmony_ci u8 mac_addr[ETH_ALEN]; 2062306a36Sopenharmony_ci}; 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_cistruct rtw8851b_tssi_offset { 2362306a36Sopenharmony_ci u8 cck_tssi[TSSI_CCK_CH_GROUP_NUM]; 2462306a36Sopenharmony_ci u8 bw40_tssi[TSSI_MCS_2G_CH_GROUP_NUM]; 2562306a36Sopenharmony_ci u8 rsvd[7]; 2662306a36Sopenharmony_ci u8 bw40_1s_tssi_5g[TSSI_MCS_5G_CH_GROUP_NUM]; 2762306a36Sopenharmony_ci} __packed; 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_cistruct rtw8851b_efuse { 3062306a36Sopenharmony_ci u8 rsvd[0x210]; 3162306a36Sopenharmony_ci struct rtw8851b_tssi_offset path_a_tssi; 3262306a36Sopenharmony_ci u8 rsvd1[136]; 3362306a36Sopenharmony_ci u8 channel_plan; 3462306a36Sopenharmony_ci u8 xtal_k; 3562306a36Sopenharmony_ci u8 rsvd2; 3662306a36Sopenharmony_ci u8 iqk_lck; 3762306a36Sopenharmony_ci u8 rsvd3[8]; 3862306a36Sopenharmony_ci u8 eeprom_version; 3962306a36Sopenharmony_ci u8 customer_id; 4062306a36Sopenharmony_ci u8 tx_bb_swing_2g; 4162306a36Sopenharmony_ci u8 tx_bb_swing_5g; 4262306a36Sopenharmony_ci u8 tx_cali_pwr_trk_mode; 4362306a36Sopenharmony_ci u8 trx_path_selection; 4462306a36Sopenharmony_ci u8 rfe_type; 4562306a36Sopenharmony_ci u8 country_code[2]; 4662306a36Sopenharmony_ci u8 rsvd4[3]; 4762306a36Sopenharmony_ci u8 path_a_therm; 4862306a36Sopenharmony_ci u8 rsvd5[3]; 4962306a36Sopenharmony_ci u8 rx_gain_2g_ofdm; 5062306a36Sopenharmony_ci u8 rsvd6; 5162306a36Sopenharmony_ci u8 rx_gain_2g_cck; 5262306a36Sopenharmony_ci u8 rsvd7; 5362306a36Sopenharmony_ci u8 rx_gain_5g_low; 5462306a36Sopenharmony_ci u8 rsvd8; 5562306a36Sopenharmony_ci u8 rx_gain_5g_mid; 5662306a36Sopenharmony_ci u8 rsvd9; 5762306a36Sopenharmony_ci u8 rx_gain_5g_high; 5862306a36Sopenharmony_ci u8 rsvd10[35]; 5962306a36Sopenharmony_ci u8 path_a_cck_pwr_idx[6]; 6062306a36Sopenharmony_ci u8 path_a_bw40_1tx_pwr_idx[5]; 6162306a36Sopenharmony_ci u8 path_a_ofdm_1tx_pwr_idx_diff:4; 6262306a36Sopenharmony_ci u8 path_a_bw20_1tx_pwr_idx_diff:4; 6362306a36Sopenharmony_ci u8 path_a_bw20_2tx_pwr_idx_diff:4; 6462306a36Sopenharmony_ci u8 path_a_bw40_2tx_pwr_idx_diff:4; 6562306a36Sopenharmony_ci u8 path_a_cck_2tx_pwr_idx_diff:4; 6662306a36Sopenharmony_ci u8 path_a_ofdm_2tx_pwr_idx_diff:4; 6762306a36Sopenharmony_ci u8 rsvd11[0xf2]; 6862306a36Sopenharmony_ci union { 6962306a36Sopenharmony_ci struct rtw8851bu_efuse u; 7062306a36Sopenharmony_ci struct rtw8851be_efuse e; 7162306a36Sopenharmony_ci }; 7262306a36Sopenharmony_ci} __packed; 7362306a36Sopenharmony_ci 7462306a36Sopenharmony_ciextern const struct rtw89_chip_info rtw8851b_chip_info; 7562306a36Sopenharmony_ci 7662306a36Sopenharmony_ci#endif 77