1/***************************************************************************
2***
3***    Copyright 2007  Hon Hai Precision Ind. Co. Ltd.
4***    All Rights Reserved.
5***    No portions of this material shall be reproduced in any form without the
6***    written permission of Hon Hai Precision Ind. Co. Ltd.
7***
8***    All information contained in this document is Hon Hai Precision Ind.
9***    Co. Ltd. company private, proprietary, and trade secret property and
10***    are protected by international intellectual property laws and treaties.
11***
12****************************************************************************/
13
14#ifndef __WPS_LED_H__
15#define __WPS_LED_H__
16
17
18#define WPS_LED_MAJOR_NUM       253
19
20#define DEV_WPS_LED             "/dev/wps_led"
21#define WPS_LED_IOCTL_NUM       'W'
22
23#define WPS_LED_BLINK_NORMAL   _IOWR(WPS_LED_IOCTL_NUM, 0, int *)
24#define WPS_LED_BLINK_QUICK    _IOWR(WPS_LED_IOCTL_NUM, 1, int *)
25#define WPS_LED_BLINK_OFF      _IOWR(WPS_LED_IOCTL_NUM, 2, int *)
26#define WPS_LED_CHANGE_GREEN   _IOWR(WPS_LED_IOCTL_NUM, 3, int *)
27#define WPS_LED_CHANGE_AMBER   _IOWR(WPS_LED_IOCTL_NUM, 4, int *)
28#define WPS_LED_BLINK_QUICK2   _IOWR(WPS_LED_IOCTL_NUM, 5, int *)
29
30#define WLAN_N_RADIO_ON        _IOWR(WPS_LED_IOCTL_NUM, 6, int *)
31#define WLAN_N_RADIO_OFF       _IOWR(WPS_LED_IOCTL_NUM, 7, int *)
32#define WLAN_G_RADIO_ON        _IOWR(WPS_LED_IOCTL_NUM, 8, int *)
33#define WLAN_G_RADIO_OFF       _IOWR(WPS_LED_IOCTL_NUM, 9, int *)
34
35#define USB_LED_STATE_ON       _IOWR(WPS_LED_IOCTL_NUM, 10, int *)
36#define USB_LED_STATE_OFF      _IOWR(WPS_LED_IOCTL_NUM, 11, int *)
37
38#define DOME_N_RADIO_ON        _IOWR(WPS_LED_IOCTL_NUM, 12, int *)
39#define DOME_N_RADIO_OFF       _IOWR(WPS_LED_IOCTL_NUM, 13, int *)
40#define DOME_G_RADIO_ON        _IOWR(WPS_LED_IOCTL_NUM, 14, int *)
41#define DOME_G_RADIO_OFF       _IOWR(WPS_LED_IOCTL_NUM, 15, int *)
42#if defined(WNDR4500REV) || defined(R4500)
43/* For USB2 LED */
44#define USB2_LED_STATE_ON      _IOWR(WPS_LED_IOCTL_NUM, 16, int *)
45#define USB2_LED_STATE_OFF     _IOWR(WPS_LED_IOCTL_NUM, 17, int *)
46#endif /* WNDR4500REV */
47
48#define WPS_LED_BLINK_AP_LOCKDOWN   _IOWR(WPS_LED_IOCTL_NUM, 18, int *)
49
50#define WPS_LED_STOP_NO         (0)
51#define WPS_LED_STOP_RADIO_OFF  (1)
52#define WPS_LED_STOP_DISABLED   (2)
53
54/* No DOME_LED */
55#define WPS_LED_GPIO           (1)
56#endif