2019-04-22 11:31:01 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/* Copyright(c) 2007 - 2016 Realtek Corporation. All rights reserved. */
|
|
|
|
|
2013-05-08 21:45:39 +00:00
|
|
|
#ifndef _USB_VENDOR_REQUEST_H_
|
|
|
|
#define _USB_VENDOR_REQUEST_H_
|
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
/* 4 Set/Get Register related wIndex/Data */
|
2013-05-08 21:45:39 +00:00
|
|
|
#define RT_USB_RESET_MASK_OFF 0
|
|
|
|
#define RT_USB_RESET_MASK_ON 1
|
|
|
|
#define RT_USB_SLEEP_MASK_OFF 0
|
|
|
|
#define RT_USB_SLEEP_MASK_ON 1
|
|
|
|
#define RT_USB_LDO_ON 1
|
|
|
|
#define RT_USB_LDO_OFF 0
|
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
/* 4 Set/Get SYSCLK related wValue or Data */
|
2013-05-08 21:45:39 +00:00
|
|
|
#define RT_USB_SYSCLK_32KHZ 0
|
|
|
|
#define RT_USB_SYSCLK_40MHZ 1
|
|
|
|
#define RT_USB_SYSCLK_60MHZ 2
|
|
|
|
|
2014-12-11 21:15:04 +00:00
|
|
|
|
|
|
|
typedef enum _RT_USB_BREQUEST {
|
2013-05-08 21:45:39 +00:00
|
|
|
RT_USB_SET_REGISTER = 1,
|
|
|
|
RT_USB_SET_SYSCLK = 2,
|
|
|
|
RT_USB_GET_SYSCLK = 3,
|
|
|
|
RT_USB_GET_REGISTER = 4
|
2014-12-11 21:15:04 +00:00
|
|
|
} RT_USB_BREQUEST;
|
|
|
|
|
2013-05-08 21:45:39 +00:00
|
|
|
|
2014-12-11 21:15:04 +00:00
|
|
|
typedef enum _RT_USB_WVALUE {
|
2013-05-08 21:45:39 +00:00
|
|
|
RT_USB_RESET_MASK = 1,
|
|
|
|
RT_USB_SLEEP_MASK = 2,
|
|
|
|
RT_USB_USB_HRCPWM = 3,
|
|
|
|
RT_USB_LDO = 4,
|
|
|
|
RT_USB_BOOT_TYPE = 5
|
2014-12-11 21:15:04 +00:00
|
|
|
} RT_USB_WVALUE;
|
|
|
|
|
2013-05-08 21:45:39 +00:00
|
|
|
#endif
|