xref: /freebsd/sys/dev/rtwn/rtl8192c/pci/r92ce_rx_desc.h (revision 783d3ff6d7fae619db8a7990b8a6387de0c677b5)
1 /*	$OpenBSD: if_rtwnreg.h,v 1.3 2015/06/14 08:02:47 stsp Exp $	*/
2 
3 /*-
4  * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
5  * Copyright (c) 2015 Stefan Sperling <stsp@openbsd.org>
6  * Copyright (c) 2016 Andriy Voskoboinyk <avos@FreeBSD.org>
7  *
8  * Permission to use, copy, modify, and distribute this software for any
9  * purpose with or without fee is hereby granted, provided that the above
10  * copyright notice and this permission notice appear in all copies.
11  *
12  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19  *
20  */
21 
22 #ifndef R92CE_RX_DESC_H
23 #define R92CE_RX_DESC_H
24 
25 #include <dev/rtwn/rtl8192c/r92c_rx_desc.h>
26 
27 /* Rx MAC descriptor (PCIe). */
28 struct r92ce_rx_stat {
29 	uint32_t	rxdw0;
30 	uint32_t	rxdw1;
31 	uint32_t	rxdw2;
32 	uint32_t	rxdw3;
33 	uint32_t	rxdw4;
34 	uint32_t	tsf_low;
35 
36 	uint32_t	rxbufaddr;
37 	uint32_t	rxbufaddr64;
38 } __packed __attribute__((aligned(4)));
39 
40 #endif	/* R92CE_RX_DESC_H */
41