Path: blob/master/drivers/net/wireless/realtek/rtw88/rtw8814a.h
25924 views
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */1/* Copyright(c) 2025 Realtek Corporation2*/34#ifndef __RTW8814A_H__5#define __RTW8814A_H__67struct rtw8814au_efuse {8u8 vid[2]; /* 0xd0 */9u8 pid[2]; /* 0xd2 */10u8 res[4]; /* 0xd4 */11u8 mac_addr[ETH_ALEN]; /* 0xd8 */12} __packed;1314struct rtw8814ae_efuse {15u8 mac_addr[ETH_ALEN]; /* 0xd0 */16u8 vid[2]; /* 0xd6 */17u8 did[2]; /* 0xd8 */18u8 svid[2]; /* 0xda */19u8 smid[2]; /* 0xdc */20} __packed;2122struct rtw8814a_efuse {23__le16 rtl_id;24u8 res0[0x0c];25u8 usb_mode; /* 0x0e */26u8 res1;2728/* power index for four RF paths */29struct rtw_txpwr_idx txpwr_idx_table[4];3031u8 channel_plan; /* 0xb8 */32u8 xtal_k; /* 0xb9 */33u8 thermal_meter; /* 0xba */34u8 iqk_lck; /* 0xbb */35u8 pa_type; /* 0xbc */36u8 lna_type_2g[2]; /* 0xbd */37u8 lna_type_5g[2]; /* 0xbf */38u8 rf_board_option; /* 0xc1 */39u8 res2;40u8 rf_bt_setting; /* 0xc3 */41u8 eeprom_version; /* 0xc4 */42u8 eeprom_customer_id; /* 0xc5 */43u8 tx_bb_swing_setting_2g; /* 0xc6 */44u8 tx_bb_swing_setting_5g; /* 0xc7 */45u8 res3;46u8 trx_antenna_option; /* 0xc9 */47u8 rfe_option; /* 0xca */48u8 country_code[2]; /* 0xcb */49u8 res4[3];50union {51struct rtw8814au_efuse u;52struct rtw8814ae_efuse e;53};54u8 res5[0x122]; /* 0xde */55} __packed;5657static_assert(sizeof(struct rtw8814a_efuse) == 512);5859extern const struct rtw_chip_info rtw8814a_hw_spec;6061#endif626364