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