1 /******************************************************************************
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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.
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
14 ******************************************************************************/
15 #ifndef __XMIT_OSDEP_H_
16 #define __XMIT_OSDEP_H_
18 #include <osdep_service.h>
19 #include <drv_types.h>
23 size_t pkt_len; /* the remainder length of the open_file */
24 unsigned char *cur_buffer;
30 #define NR_XMITFRAME 256
38 int rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev);
40 void rtw_os_xmit_schedule(struct adapter *padapter);
42 int rtw_os_xmit_resource_alloc(struct adapter *padapter,
43 struct xmit_buf *pxmitbuf, u32 alloc_sz);
44 void rtw_os_xmit_resource_free(struct adapter *padapter,
45 struct xmit_buf *pxmitbuf, u32 free_sz);
47 uint rtw_remainder_len(struct pkt_file *pfile);
48 void _rtw_open_pktfile(struct sk_buff *pkt, struct pkt_file *pfile);
49 uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen);
50 int rtw_endofpktfile(struct pkt_file *pfile);
52 void rtw_os_pkt_complete(struct adapter *padapter, struct sk_buff *pkt);
53 void rtw_os_xmit_complete(struct adapter *padapter,
54 struct xmit_frame *pxframe);
56 #endif /* __XMIT_OSDEP_H_ */