Go to the documentation of this file.
12 #ifndef __LINUX_LEDS_H_INCLUDED
13 #define __LINUX_LEDS_H_INCLUDED
15 #include <linux/list.h>
39 #define LED_SUSPENDED (1 << 0)
41 #define LED_CORE_SUSPENDRESUME (1 << 16)
42 #define LED_BLINK_ONESHOT (1 << 17)
43 #define LED_BLINK_ONESHOT_STOP (1 << 18)
44 #define LED_BLINK_INVERT (1 << 19)
62 unsigned long *delay_on,
63 unsigned long *delay_off);
76 #ifdef CONFIG_LEDS_TRIGGERS
110 unsigned long *delay_on,
111 unsigned long *delay_off);
127 unsigned long *delay_on,
128 unsigned long *delay_off,
145 #ifdef CONFIG_LEDS_TRIGGERS
147 #define TRIG_NAME_MAX 50
168 #define DEFINE_LED_TRIGGER(x) static struct led_trigger *x;
169 #define DEFINE_LED_TRIGGER_GLOBAL(x) struct led_trigger *x;
176 unsigned long *delay_on,
177 unsigned long *delay_off);
179 unsigned long *delay_on,
180 unsigned long *delay_off,
186 #define DEFINE_LED_TRIGGER(x)
187 #define DEFINE_LED_TRIGGER_GLOBAL(x)
188 #define led_trigger_register_simple(x, y) do {} while(0)
189 #define led_trigger_unregister_simple(x) do {} while(0)
190 #define led_trigger_event(x, y) do {} while(0)
195 #ifdef CONFIG_LEDS_TRIGGER_IDE_DISK
198 #define ledtrig_ide_activity() do {} while(0)
225 #define LEDS_GPIO_DEFSTATE_OFF 0
226 #define LEDS_GPIO_DEFSTATE_ON 1
227 #define LEDS_GPIO_DEFSTATE_KEEP 2
233 #define GPIO_LED_NO_BLINK_LOW 0
234 #define GPIO_LED_NO_BLINK_HIGH 1
235 #define GPIO_LED_BLINK 2
237 unsigned long *delay_on,
238 unsigned long *delay_off);
251 #ifdef CONFIG_LEDS_TRIGGER_CPU