treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / net / wireless / realtek / rtw88 / efuse.h
blob115bbe85946ac6c643926c725d9bda49da03ff9a
1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2 /* Copyright(c) 2018-2019 Realtek Corporation
3 */
5 #ifndef __RTW_EFUSE_H__
6 #define __RTW_EFUSE_H__
8 #define EFUSE_HW_CAP_IGNORE 0
9 #define EFUSE_HW_CAP_PTCL_VHT 3
10 #define EFUSE_HW_CAP_SUPP_BW80 7
11 #define EFUSE_HW_CAP_SUPP_BW40 6
13 #define GET_EFUSE_HW_CAP_HCI(hw_cap) \
14 le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(3, 0))
15 #define GET_EFUSE_HW_CAP_BW(hw_cap) \
16 le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(18, 16))
17 #define GET_EFUSE_HW_CAP_NSS(hw_cap) \
18 le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(20, 19))
19 #define GET_EFUSE_HW_CAP_ANT_NUM(hw_cap) \
20 le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(23, 21))
21 #define GET_EFUSE_HW_CAP_PTCL(hw_cap) \
22 le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(27, 26))
24 int rtw_parse_efuse_map(struct rtw_dev *rtwdev);
26 #endif