]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blob - drivers/staging/rtl8723au/include/xmit_osdep.h
Merge tag 'pm+acpi-3.15-rc1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafae...
[mirror_ubuntu-hirsute-kernel.git] / drivers / staging / rtl8723au / include / xmit_osdep.h
1 /******************************************************************************
2 *
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
4 *
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.
8 *
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
12 * more details.
13 *
14 ******************************************************************************/
15 #ifndef __XMIT_OSDEP_H_
16 #define __XMIT_OSDEP_H_
17
18 #include <osdep_service.h>
19 #include <drv_types.h>
20
21 struct pkt_file {
22 struct sk_buff *pkt;
23 __kernel_size_t pkt_len; /* the remainder length of the open_file */
24 unsigned char *cur_buffer;
25 u8 *buf_start;
26 u8 *cur_addr;
27 __kernel_size_t buf_len;
28 };
29
30
31 #define NR_XMITFRAME 256
32
33 struct xmit_priv;
34 struct pkt_attrib;
35 struct sta_xmit_priv;
36 struct xmit_frame;
37 struct xmit_buf;
38
39 int rtw_xmit23a_entry23a(struct sk_buff *pkt, struct net_device *pnetdev);
40
41 void rtw_os_xmit_schedule23a(struct rtw_adapter *padapter);
42
43 int rtw_os_xmit_resource_alloc23a(struct rtw_adapter *padapter,
44 struct xmit_buf *pxmitbuf, u32 alloc_sz);
45 void rtw_os_xmit_resource_free23a(struct rtw_adapter *padapter,
46 struct xmit_buf *pxmitbuf);
47 uint rtw_remainder_len23a(struct pkt_file *pfile);
48 void _rtw_open_pktfile23a(struct sk_buff *pkt, struct pkt_file *pfile);
49 uint _rtw_pktfile_read23a(struct pkt_file *pfile, u8 *rmem, uint rlen);
50 int rtw_endofpktfile23a(struct pkt_file *pfile);
51
52 void rtw_os_pkt_complete23a(struct rtw_adapter *padapter, struct sk_buff *pkt);
53 void rtw_os_xmit_complete23a(struct rtw_adapter *padapter,
54 struct xmit_frame *pxframe);
55 int netdev_open23a(struct net_device *pnetdev);
56
57 #endif /* __XMIT_OSDEP_H_ */