1
2
3
4
5
6
7#ifndef __HAL_PHY_H__
8#define __HAL_PHY_H__
9
10
11
12
13#define ANT_DETECT_BY_SINGLE_TONE BIT0
14#define ANT_DETECT_BY_RSSI BIT1
15#define IS_ANT_DETECT_SUPPORT_SINGLE_TONE(__Adapter) ((GET_HAL_DATA(__Adapter)->AntDetection) & ANT_DETECT_BY_SINGLE_TONE)
16#define IS_ANT_DETECT_SUPPORT_RSSI(__Adapter) ((GET_HAL_DATA(__Adapter)->AntDetection) & ANT_DETECT_BY_RSSI)
17
18
19
20enum {
21 RF_TYPE_MIN = 0,
22 RF_8225 = 1,
23 RF_8256 = 2,
24 RF_8258 = 3,
25 RF_6052 = 4,
26 RF_PSEUDO_11N = 5,
27 RF_TYPE_MAX
28};
29
30enum rf_path {
31 RF_PATH_A = 0,
32 RF_PATH_B,
33 RF_PATH_MAX
34};
35
36#define TX_1S 0
37#define TX_2S 1
38#define TX_3S 2
39#define TX_4S 3
40
41#define RF_PATH_MAX_92C_88E 2
42#define RF_PATH_MAX_90_8812 4
43
44enum wireless_mode {
45 WIRELESS_MODE_UNKNOWN = 0x00,
46 WIRELESS_MODE_B = 0x02,
47 WIRELESS_MODE_G = 0x04,
48 WIRELESS_MODE_AUTO = 0x08,
49 WIRELESS_MODE_N_24G = 0x10,
50 WIRELESS_MODE_AC_24G = 0x80,
51 WIRELESS_MODE_AC_ONLY = 0x100,
52};
53
54enum SwChnlCmdID {
55 CmdID_End,
56 CmdID_SetTxPowerLevel,
57 CmdID_BBRegWrite10,
58 CmdID_WritePortUlong,
59 CmdID_WritePortUshort,
60 CmdID_WritePortUchar,
61 CmdID_RF_WriteReg,
62};
63
64struct SwChnlCmd {
65 enum SwChnlCmdID CmdID;
66 u32 Para1;
67 u32 Para2;
68 u32 msDelay;
69};
70
71
72
73#endif
74