* added 0.99 linux version
[mascara-docs.git] / i386 / linux / linux-2.3.21 / include / asm-arm / leds.h
blob84a67f7679b95856156b74f0e8cc703e8a148f9a
1 /*
2 * include/asm-arm/leds.h
4 * Copyright (C) 1998 Russell King
6 * Event-driven interface for LEDs on machines
8 * Added led_start and led_stop- Alex Holden, 28th Dec 1998.
9 */
10 #ifndef ASM_ARM_LEDS_H
11 #define ASM_ARM_LEDS_H
13 #include <linux/config.h>
15 typedef enum {
16 led_idle_start,
17 led_idle_end,
18 led_timer,
19 led_start,
20 led_stop,
21 led_claim, /* override idle & timer leds */
22 led_release, /* restore idle & timer leds */
23 led_green_on,
24 led_green_off,
25 led_amber_on,
26 led_amber_off,
27 led_red_on,
28 led_red_off
29 } led_event_t;
31 /* Use this routine to handle LEDs */
33 #ifdef CONFIG_LEDS
34 extern void (*leds_event)(led_event_t);
35 #define set_leds_event(r) leds_event = r
36 #else
37 #define leds_event(e)
38 #define set_leds_event(r)
39 #endif
41 #endif