• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2 /* Copyright(c) 2007 - 2011 Realtek Corporation. */
3 
4 #ifndef __ODM_TYPES_H__
5 #define __ODM_TYPES_H__
6 
7 /*  */
8 /*  Define Different SW team support */
9 /*  */
10 #define	ODM_AP			0x01	 /* BIT(0) */
11 #define	ODM_ADSL		0x02	/* BIT(1) */
12 #define	ODM_CE			0x04	/* BIT(2) */
13 #define	ODM_MP			0x08	/* BIT(3) */
14 
15 #define		RT_PCI_INTERFACE				1
16 #define		RT_USB_INTERFACE				2
17 #define		RT_SDIO_INTERFACE				3
18 
19 enum HAL_STATUS {
20 	HAL_STATUS_SUCCESS,
21 	HAL_STATUS_FAILURE,
22 };
23 
24 enum RT_SPINLOCK_TYPE {
25 	RT_TEMP = 1,
26 };
27 
28 #include "basic_types.h"
29 
30 #define DEV_BUS_TYPE	RT_USB_INTERFACE
31 
32 #define SET_TX_DESC_ANTSEL_A_88E(__ptxdesc, __value)			\
33 	le32p_replace_bits((__le32 *)(__ptxdesc + 8), __value, BIT(24))
34 #define SET_TX_DESC_ANTSEL_B_88E(__ptxdesc, __value)			\
35 	le32p_replace_bits((__le32 *)(__ptxdesc + 8), __value, BIT(25))
36 #define SET_TX_DESC_ANTSEL_C_88E(__ptxdesc, __value)			\
37 	le32p_replace_bits((__le32 *)(__ptxdesc + 28), __value, BIT(29))
38 
39 /* define useless flag to avoid compile warning */
40 #define	USE_WORKITEM			0
41 #define		FOR_BRAZIL_PRETEST	0
42 #define	BT_30_SUPPORT			0
43 #define   FPGA_TWO_MAC_VERIFICATION	0
44 
45 #endif /*  __ODM_TYPES_H__ */
46