Commit | Line | Data |
---|---|---|
9a602711 LF |
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 | * 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 | |
17 | * | |
18 | * | |
19 | ******************************************************************************/ | |
20 | #ifndef __XMIT_OSDEP_H_ | |
21 | #define __XMIT_OSDEP_H_ | |
22 | ||
23 | #include <osdep_service.h> | |
24 | #include <drv_types.h> | |
25 | ||
26 | struct pkt_file { | |
27 | struct sk_buff *pkt; | |
28 | size_t pkt_len; /* the remainder length of the open_file */ | |
29 | unsigned char *cur_buffer; | |
30 | u8 *buf_start; | |
31 | u8 *cur_addr; | |
32 | size_t buf_len; | |
33 | }; | |
34 | ||
9a602711 LF |
35 | #define NR_XMITFRAME 256 |
36 | ||
37 | struct xmit_priv; | |
38 | struct pkt_attrib; | |
39 | struct sta_xmit_priv; | |
40 | struct xmit_frame; | |
41 | struct xmit_buf; | |
42 | ||
43 | int rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev); | |
44 | ||
45 | void rtw_os_xmit_schedule(struct adapter *padapter); | |
46 | ||
47 | int rtw_os_xmit_resource_alloc(struct adapter *padapter, | |
48 | struct xmit_buf *pxmitbuf, u32 alloc_sz); | |
49 | void rtw_os_xmit_resource_free(struct adapter *padapter, | |
50 | struct xmit_buf *pxmitbuf, u32 free_sz); | |
51 | ||
9a602711 LF |
52 | uint rtw_remainder_len(struct pkt_file *pfile); |
53 | void _rtw_open_pktfile(struct sk_buff *pkt, struct pkt_file *pfile); | |
54 | uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen); | |
55 | int rtw_endofpktfile(struct pkt_file *pfile); | |
56 | ||
57 | void rtw_os_pkt_complete(struct adapter *padapter, struct sk_buff *pkt); | |
58 | void rtw_os_xmit_complete(struct adapter *padapter, | |
59 | struct xmit_frame *pxframe); | |
60 | ||
61 | #endif /* __XMIT_OSDEP_H_ */ |