xref: /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/def.h (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 2009-2012  Realtek Corporation.*/
3 
4 #include "../rtl8192ce/def.h"
5 
6 /*-------------------------------------------------------------------------
7  *	Chip specific
8  *-------------------------------------------------------------------------*/
9 #define NORMAL_CHIP			BIT(4)
10 #define CHIP_VENDOR_UMC			BIT(5)
11 #define CHIP_VENDOR_UMC_B_CUT		BIT(6)
12 
13 #define IS_92C_1T2R(version)		\
14 	(((version) & CHIP_92C_1T2R) == CHIP_92C_1T2R)
15 
16 #define IS_VENDOR_UMC(version)		\
17 	(((version) & CHIP_VENDOR_UMC) ? true : false)
18 
19 #define CHIP_BONDING_92C_1T2R	0x1
20 #define CHIP_BONDING_IDENTIFIER(_value)	(((_value) >> 22) & 0x3)
21