linux/drivers/staging/rtl8712/usb_ops.h
<<
>>
Prefs
   1/******************************************************************************
   2 *
   3 * Copyright(c) 2007 - 2010 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 * Modifications for inclusion into the Linux staging tree are
  19 * Copyright(c) 2010 Larry Finger. All rights reserved.
  20 *
  21 * Contact information:
  22 * WLAN FAE <wlanfae@realtek.com>
  23 * Larry Finger <Larry.Finger@lwfinger.net>
  24 *
  25 ******************************************************************************/
  26#ifndef __USB_OPS_H_
  27#define __USB_OPS_H_
  28
  29#include "osdep_service.h"
  30#include "drv_types.h"
  31#include "osdep_intf.h"
  32
  33void r8712_usb_write_mem(struct intf_hdl *pintfhdl, u32 addr,
  34                         u32 cnt, u8 *wmem);
  35u32 r8712_usb_write_port(struct intf_hdl *pintfhdl, u32 addr,
  36                          u32 cnt, u8 *wmem);
  37u32 r8712_usb_read_port(struct intf_hdl *pintfhdl, u32 addr,
  38                         u32 cnt, u8 *rmem);
  39void r8712_usb_set_intf_option(u32 *poption);
  40void r8712_usb_set_intf_funs(struct intf_hdl *pintf_hdl);
  41uint r8712_usb_init_intf_priv(struct intf_priv *pintfpriv);
  42void r8712_usb_unload_intf_priv(struct intf_priv *pintfpriv);
  43void r8712_usb_set_intf_ops(struct _io_ops *pops);
  44void r8712_usb_read_port_cancel(struct _adapter *padapter);
  45void r8712_usb_write_port_cancel(struct _adapter *padapter);
  46int r8712_usbctrl_vendorreq(struct intf_priv *pintfpriv, u8 request, u16 value,
  47                      u16 index, void *pdata, u16 len, u8 requesttype);
  48
  49#endif
  50
  51