patch-2.1.121 linux/arch/arm/kernel/leds-ebsa110.c
Next file: linux/arch/arm/kernel/leds-ebsa285.c
Previous file: linux/arch/arm/kernel/irq.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Sun Sep 6 10:44:47 1998
- Orig file:
v2.1.120/linux/arch/arm/kernel/leds-ebsa110.c
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.1.120/linux/arch/arm/kernel/leds-ebsa110.c linux/arch/arm/kernel/leds-ebsa110.c
@@ -0,0 +1,30 @@
+/*
+ * arch/arm/kernel/leds-ebsa110.c
+ *
+ * Copyright (C) 1998 Russell King
+ *
+ * EBSA-110 LED control routines. We use the led as follows:
+ *
+ * - Red - toggles state every 50 timer interrupts
+ */
+#include <asm/hardware.h>
+#include <asm/leds.h>
+#include <asm/system.h>
+
+void leds_event(led_event_t ledevt)
+{
+ unsigned long flags;
+
+ save_flags_cli(flags);
+
+ switch(ledevt) {
+ case led_timer:
+ *(volatile unsigned char *)0xf2400000 ^= 128;
+ break;
+
+ default:
+ break;
+ }
+
+ restore_flags(flags);
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov