OSDN Git Service

rtl8723au: Replace u4Byte with u32
[android-x86/external-modules-rtl8723au.git] / include / odm_types.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
17  *
18  *
19  ******************************************************************************/
20 #ifndef __ODM_TYPES_H__
21 #define __ODM_TYPES_H__
22
23 //
24 // Define Different SW team support
25 //
26 #define ODM_AP                  0x01     //BIT0
27 #define ODM_ADSL                0x02    //BIT1
28 #define ODM_CE                  0x04    //BIT2
29 #define ODM_MP                  0x08    //BIT3
30
31 #define DM_ODM_SUPPORT_TYPE                     ODM_CE
32
33 #define         RT_PCI_INTERFACE                                1
34 #define         RT_USB_INTERFACE                                2
35 #define         RT_SDIO_INTERFACE                               3
36
37 typedef enum _HAL_STATUS{
38         HAL_STATUS_SUCCESS,
39         HAL_STATUS_FAILURE,
40         /*RT_STATUS_PENDING,
41         RT_STATUS_RESOURCE,
42         RT_STATUS_INVALID_CONTEXT,
43         RT_STATUS_INVALID_PARAMETER,
44         RT_STATUS_NOT_SUPPORT,
45         RT_STATUS_OS_API_FAILED,*/
46 }HAL_STATUS,*PHAL_STATUS;
47
48 typedef enum _RT_SPINLOCK_TYPE{
49         RT_TEMP =1,
50 }RT_SPINLOCK_TYPE;
51
52
53         #include <basic_types.h>
54
55         #define u8Byte          u64
56         #define pu8Byte                 u64*
57
58         #define s1Byte          s8
59         #define ps1Byte                 s8*
60
61         #define s2Byte          s16
62         #define ps2Byte                 s16*
63
64         #define s4Byte          s32
65         #define ps4Byte                 s32*
66
67         #define s8Byte          s64
68         #define ps8Byte                 s64*
69
70         #define DEV_BUS_TYPE    RT_USB_INTERFACE
71
72         typedef struct timer_list               RT_TIMER, *PRT_TIMER;
73         typedef  void *                         RT_TIMER_CALL_BACK;
74         #define STA_INFO_T                      struct sta_info
75         #define PSTA_INFO_T             struct sta_info *
76
77
78
79         #define TRUE    _TRUE
80         #define FALSE   _FALSE
81
82
83         #define SET_TX_DESC_ANTSEL_A_88E(__pTxDesc, __Value) SET_BITS_TO_LE_4BYTE(__pTxDesc+8, 24, 1, __Value)
84         #define SET_TX_DESC_ANTSEL_B_88E(__pTxDesc, __Value) SET_BITS_TO_LE_4BYTE(__pTxDesc+8, 25, 1, __Value)
85         #define SET_TX_DESC_ANTSEL_C_88E(__pTxDesc, __Value) SET_BITS_TO_LE_4BYTE(__pTxDesc+28, 29, 1, __Value)
86
87         //define useless flag to avoid compile warning
88         #define USE_WORKITEM                    0
89         #define         FOR_BRAZIL_PRETEST      0
90         #define BT_30_SUPPORT                   0
91         #define   FPGA_TWO_MAC_VERIFICATION     0
92
93 #endif // __ODM_TYPES_H__