Larry Finger | 364e30e | 2014-03-28 21:37:41 -0500 | [diff] [blame^] | 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_mem23a_complete(purb, regs) usb_write_mem23a_complete(purb) |
| 30 | #define usb_write_port23a_complete(purb, regs) usb_write_port23a_complete(purb) |
| 31 | #define usb_read_port_complete(purb, regs) usb_read_port_complete(purb) |
| 32 | #define usb_read_interrupt_complete(purb, regs) \ |
| 33 | usb_read_interrupt_complete(purb) |
| 34 | |
| 35 | unsigned int ffaddr2pipehdl23a(struct dvobj_priv *pdvobj, u32 addr); |
| 36 | |
| 37 | void usb_read_mem23a(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem); |
| 38 | void usb_write_mem23a(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *wmem); |
| 39 | |
| 40 | void usb_read_port_cancel23a(struct intf_hdl *pintfhdl); |
| 41 | |
| 42 | u32 usb_write_port23a(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, |
| 43 | struct xmit_buf *wmem); |
| 44 | void usb_write_port23a_cancel(struct intf_hdl *pintfhdl); |
| 45 | |
| 46 | #endif |