Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
usb_ops.h
Go to the documentation of this file.
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 <[email protected]>
23  * Larry Finger <[email protected]>
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 
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);
48 
49 #endif
50