Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394...
[linux-2.6] / include / asm-arm / leds.h
1 /*
2  *  linux/include/asm-arm/leds.h
3  *
4  *  Copyright (C) 1998 Russell King
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  *  Event-driven interface for LEDs on machines
11  *  Added led_start and led_stop- Alex Holden, 28th Dec 1998.
12  */
13 #ifndef ASM_ARM_LEDS_H
14 #define ASM_ARM_LEDS_H
15
16
17 typedef enum {
18         led_idle_start,
19         led_idle_end,
20         led_timer,
21         led_start,
22         led_stop,
23         led_claim,              /* override idle & timer leds */
24         led_release,            /* restore idle & timer leds */
25         led_start_timer_mode,
26         led_stop_timer_mode,
27         led_green_on,
28         led_green_off,
29         led_amber_on,
30         led_amber_off,
31         led_red_on,
32         led_red_off,
33         led_blue_on,
34         led_blue_off,
35         /*
36          * I want this between led_timer and led_start, but
37          * someone has decided to export this to user space
38          */
39         led_halted
40 } led_event_t;
41
42 /* Use this routine to handle LEDs */
43
44 #ifdef CONFIG_LEDS
45 extern void (*leds_event)(led_event_t);
46 #else
47 #define leds_event(e)
48 #endif
49
50 #endif