source: rtems-libbsd/freebsd/sys/dev/rtwn/rtl8812a/r12a_rx_desc.h @ 0cbb715

55-freebsd-126-freebsd-12
Last change on this file since 0cbb715 was 0cbb715, checked in by Christian Mauderer <Christian.Mauderer@…>, on 11/22/16 at 09:41:47

rtwn: Import from FreeBSD.

  • Property mode set to 100644
File size: 2.6 KB
Line 
1/*-
2 * Copyright (c) 2016 Andriy Voskoboinyk <avos@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 *    notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 *    notice, this list of conditions and the following disclaimer in the
12 *    documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD$
27 */
28
29#ifndef R12A_RX_DESC_H
30#define R12A_RX_DESC_H
31
32#include <dev/rtwn/rtl8192c/r92c_rx_desc.h>
33
34/* Rx MAC descriptor defines (chip-specific). */
35/* Rx dword 1 */
36#define R12A_RXDW1_AMSDU        0x00002000
37#define R12A_RXDW1_CKSUM_ERR    0x00100000
38#define R12A_RXDW1_IPV6         0x00200000
39#define R12A_RXDW1_UDP          0x00400000
40#define R12A_RXDW1_CKSUM        0x00800000
41/* Rx dword 2 */
42#define R12A_RXDW2_RPT_C2H      0x10000000
43/* Rx dword 4 */
44#define R12A_RXDW4_SPLCP        0x00000001
45#define R12A_RXDW4_LDPC         0x00000002
46#define R12A_RXDW4_STBC         0x00000004
47#define R12A_RXDW4_BW_M         0x00000030
48#define R12A_RXDW4_BW_S         4
49
50/* Rx PHY descriptor. */
51struct r12a_rx_phystat {
52        uint8_t         gain_trsw[2];
53        uint16_t        phyw1;
54#define R12A_PHYW1_CHAN_M       0x03ff
55#define R12A_PHYW1_CHAN_S       0
56#define R12A_PHYW1_CHAN_EXT_M   0x3c00
57#define R12A_PHYW1_CHAN_EXT_S   10
58#define R12A_PHYW1_RFMOD_M      0xc000
59#define R12A_PHYW1_RFMOD_S      14
60
61        uint8_t         pwdb_all;
62        uint8_t         cfosho[4];
63        uint8_t         cfotail[4];
64        uint8_t         rxevm[2];
65        uint8_t         rxsnr[2];
66        uint8_t         pcts_msk_rpt[2];
67        uint8_t         pdsnr[2];
68        uint8_t         csi_current[2];
69        uint8_t         rx_gain_c;
70        uint8_t         rx_gain_d;
71        uint8_t         sigevm;
72        uint16_t        phyw13;
73#define R12A_PHYW13_ANTIDX_A_M  0x0700
74#define R12A_PHYW13_ANTIDX_A_S  8
75#define R12A_PHYW13_ANTIDX_B_M  0x3800
76#define R12A_PHYW13_ANTIDX_B_S  11
77} __packed;
78
79#endif  /* R12A_RX_DESC_H */
Note: See TracBrowser for help on using the repository browser.