]> git.karo-electronics.de Git - karo-tx-linux.git/blob - drivers/staging/rtl8188eu/include/odm_types.h
Merge tag 'upstream-3.12-rc1' of git://git.infradead.org/linux-ubi
[karo-tx-linux.git] / drivers / staging / rtl8188eu / 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         RT_PCI_INTERFACE                                1
32 #define         RT_USB_INTERFACE                                2
33 #define         RT_SDIO_INTERFACE                               3
34
35 enum HAL_STATUS {
36         HAL_STATUS_SUCCESS,
37         HAL_STATUS_FAILURE,
38 };
39
40 enum RT_SPINLOCK_TYPE {
41         RT_TEMP = 1,
42 };
43
44 #include <basic_types.h>
45
46 #define DEV_BUS_TYPE    RT_USB_INTERFACE
47
48 #define SET_TX_DESC_ANTSEL_A_88E(__pTxDesc, __Value)                    \
49         SET_BITS_TO_LE_4BYTE(__pTxDesc+8, 24, 1, __Value)
50 #define SET_TX_DESC_ANTSEL_B_88E(__pTxDesc, __Value)                    \
51         SET_BITS_TO_LE_4BYTE(__pTxDesc+8, 25, 1, __Value)
52 #define SET_TX_DESC_ANTSEL_C_88E(__pTxDesc, __Value)                    \
53         SET_BITS_TO_LE_4BYTE(__pTxDesc+28, 29, 1, __Value)
54
55 /* define useless flag to avoid compile warning */
56 #define USE_WORKITEM                    0
57 #define         FOR_BRAZIL_PRETEST      0
58 #define BT_30_SUPPORT                   0
59 #define   FPGA_TWO_MAC_VERIFICATION     0
60
61
62 #endif /*  __ODM_TYPES_H__ */