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 * 19 ******************************************************************************/ 20 #ifndef __USB_OPS_H_ 21 #define __USB_OPS_H_ 22 23 #include "osdep_service.h" 24 #include "drv_types.h" 25 #include "osdep_intf.h" 26 27 void r8712_usb_write_mem(struct intf_hdl *pintfhdl, u32 addr, 28 u32 cnt, u8 *wmem); 29 u32 r8712_usb_write_port(struct intf_hdl *pintfhdl, u32 addr, 30 u32 cnt, u8 *wmem); 31 u32 r8712_usb_read_port(struct intf_hdl *pintfhdl, u32 addr, 32 u32 cnt, u8 *rmem); 33 void r8712_usb_set_intf_option(u32 *poption); 34 void r8712_usb_set_intf_funs(struct intf_hdl *pintf_hdl); 35 uint r8712_usb_init_intf_priv(struct intf_priv *pintfpriv); 36 void r8712_usb_unload_intf_priv(struct intf_priv *pintfpriv); 37 void r8712_usb_set_intf_ops(struct _io_ops *pops); 38 void r8712_usb_read_port_cancel(struct _adapter *padapter); 39 void r8712_usb_write_port_cancel(struct _adapter *padapter); 40 int r8712_usbctrl_vendorreq(struct intf_priv *pintfpriv, u8 request, u16 value, 41 u16 index, void *pdata, u16 len, u8 requesttype); 42 43 #endif 44 45