xref: /freebsd/sys/dev/rtwn/rtl8192c/pci/r92ce_tx_desc.h (revision 2a63c3be158216222d89a073dcbd6a72ee4aab5a)
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_TX_DESC_H
23 #define R92CE_TX_DESC_H
24 
25 #include <dev/rtwn/rtl8192c/r92c_tx_desc.h>
26 
27 /* Tx MAC descriptor (PCIe). */
28 struct r92ce_tx_desc {
29 	uint16_t 	pktlen;
30 	uint8_t		offset;
31 	uint8_t		flags0;
32 
33 	uint32_t	txdw1;
34 	uint32_t	txdw2;
35 	uint16_t	txdw3;
36 	uint16_t	txdseq;
37 
38 	uint32_t	txdw4;
39 	uint32_t	txdw5;
40 	uint32_t	txdw6;
41 
42 	uint16_t	txbufsize;
43 	uint16_t	pad;
44 
45 	uint32_t	txbufaddr;
46 	uint32_t	txbufaddr64;
47 
48 	uint32_t	nextdescaddr;
49 	uint32_t	nextdescaddr64;
50 
51 	uint32_t	reserved[4];
52 } __packed __attribute__((aligned(4)));
53 
54 #endif	/* R92CE_TX_DESC_H */
55