Staging: hv: mousevsc: Cleanup alloc_input_device()
[zen-stable.git] / arch / arm / include / asm / leds.h
blobc545739f39b7e5761b7611431fd9db55183a5841
1 /*
2 * arch/arm/include/asm/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
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,
36 * I want this between led_timer and led_start, but
37 * someone has decided to export this to user space
39 led_halted
40 } led_event_t;
42 /* Use this routine to handle LEDs */
44 #ifdef CONFIG_LEDS
45 extern void (*leds_event)(led_event_t);
46 #else
47 #define leds_event(e)
48 #endif
50 #endif