2022-06-08 23:46:35 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
|
|
|
|
/* Copyright(c) 2007 - 2011 Realtek Corporation. */
|
|
|
|
|
2013-05-08 21:45:39 +00:00
|
|
|
#ifndef __USB_OPS_LINUX_H__
|
|
|
|
#define __USB_OPS_LINUX_H__
|
|
|
|
|
|
|
|
#define VENDOR_CMD_MAX_DATA_LEN 254
|
|
|
|
|
2013-08-12 04:36:23 +00:00
|
|
|
#define RTW_USB_CONTROL_MSG_TIMEOUT_TEST 10/* ms */
|
|
|
|
#define RTW_USB_CONTROL_MSG_TIMEOUT 500/* ms */
|
2013-05-08 21:45:39 +00:00
|
|
|
|
|
|
|
#define MAX_USBCTRL_VENDORREQ_TIMES 10
|
|
|
|
|
2013-08-12 04:36:23 +00:00
|
|
|
#define RTW_USB_BULKOUT_TIME 5000/* ms */
|
2013-05-08 21:45:39 +00:00
|
|
|
|
2013-08-14 02:01:38 +00:00
|
|
|
#define _usbctrl_vendorreq_async_callback(urb, regs) \
|
|
|
|
_usbctrl_vendorreq_async_callback(urb)
|
|
|
|
#define usb_bulkout_zero_complete(purb, regs) \
|
|
|
|
usb_bulkout_zero_complete(purb)
|
|
|
|
#define usb_write_mem_complete(purb, regs) \
|
|
|
|
usb_write_mem_complete(purb)
|
|
|
|
#define usb_write_port_complete(purb, regs) \
|
|
|
|
usb_write_port_complete(purb)
|
|
|
|
#define usb_read_port_complete(purb, regs) \
|
|
|
|
usb_read_port_complete(purb)
|
|
|
|
#define usb_read_interrupt_complete(purb, regs) \
|
|
|
|
usb_read_interrupt_complete(purb)
|
2013-05-08 21:45:39 +00:00
|
|
|
|
|
|
|
unsigned int ffaddr2pipehdl(struct dvobj_priv *pdvobj, u32 addr);
|
|
|
|
|
|
|
|
#endif
|