patch-2.2.8 linux/include/asm-arm/leds.h
Next file: linux/include/asm-arm/memc.h
Previous file: linux/include/asm-arm/irq.h
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Sat May 8 11:06:57 1999
- Orig file:
v2.2.7/linux/include/asm-arm/leds.h
- Orig date:
Fri Jan 8 22:36:22 1999
diff -u --recursive --new-file v2.2.7/linux/include/asm-arm/leds.h linux/include/asm-arm/leds.h
@@ -10,15 +10,32 @@
#ifndef ASM_ARM_LEDS_H
#define ASM_ARM_LEDS_H
+#include <linux/config.h>
+
typedef enum {
led_idle_start,
led_idle_end,
led_timer,
led_start,
- led_stop
+ led_stop,
+ led_claim, /* override idle & timer leds */
+ led_release, /* restore idle & timer leds */
+ led_green_on,
+ led_green_off,
+ led_amber_on,
+ led_amber_off,
+ led_red_on,
+ led_red_off
} led_event_t;
/* Use this routine to handle LEDs */
-extern void leds_event(led_event_t);
+
+#ifdef CONFIG_LEDS
+extern void (*leds_event)(led_event_t);
+#define set_leds_event(r) leds_event = r
+#else
+#define leds_event(e)
+#define set_leds_event(r)
+#endif
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)