• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2 /* Copyright(c) 2007 - 2011 Realtek Corporation. */
3 
4 #ifndef __XMIT_OSDEP_H_
5 #define __XMIT_OSDEP_H_
6 
7 #include "osdep_service.h"
8 #include "drv_types.h"
9 
10 struct pkt_file {
11 	struct sk_buff *pkt;
12 	size_t pkt_len;	 /* the remainder length of the open_file */
13 	unsigned char *cur_buffer;
14 	u8 *buf_start;
15 	u8 *cur_addr;
16 	size_t buf_len;
17 };
18 
19 extern int rtw_ht_enable;
20 extern int rtw_cbw40_enable;
21 extern int rtw_ampdu_enable;/* for enable tx_ampdu */
22 
23 #define NR_XMITFRAME	256
24 
25 struct xmit_priv;
26 struct pkt_attrib;
27 struct sta_xmit_priv;
28 struct xmit_frame;
29 struct xmit_buf;
30 
31 int rtw_xmit_entry(struct sk_buff *pkt, struct  net_device *pnetdev);
32 
33 void rtw_os_xmit_schedule(struct adapter *padapter);
34 
35 int rtw_os_xmit_resource_alloc(struct adapter *padapter,
36 			       struct xmit_buf *pxmitbuf, u32 alloc_sz);
37 void rtw_os_xmit_resource_free(struct adapter *padapter,
38 			       struct xmit_buf *pxmitbuf, u32 free_sz);
39 
40 void rtw_set_tx_chksum_offload(struct sk_buff *pkt, struct pkt_attrib *pattrib);
41 
42 uint rtw_remainder_len(struct pkt_file *pfile);
43 void _rtw_open_pktfile(struct sk_buff *pkt, struct pkt_file *pfile);
44 uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen);
45 int rtw_endofpktfile(struct pkt_file *pfile);
46 
47 void rtw_os_pkt_complete(struct adapter *padapter, struct sk_buff *pkt);
48 void rtw_os_xmit_complete(struct adapter *padapter,
49 			  struct xmit_frame *pxframe);
50 
51 #endif /* __XMIT_OSDEP_H_ */
52