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  * The full GNU General Public License is included in this distribution in the
15  * file called LICENSE.
16  *
17  * Contact Information:
18  * wlanfae <wlanfae@realtek.com>
19  * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
20  * Hsinchu 300, Taiwan.
21  * Larry Finger <Larry.Finger@lwfinger.net>
22  *
23  ******************************************************************************/
24 
25 #ifndef	__HALBT_PRECOMP_H__
26 #define __HALBT_PRECOMP_H__
27 /*************************************************************
28  * include files
29  *************************************************************/
30 #include "../wifi.h"
31 #include "../efuse.h"
32 #include "../base.h"
33 #include "../regd.h"
34 #include "../cam.h"
35 #include "../ps.h"
36 #include "../pci.h"
37 
38 #include "halbtcoutsrc.h"
39 
40 /* Interface type */
41 #define RT_PCI_INTERFACE	1
42 #define RT_USB_INTERFACE	2
43 #define RT_SDIO_INTERFACE	3
44 #define DEV_BUS_TYPE		RT_PCI_INTERFACE
45 
46 /* IC type */
47 #define RTL_HW_TYPE(adapter)	(rtl_hal((struct rtl_priv *)adapter)->hw_type)
48 
49 #define IS_NEW_GENERATION_IC(adapter)		\
50 			(RTL_HW_TYPE(adapter) >= HARDWARE_TYPE_RTL8192EE)
51 #define IS_HARDWARE_TYPE_8812(adapter)		\
52 			(RTL_HW_TYPE(adapter) == HARDWARE_TYPE_RTL8812AE)
53 #define IS_HARDWARE_TYPE_8821(adapter)		\
54 			(RTL_HW_TYPE(adapter) == HARDWARE_TYPE_RTL8821AE)
55 #define IS_HARDWARE_TYPE_8723A(adapter)	\
56 			(RTL_HW_TYPE(adapter) == HARDWARE_TYPE_RTL8723AE)
57 #define IS_HARDWARE_TYPE_8723B(adapter)	\
58 			(RTL_HW_TYPE(adapter) == HARDWARE_TYPE_RTL8723BE)
59 #define IS_HARDWARE_TYPE_8192E(adapter)	\
60 			(RTL_HW_TYPE(adapter) == HARDWARE_TYPE_RTL8192EE)
61 
62 #include "halbtc8192e2ant.h"
63 #include "halbtc8723b1ant.h"
64 #include "halbtc8723b2ant.h"
65 #include "halbtc8821a2ant.h"
66 #include "halbtc8821a1ant.h"
67 
68 #define GetDefaultAdapter(padapter)	padapter
69 
70 #define BIT0	0x00000001
71 #define BIT1	0x00000002
72 #define BIT2	0x00000004
73 #define BIT3	0x00000008
74 #define BIT4	0x00000010
75 #define BIT5	0x00000020
76 #define BIT6	0x00000040
77 #define BIT7	0x00000080
78 #define BIT8	0x00000100
79 #define BIT9	0x00000200
80 #define BIT10	0x00000400
81 #define BIT11	0x00000800
82 #define BIT12	0x00001000
83 #define BIT13	0x00002000
84 #define BIT14	0x00004000
85 #define BIT15	0x00008000
86 #define BIT16	0x00010000
87 #define BIT17	0x00020000
88 #define BIT18	0x00040000
89 #define BIT19	0x00080000
90 #define BIT20	0x00100000
91 #define BIT21	0x00200000
92 #define BIT22	0x00400000
93 #define BIT23	0x00800000
94 #define BIT24	0x01000000
95 #define BIT25	0x02000000
96 #define BIT26	0x04000000
97 #define BIT27	0x08000000
98 #define BIT28	0x10000000
99 #define BIT29	0x20000000
100 #define BIT30	0x40000000
101 #define BIT31	0x80000000
102 
103 #endif	/* __HALBT_PRECOMP_H__ */
104