2013-05-08 21:45:39 +00:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
|
2013-05-19 04:28:07 +00:00
|
|
|
*
|
2013-05-08 21:45:39 +00:00
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of version 2 of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
* more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with
|
|
|
|
* this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
|
|
|
|
*
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
#ifndef __XMIT_OSDEP_H_
|
|
|
|
#define __XMIT_OSDEP_H_
|
|
|
|
|
|
|
|
#include <osdep_service.h>
|
|
|
|
#include <drv_types.h>
|
|
|
|
|
|
|
|
struct pkt_file {
|
2013-07-24 22:03:54 +00:00
|
|
|
struct sk_buff *pkt;
|
2013-07-24 17:19:14 +00:00
|
|
|
size_t pkt_len; //the remainder length of the open_file
|
2013-07-24 22:09:06 +00:00
|
|
|
unsigned char *cur_buffer;
|
2013-05-08 21:45:39 +00:00
|
|
|
u8 *buf_start;
|
|
|
|
u8 *cur_addr;
|
2013-07-24 17:19:14 +00:00
|
|
|
size_t buf_len;
|
2013-05-08 21:45:39 +00:00
|
|
|
};
|
|
|
|
|
2013-06-03 19:52:18 +00:00
|
|
|
#ifdef CONFIG_80211N_HT
|
|
|
|
extern int rtw_ht_enable;
|
|
|
|
extern int rtw_cbw40_enable;
|
|
|
|
extern int rtw_ampdu_enable;//for enable tx_ampdu
|
2013-05-08 21:45:39 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define NR_XMITFRAME 256
|
|
|
|
|
|
|
|
struct xmit_priv;
|
|
|
|
struct pkt_attrib;
|
|
|
|
struct sta_xmit_priv;
|
|
|
|
struct xmit_frame;
|
|
|
|
struct xmit_buf;
|
|
|
|
|
2013-07-25 15:53:16 +00:00
|
|
|
extern int rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev);
|
2013-05-08 21:45:39 +00:00
|
|
|
|
|
|
|
void rtw_os_xmit_schedule(_adapter *padapter);
|
|
|
|
|
|
|
|
int rtw_os_xmit_resource_alloc(_adapter *padapter, struct xmit_buf *pxmitbuf,u32 alloc_sz);
|
|
|
|
void rtw_os_xmit_resource_free(_adapter *padapter, struct xmit_buf *pxmitbuf,u32 free_sz);
|
|
|
|
|
2013-07-24 22:03:54 +00:00
|
|
|
extern void rtw_set_tx_chksum_offload(struct sk_buff *pkt, struct pkt_attrib *pattrib);
|
2013-05-08 21:45:39 +00:00
|
|
|
|
|
|
|
extern uint rtw_remainder_len(struct pkt_file *pfile);
|
2013-07-24 22:03:54 +00:00
|
|
|
extern void _rtw_open_pktfile(struct sk_buff *pkt, struct pkt_file *pfile);
|
2013-05-08 21:45:39 +00:00
|
|
|
extern uint _rtw_pktfile_read (struct pkt_file *pfile, u8 *rmem, uint rlen);
|
2013-07-26 22:56:14 +00:00
|
|
|
extern int rtw_endofpktfile (struct pkt_file *pfile);
|
2013-05-08 21:45:39 +00:00
|
|
|
|
2013-07-24 22:03:54 +00:00
|
|
|
extern void rtw_os_pkt_complete(_adapter *padapter, struct sk_buff *pkt);
|
2013-05-08 21:45:39 +00:00
|
|
|
extern void rtw_os_xmit_complete(_adapter *padapter, struct xmit_frame *pxframe);
|
|
|
|
|
|
|
|
#endif //__XMIT_OSDEP_H_
|