Ali Bahar | 0e54f60 | 2011-08-23 13:53:37 +0800 | [diff] [blame] | 1 | /****************************************************************************** |
| 2 | * |
| 3 | * Copyright(c) 2007 - 2010 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 | * You should have received a copy of the GNU General Public License along with |
| 15 | * this program; if not, write to the Free Software Foundation, Inc., |
| 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA |
| 17 | * |
Ali Bahar | b4f6209 | 2011-08-23 13:53:38 +0800 | [diff] [blame] | 18 | * Modifications for inclusion into the Linux staging tree are |
| 19 | * Copyright(c) 2010 Larry Finger. All rights reserved. |
| 20 | * |
| 21 | * Contact information: |
| 22 | * WLAN FAE <wlanfae@realtek.com> |
| 23 | * Larry Finger <Larry.Finger@lwfinger.net> |
Ali Bahar | 0e54f60 | 2011-08-23 13:53:37 +0800 | [diff] [blame] | 24 | * |
| 25 | ******************************************************************************/ |
Larry Finger | 2865d42 | 2010-08-20 10:15:30 -0500 | [diff] [blame] | 26 | #ifndef _USB_VENDOR_REQUEST_H_ |
| 27 | #define _USB_VENDOR_REQUEST_H_ |
| 28 | |
| 29 | /*4 Set/Get Register related wIndex/Data */ |
| 30 | #define RT_USB_RESET_MASK_OFF 0 |
| 31 | #define RT_USB_RESET_MASK_ON 1 |
| 32 | #define RT_USB_SLEEP_MASK_OFF 0 |
| 33 | #define RT_USB_SLEEP_MASK_ON 1 |
| 34 | #define RT_USB_LDO_ON 1 |
| 35 | #define RT_USB_LDO_OFF 0 |
| 36 | |
| 37 | /*4 Set/Get SYSCLK related wValue or Data */ |
| 38 | #define RT_USB_SYSCLK_32KHZ 0 |
| 39 | #define RT_USB_SYSCLK_40MHZ 1 |
| 40 | #define RT_USB_SYSCLK_60MHZ 2 |
| 41 | |
| 42 | enum RT_USB_BREQUEST { |
| 43 | RT_USB_SET_REGISTER = 1, |
| 44 | RT_USB_SET_SYSCLK = 2, |
| 45 | RT_USB_GET_SYSCLK = 3, |
| 46 | RT_USB_GET_REGISTER = 4 |
| 47 | }; |
| 48 | |
| 49 | enum RT_USB_WVALUE { |
| 50 | RT_USB_RESET_MASK = 1, |
| 51 | RT_USB_SLEEP_MASK = 2, |
| 52 | RT_USB_USB_HRCPWM = 3, |
| 53 | RT_USB_LDO = 4, |
| 54 | RT_USB_BOOT_TYPE = 5 |
| 55 | }; |
| 56 | |
| 57 | #endif |
| 58 | |