[PATCH] Yet more posix-cpu-timer fixes
[linux-2.6/mini2440.git] / include / asm-arm26 / leds.h
blob88ce4124f85456d65705e3759b1231dd52b612cb
1 /*
2 * linux/include/asm-arm/leds.h
4 * Copyright (C) 1998 Russell King
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.
10 * Event-driven interface for LEDs on machines
11 * Added led_start and led_stop- Alex Holden, 28th Dec 1998.
13 #ifndef ASM_ARM_LEDS_H
14 #define ASM_ARM_LEDS_H
16 #include <linux/config.h>
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,
37 * I want this between led_timer and led_start, but
38 * someone has decided to export this to user space
40 led_halted
41 } led_event_t;
43 /* Use this routine to handle LEDs */
45 #ifdef CONFIG_LEDS
46 extern void (*leds_event)(led_event_t);
47 #else
48 #define leds_event(e)
49 #endif
51 #endif