aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8712/usb_vendor_req.h
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2010-08-20 11:15:30 -0400
committerLarry Finger <Larry.Finger@lwfinger.net>2010-08-20 11:15:30 -0400
commit2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef (patch)
tree430b79f753b0e1cec6379b9a4208a716c914ac65 /drivers/staging/rtl8712/usb_vendor_req.h
parent763008c4357b73c8d18396dfd8d79dc58fa3f99d (diff)
staging: r8712u: Add the new driver to the mainline kernel
This code is for a completely new version of the Realtek 8192 USB devices such as the D-Link DWA-130. The Realtek code, which was originally for Linux, Windows XP and Windows CE, has been stripped of all code not needed for Linux. In addition, only one additional configuration variable, which enables AP mode, remains. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Florian Schilhabel <florian.c.schilhabel@googlemail.com> Tested-by: Frederic Leroy <fredo@starox.org>
Diffstat (limited to 'drivers/staging/rtl8712/usb_vendor_req.h')
-rw-r--r--drivers/staging/rtl8712/usb_vendor_req.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/staging/rtl8712/usb_vendor_req.h b/drivers/staging/rtl8712/usb_vendor_req.h
new file mode 100644
index 00000000000..d35c538c47a
--- /dev/null
+++ b/drivers/staging/rtl8712/usb_vendor_req.h
@@ -0,0 +1,33 @@
1#ifndef _USB_VENDOR_REQUEST_H_
2#define _USB_VENDOR_REQUEST_H_
3
4/*4 Set/Get Register related wIndex/Data */
5#define RT_USB_RESET_MASK_OFF 0
6#define RT_USB_RESET_MASK_ON 1
7#define RT_USB_SLEEP_MASK_OFF 0
8#define RT_USB_SLEEP_MASK_ON 1
9#define RT_USB_LDO_ON 1
10#define RT_USB_LDO_OFF 0
11
12/*4 Set/Get SYSCLK related wValue or Data */
13#define RT_USB_SYSCLK_32KHZ 0
14#define RT_USB_SYSCLK_40MHZ 1
15#define RT_USB_SYSCLK_60MHZ 2
16
17enum RT_USB_BREQUEST {
18 RT_USB_SET_REGISTER = 1,
19 RT_USB_SET_SYSCLK = 2,
20 RT_USB_GET_SYSCLK = 3,
21 RT_USB_GET_REGISTER = 4
22};
23
24enum RT_USB_WVALUE {
25 RT_USB_RESET_MASK = 1,
26 RT_USB_SLEEP_MASK = 2,
27 RT_USB_USB_HRCPWM = 3,
28 RT_USB_LDO = 4,
29 RT_USB_BOOT_TYPE = 5
30};
31
32#endif
33