2022-06-08 23:46:35 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
|
|
|
|
/* Copyright(c) 2007 - 2011 Realtek Corporation. */
|
|
|
|
|
2013-05-08 21:45:39 +00:00
|
|
|
#ifndef __XMIT_OSDEP_H_
|
|
|
|
#define __XMIT_OSDEP_H_
|
|
|
|
|
2022-06-08 23:46:35 +00:00
|
|
|
#include "osdep_service.h"
|
|
|
|
#include "drv_types.h"
|
2013-05-08 21:45:39 +00:00
|
|
|
|
|
|
|
struct pkt_file {
|
2013-07-24 22:03:54 +00:00
|
|
|
struct sk_buff *pkt;
|
2013-08-12 04:36:23 +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
|
|
|
extern int rtw_ht_enable;
|
|
|
|
extern int rtw_cbw40_enable;
|
2013-08-12 04:36:23 +00:00
|
|
|
extern int rtw_ampdu_enable;/* for enable tx_ampdu */
|
2013-05-08 21:45:39 +00:00
|
|
|
|
|
|
|
#define NR_XMITFRAME 256
|
|
|
|
|
|
|
|
struct xmit_priv;
|
|
|
|
struct pkt_attrib;
|
|
|
|
struct sta_xmit_priv;
|
|
|
|
struct xmit_frame;
|
|
|
|
struct xmit_buf;
|
|
|
|
|
2013-08-14 02:01:38 +00:00
|
|
|
int rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev);
|
2013-05-08 21:45:39 +00:00
|
|
|
|
2013-07-27 01:08:39 +00:00
|
|
|
void rtw_os_xmit_schedule(struct adapter *padapter);
|
2013-05-08 21:45:39 +00:00
|
|
|
|
2013-08-14 02:01:38 +00:00
|
|
|
int rtw_os_xmit_resource_alloc(struct adapter *padapter,
|
|
|
|
struct xmit_buf *pxmitbuf, u32 alloc_sz);
|
|
|
|
void rtw_os_xmit_resource_free(struct adapter *padapter,
|
|
|
|
struct xmit_buf *pxmitbuf, u32 free_sz);
|
2013-05-08 21:45:39 +00:00
|
|
|
|
2013-08-14 02:01:38 +00:00
|
|
|
uint rtw_remainder_len(struct pkt_file *pfile);
|
|
|
|
void _rtw_open_pktfile(struct sk_buff *pkt, struct pkt_file *pfile);
|
|
|
|
uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen);
|
2022-06-08 23:46:35 +00:00
|
|
|
bool rtw_endofpktfile(struct pkt_file *pfile);
|
2013-05-08 21:45:39 +00:00
|
|
|
|
2013-08-14 02:01:38 +00:00
|
|
|
void rtw_os_pkt_complete(struct adapter *padapter, struct sk_buff *pkt);
|
|
|
|
void rtw_os_xmit_complete(struct adapter *padapter,
|
|
|
|
struct xmit_frame *pxframe);
|
2013-05-08 21:45:39 +00:00
|
|
|
|
2013-08-12 04:36:23 +00:00
|
|
|
#endif /* __XMIT_OSDEP_H_ */
|