mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 22:43:04 +00:00
rtl8188eu: Place driver rtl8188EUS_rtl8189ES_linux_v4.1.8_9499.20131104 in branch v4.1.8_9499
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
bad0b4cde4
commit
065126d8ce
247 changed files with 192113 additions and 30447 deletions
40
include/usb_ops_linux.h
Normal file → Executable file
40
include/usb_ops_linux.h
Normal file → Executable file
|
@ -1,7 +1,7 @@
|
|||
/******************************************************************************
|
||||
*
|
||||
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of version 2 of the GNU General Public License as
|
||||
* published by the Free Software Foundation.
|
||||
|
@ -22,25 +22,32 @@
|
|||
|
||||
#define VENDOR_CMD_MAX_DATA_LEN 254
|
||||
|
||||
#define RTW_USB_CONTROL_MSG_TIMEOUT_TEST 10/* ms */
|
||||
#define RTW_USB_CONTROL_MSG_TIMEOUT 500/* ms */
|
||||
#define RTW_USB_CONTROL_MSG_TIMEOUT_TEST 10//ms
|
||||
#define RTW_USB_CONTROL_MSG_TIMEOUT 500//ms
|
||||
|
||||
#if defined(CONFIG_VENDOR_REQ_RETRY) && defined(CONFIG_USB_VENDOR_REQ_MUTEX)
|
||||
/* vendor req retry should be in the situation when each vendor req is atomically submitted from others */
|
||||
#define MAX_USBCTRL_VENDORREQ_TIMES 10
|
||||
#else
|
||||
#define MAX_USBCTRL_VENDORREQ_TIMES 1
|
||||
#endif
|
||||
|
||||
#define RTW_USB_BULKOUT_TIME 5000/* ms */
|
||||
#define RTW_USB_BULKOUT_TIMEOUT 5000//ms
|
||||
|
||||
#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)
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) || (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,18))
|
||||
#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)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_USB_SUPPORT_ASYNC_VDN_REQ
|
||||
int usb_async_write8(struct intf_hdl *pintfhdl, u32 addr, u8 val);
|
||||
int usb_async_write16(struct intf_hdl *pintfhdl, u32 addr, u16 val);
|
||||
int usb_async_write32(struct intf_hdl *pintfhdl, u32 addr, u32 val);
|
||||
#endif /* CONFIG_USB_SUPPORT_ASYNC_VDN_REQ */
|
||||
|
||||
unsigned int ffaddr2pipehdl(struct dvobj_priv *pdvobj, u32 addr);
|
||||
|
||||
|
@ -53,3 +60,4 @@ u32 usb_write_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *wmem);
|
|||
void usb_write_port_cancel(struct intf_hdl *pintfhdl);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue