1
2
3
4
5
6
7 #ifndef __ODM_TYPES_H__
8 #define __ODM_TYPES_H__
9
10 #include <drv_types.h>
11
12
13 #define ODM_ENDIAN_BIG 0
14 #define ODM_ENDIAN_LITTLE 1
15
16 #define GET_ODM(__padapter) ((PDM_ODM_T)(&((GET_HAL_DATA(__padapter))->odmpriv)))
17
18 typedef enum _HAL_STATUS {
19 HAL_STATUS_SUCCESS,
20 HAL_STATUS_FAILURE,
21
22
23
24
25
26
27 } HAL_STATUS, *PHAL_STATUS;
28
29
30
31
32
33 typedef enum _RT_SPINLOCK_TYPE {
34 RT_TX_SPINLOCK = 1,
35 RT_RX_SPINLOCK = 2,
36 RT_RM_SPINLOCK = 3,
37 RT_CAM_SPINLOCK = 4,
38 RT_SCAN_SPINLOCK = 5,
39 RT_LOG_SPINLOCK = 7,
40 RT_BW_SPINLOCK = 8,
41 RT_CHNLOP_SPINLOCK = 9,
42 RT_RF_OPERATE_SPINLOCK = 10,
43 RT_INITIAL_SPINLOCK = 11,
44 RT_RF_STATE_SPINLOCK = 12,
45
46 RT_PORT_SPINLOCK = 16,
47 RT_H2C_SPINLOCK = 20,
48
49 RT_BTData_SPINLOCK = 25,
50
51 RT_WAPI_OPTION_SPINLOCK = 26,
52 RT_WAPI_RX_SPINLOCK = 27,
53
54
55 RT_CCK_PAGEA_SPINLOCK = 28,
56 RT_BUFFER_SPINLOCK = 29,
57 RT_CHANNEL_AND_BANDWIDTH_SPINLOCK = 30,
58 RT_GEN_TEMP_BUF_SPINLOCK = 31,
59 RT_AWB_SPINLOCK = 32,
60 RT_FW_PS_SPINLOCK = 33,
61 RT_HW_TIMER_SPIN_LOCK = 34,
62 RT_MPT_WI_SPINLOCK = 35,
63 RT_P2P_SPIN_LOCK = 36,
64 RT_DBG_SPIN_LOCK = 37,
65 RT_IQK_SPINLOCK = 38,
66 RT_PENDED_OID_SPINLOCK = 39,
67 RT_CHNLLIST_SPINLOCK = 40,
68 RT_INDIC_SPINLOCK = 41,
69 } RT_SPINLOCK_TYPE;
70
71 #if defined(__LITTLE_ENDIAN)
72 #define ODM_ENDIAN_TYPE ODM_ENDIAN_LITTLE
73 #else
74 #define ODM_ENDIAN_TYPE ODM_ENDIAN_BIG
75 #endif
76
77 typedef struct timer_list RT_TIMER, *PRT_TIMER;
78 typedef void *RT_TIMER_CALL_BACK;
79 #define STA_INFO_T struct sta_info
80 #define PSTA_INFO_T struct sta_info *
81
82 #define SET_TX_DESC_ANTSEL_A_88E(__pTxDesc, __Value) SET_BITS_TO_LE_4BYTE(__pTxDesc+8, 24, 1, __Value)
83 #define SET_TX_DESC_ANTSEL_B_88E(__pTxDesc, __Value) SET_BITS_TO_LE_4BYTE(__pTxDesc+8, 25, 1, __Value)
84 #define SET_TX_DESC_ANTSEL_C_88E(__pTxDesc, __Value) SET_BITS_TO_LE_4BYTE(__pTxDesc+28, 29, 1, __Value)
85
86
87 #define USE_WORKITEM 0
88 #define FPGA_TWO_MAC_VERIFICATION 0
89
90 #define READ_NEXT_PAIR(v1, v2, i) do { if (i+2 >= ArrayLen) break; i += 2; v1 = Array[i]; v2 = Array[i+1]; } while (0)
91 #define COND_ELSE 2
92 #define COND_ENDIF 3
93
94 #endif