1 // SPDX-License-Identifier: ISC 2 /* Copyright (C) 2020 MediaTek Inc. */ 3 4 #ifndef __MT7915_TESTMODE_H 5 #define __MT7915_TESTMODE_H 6 7 struct mt7915_tm_trx { 8 u8 type; 9 u8 enable; 10 u8 band; 11 u8 rsv; 12 }; 13 14 struct mt7915_tm_freq_offset { 15 u8 band; 16 __le32 freq_offset; 17 }; 18 19 struct mt7915_tm_cmd { 20 u8 testmode_en; 21 u8 param_idx; 22 u8 _rsv[2]; 23 union { 24 __le32 data; 25 struct mt7915_tm_trx trx; 26 struct mt7915_tm_freq_offset freq; 27 u8 test[72]; 28 } param; 29 } __packed; 30 31 enum { 32 TM_MAC_TX = 1, 33 TM_MAC_RX, 34 TM_MAC_TXRX, 35 TM_MAC_TXRX_RXV, 36 TM_MAC_RXV, 37 TM_MAC_RX_RXV, 38 }; 39 40 #endif 41