WIP FPC-III support
[linux/fpc-iii.git] / drivers / net / wireless / mediatek / mt76 / mt7915 / testmode.h
blob964f2d7fde3a861cd3709883d2fd3d0f1a115c3c
1 // SPDX-License-Identifier: ISC
2 /* Copyright (C) 2020 MediaTek Inc. */
4 #ifndef __MT7915_TESTMODE_H
5 #define __MT7915_TESTMODE_H
7 struct mt7915_tm_trx {
8 u8 type;
9 u8 enable;
10 u8 band;
11 u8 rsv;
14 struct mt7915_tm_freq_offset {
15 u8 band;
16 __le32 freq_offset;
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;
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,
40 #endif