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/rx.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_RX_H_
    6 #define __RTW_RX_H_
    7 
    8 enum rtw_rx_desc_enc {
    9         RX_DESC_ENC_NONE        = 0,
   10         RX_DESC_ENC_WEP40       = 1,
   11         RX_DESC_ENC_TKIP_WO_MIC = 2,
   12         RX_DESC_ENC_TKIP_MIC    = 3,
   13         RX_DESC_ENC_AES         = 4,
   14         RX_DESC_ENC_WEP104      = 5,
   15 };
   16 
   17 #define GET_RX_DESC_PHYST(rxdesc)                                              \
   18         le32_get_bits(*((__le32 *)(rxdesc) + 0x00), BIT(26))
   19 #define GET_RX_DESC_ICV_ERR(rxdesc)                                            \
   20         le32_get_bits(*((__le32 *)(rxdesc) + 0x00), BIT(15))
   21 #define GET_RX_DESC_CRC32(rxdesc)                                              \
   22         le32_get_bits(*((__le32 *)(rxdesc) + 0x00), BIT(14))
   23 #define GET_RX_DESC_SWDEC(rxdesc)                                              \
   24         le32_get_bits(*((__le32 *)(rxdesc) + 0x00), BIT(27))
   25 #define GET_RX_DESC_C2H(rxdesc)                                                \
   26         le32_get_bits(*((__le32 *)(rxdesc) + 0x02), BIT(28))
   27 #define GET_RX_DESC_PKT_LEN(rxdesc)                                            \
   28         le32_get_bits(*((__le32 *)(rxdesc) + 0x00), GENMASK(13, 0))
   29 #define GET_RX_DESC_DRV_INFO_SIZE(rxdesc)                                      \
   30         le32_get_bits(*((__le32 *)(rxdesc) + 0x00), GENMASK(19, 16))
   31 #define GET_RX_DESC_SHIFT(rxdesc)                                              \
   32         le32_get_bits(*((__le32 *)(rxdesc) + 0x00), GENMASK(25, 24))
   33 #define GET_RX_DESC_ENC_TYPE(rxdesc)                                           \
   34         le32_get_bits(*((__le32 *)(rxdesc) + 0x00), GENMASK(22, 20))
   35 #define GET_RX_DESC_RX_RATE(rxdesc)                                            \
   36         le32_get_bits(*((__le32 *)(rxdesc) + 0x03), GENMASK(6, 0))
   37 #define GET_RX_DESC_MACID(rxdesc)                                              \
   38         le32_get_bits(*((__le32 *)(rxdesc) + 0x01), GENMASK(6, 0))
   39 #define GET_RX_DESC_PPDU_CNT(rxdesc)                                           \
   40         le32_get_bits(*((__le32 *)(rxdesc) + 0x02), GENMASK(30, 29))
   41 #define GET_RX_DESC_TSFL(rxdesc)                                               \
   42         le32_get_bits(*((__le32 *)(rxdesc) + 0x05), GENMASK(31, 0))
   43 
   44 void rtw_rx_stats(struct rtw_dev *rtwdev, struct ieee80211_vif *vif,
   45                   struct sk_buff *skb);
   46 void rtw_rx_fill_rx_status(struct rtw_dev *rtwdev,
   47                            struct rtw_rx_pkt_stat *pkt_stat,
   48                            struct ieee80211_hdr *hdr,
   49                            struct ieee80211_rx_status *rx_status,
   50                            u8 *phy_status);
   51 
   52 #endif

Cache object: 822cdaced49f432958134227d3fc51d7


[ 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.