linux/drivers/staging/rtl8723au/include/xmit_osdep.h
<<
>>
Prefs
   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
  21struct 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
  33struct xmit_priv;
  34struct pkt_attrib;
  35struct sta_xmit_priv;
  36struct xmit_frame;
  37struct xmit_buf;
  38
  39int rtw_xmit23a_entry23a(struct sk_buff *pkt, struct net_device *pnetdev);
  40
  41void rtw_os_xmit_schedule23a(struct rtw_adapter *padapter);
  42
  43int rtw_os_xmit_resource_alloc23a(struct rtw_adapter *padapter,
  44                               struct xmit_buf *pxmitbuf, u32 alloc_sz);
  45void rtw_os_xmit_resource_free23a(struct rtw_adapter *padapter,
  46                               struct xmit_buf *pxmitbuf);
  47uint rtw_remainder_len23a(struct pkt_file *pfile);
  48void _rtw_open_pktfile23a(struct sk_buff *pkt, struct pkt_file *pfile);
  49uint _rtw_pktfile_read23a(struct pkt_file *pfile, u8 *rmem, uint rlen);
  50int rtw_endofpktfile23a(struct pkt_file *pfile);
  51
  52void rtw_os_pkt_complete23a(struct rtw_adapter *padapter, struct sk_buff *pkt);
  53void rtw_os_xmit_complete23a(struct rtw_adapter *padapter,
  54                          struct xmit_frame *pxframe);
  55int netdev_open23a(struct net_device *pnetdev);
  56
  57#endif /* __XMIT_OSDEP_H_ */
  58