GNU Linux-libre 4.14.266-gnu1
[releases.git] / drivers / staging / rtlwifi / halmac / halmac_rx_bd_chip.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2016  Realtek Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  *
14  * The full GNU General Public License is included in this distribution in the
15  * file called LICENSE.
16  *
17  * Contact Information:
18  * wlanfae <wlanfae@realtek.com>
19  * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
20  * Hsinchu 300, Taiwan.
21  *
22  * Larry Finger <Larry.Finger@lwfinger.net>
23  *
24  *****************************************************************************/
25 #ifndef _HALMAC_RX_BD_CHIP_H_
26 #define _HALMAC_RX_BD_CHIP_H_
27
28 /*TXBD_DW0*/
29
30 #define GET_RX_BD_RXFAIL_8822B(__rx_bd) GET_RX_BD_RXFAIL(__rx_bd)
31 #define GET_RX_BD_TOTALRXPKTSIZE_8822B(__rx_bd)                                \
32         GET_RX_BD_TOTALRXPKTSIZE(__rx_bd)
33 #define GET_RX_BD_RXTAG_8822B(__rx_bd) GET_RX_BD_RXTAG(__rx_bd)
34 #define GET_RX_BD_FS_8822B(__rx_bd) GET_RX_BD_FS(__rx_bd)
35 #define GET_RX_BD_LS_8822B(__rx_bd) GET_RX_BD_LS(__rx_bd)
36 #define GET_RX_BD_RXBUFFSIZE_8822B(__rx_bd) GET_RX_BD_RXBUFFSIZE(__rx_bd)
37
38 /*TXBD_DW1*/
39
40 #define GET_RX_BD_PHYSICAL_ADDR_LOW_8822B(__rx_bd)                             \
41         GET_RX_BD_PHYSICAL_ADDR_LOW(__rx_bd)
42
43 /*TXBD_DW2*/
44
45 #define GET_RX_BD_PHYSICAL_ADDR_HIGH_8822B(__rx_bd)                            \
46         GET_RX_BD_PHYSICAL_ADDR_HIGH(__rx_bd)
47
48 #endif