The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/dev/rtw88/efuse.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
    2 /* Copyright(c) 2018-2019  Realtek Corporation
    3  */
    4 
    5 #ifndef __RTW_EFUSE_H__
    6 #define __RTW_EFUSE_H__
    7 
    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
   12 
   13 #define EFUSE_READ_FAIL                 0xff
   14 
   15 #define GET_EFUSE_HW_CAP_HCI(hw_cap)                                           \
   16         le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(3, 0))
   17 #define GET_EFUSE_HW_CAP_BW(hw_cap)                                            \
   18         le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(18, 16))
   19 #define GET_EFUSE_HW_CAP_NSS(hw_cap)                                           \
   20         le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(20, 19))
   21 #define GET_EFUSE_HW_CAP_ANT_NUM(hw_cap)                                       \
   22         le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(23, 21))
   23 #define GET_EFUSE_HW_CAP_PTCL(hw_cap)                                          \
   24         le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(27, 26))
   25 
   26 int rtw_parse_efuse_map(struct rtw_dev *rtwdev);
   27 int rtw_read8_physical_efuse(struct rtw_dev *rtwdev, u16 addr, u8 *data);
   28 
   29 #endif

Cache object: f00a1c033afb710899d1f219054d22fa


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.