usb_ops_linux.h revision 43eeb8ee53a22b7cc6a4139ce7173c6fc0794d73
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 __USB_OPS_LINUX_H__ 16#define __USB_OPS_LINUX_H__ 17 18#define VENDOR_CMD_MAX_DATA_LEN 254 19 20#define RTW_USB_CONTROL_MSG_TIMEOUT_TEST 10/* ms */ 21#define RTW_USB_CONTROL_MSG_TIMEOUT 500/* ms */ 22 23#define MAX_USBCTRL_VENDORREQ_TIMES 10 24 25#define RTW_USB_BULKOUT_TIMEOUT 5000/* ms */ 26 27#define _usbctrl_vendorreq_async_callback(urb, regs) \ 28 _usbctrl_vendorreq_async_callback(urb) 29#define usb_write_port23a_complete(purb, regs) usb_write_port23a_complete(purb) 30#define usb_read_port_complete(purb, regs) usb_read_port_complete(purb) 31#define usb_read_interrupt_complete(purb, regs) \ 32 usb_read_interrupt_complete(purb) 33 34unsigned int ffaddr2pipehdl23a(struct dvobj_priv *pdvobj, u32 addr); 35 36void usb_read_port_cancel23a(struct rtw_adapter *adapter); 37 38int usb_write_port23a(struct rtw_adapter *adapter, u32 addr, u32 cnt, 39 struct xmit_buf *wmem); 40void usb_write_port23a_cancel(struct rtw_adapter *adapter); 41 42#endif 43