]>
git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - drivers/staging/rtl8712/rtl8712_xmit.h
1 /******************************************************************************
3 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
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.
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
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18 * Modifications for inclusion into the Linux staging tree are
19 * Copyright(c) 2010 Larry Finger. All rights reserved.
21 * Contact information:
22 * WLAN FAE <wlanfae@realtek.com>
23 * Larry Finger <Larry.Finger@lwfinger.net>
25 ******************************************************************************/
26 #ifndef _RTL8712_XMIT_H_
27 #define _RTL8712_XMIT_H_
29 #define HWXMIT_ENTRY 4
31 #define VO_QUEUE_INX 0
32 #define VI_QUEUE_INX 1
33 #define BE_QUEUE_INX 2
34 #define BK_QUEUE_INX 3
35 #define TS_QUEUE_INX 4
36 #define MGT_QUEUE_INX 5
37 #define BMC_QUEUE_INX 6
38 #define BCN_QUEUE_INX 7
40 #define HW_QUEUE_ENTRY 8
42 #define TXDESC_SIZE 32
43 #define TXDESC_OFFSET TXDESC_SIZE
45 #define NR_AMSDU_XMITFRAME 8
46 #define NR_TXAGG_XMITFRAME 8
48 #define MAX_AMSDU_XMITBUF_SZ 8704
49 #define MAX_TXAGG_XMITBUF_SZ 16384 /*16k*/
52 #define tx_cmd tx_desc
56 *defined for TX DESC Operation
63 #define OFFSET_SHT (16)
68 #define TYPE_MSK (0x03000000)
71 #define PKT_OFFSET_SZ (0)
78 #define AGG_EN BIT(29)
79 #define RTS_RC_SHT (16)
89 #define RSVD6_MSK (0x00E00000)
90 #define RSVD6_SHT (21)
106 struct tx_desc txdesc
;
107 unsigned int value
[TXDESC_SIZE
>>2];
110 int r8712_xmitframe_complete(struct _adapter
*padapter
,
111 struct xmit_priv
*pxmitpriv
,
112 struct xmit_buf
*pxmitbuf
);
113 void r8712_do_queue_select(struct _adapter
*padapter
,
114 struct pkt_attrib
*pattrib
);
116 #ifdef CONFIG_R8712_TX_AGGR
117 u8
r8712_xmitframe_aggr_1st(struct xmit_buf
*pxmitbuf
,
118 struct xmit_frame
*pxmitframe
);
119 u8
r8712_dump_aggr_xframe(struct xmit_buf
*pxmitbuf
,
120 struct xmit_frame
*pxmitframe
);