Merge master.kernel.org:/pub/scm/linux/kernel/git/perex/alsa-current
[linux-2.6] / include / asm-arm26 / 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 #include <linux/config.h>
17
18 typedef enum {
19         led_idle_start,
20         led_idle_end,
21         led_timer,
22         led_start,
23         led_stop,
24         led_claim,              /* override idle & timer leds */
25         led_release,            /* restore idle & timer leds */
26         led_start_timer_mode,
27         led_stop_timer_mode,
28         led_green_on,
29         led_green_off,
30         led_amber_on,
31         led_amber_off,
32         led_red_on,
33         led_red_off,
34         led_blue_on,
35         led_blue_off,
36         /*
37          * I want this between led_timer and led_start, but
38          * someone has decided to export this to user space
39          */
40         led_halted
41 } led_event_t;
42
43 /* Use this routine to handle LEDs */
44
45 #ifdef CONFIG_LEDS
46 extern void (*leds_event)(led_event_t);
47 #else
48 #define leds_event(e)
49 #endif
50
51 #endif