linux/drivers/staging/rtl8188eu/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        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        size_t buf_len;
  28};
  29
  30#define NR_XMITFRAME    256
  31
  32struct xmit_priv;
  33struct pkt_attrib;
  34struct sta_xmit_priv;
  35struct xmit_frame;
  36struct xmit_buf;
  37
  38int rtw_xmit_entry(struct sk_buff *pkt, struct  net_device *pnetdev);
  39
  40void rtw_os_xmit_schedule(struct adapter *padapter);
  41
  42int rtw_os_xmit_resource_alloc(struct adapter *padapter,
  43                               struct xmit_buf *pxmitbuf, u32 alloc_sz);
  44void rtw_os_xmit_resource_free(struct xmit_buf *pxmitbuf);
  45
  46uint rtw_remainder_len(struct pkt_file *pfile);
  47void _rtw_open_pktfile(struct sk_buff *pkt, struct pkt_file *pfile);
  48uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen);
  49
  50void rtw_os_pkt_complete(struct adapter *padapter, struct sk_buff *pkt);
  51void rtw_os_xmit_complete(struct adapter *padapter,
  52                          struct xmit_frame *pxframe);
  53
  54#endif /* __XMIT_OSDEP_H_ */
  55