patch-2.4.0-test9 linux/arch/arm/kernel/leds-ftvpci.c
Next file: linux/arch/arm/kernel/leds-sa1100.c
Previous file: linux/arch/arm/kernel/leds-footbridge.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Mon Sep 18 15:15:25 2000
- Orig file:
v2.4.0-test8/linux/arch/arm/kernel/leds-ftvpci.c
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.4.0-test8/linux/arch/arm/kernel/leds-ftvpci.c linux/arch/arm/kernel/leds-ftvpci.c
@@ -0,0 +1,31 @@
+/*
+ * linux/arch/arm/kernel/leds-ftvpci.c
+ *
+ * Copyright (C) 1999 FutureTV Labs Ltd
+ */
+
+#include <linux/module.h>
+
+#include <asm/hardware.h>
+#include <asm/leds.h>
+#include <asm/system.h>
+#include <asm/io.h>
+
+static void ftvpci_leds_event(led_event_t ledevt)
+{
+ static int led_state = 0;
+
+ switch(ledevt) {
+ case led_timer:
+ led_state ^= 1;
+ raw_writeb(0x1a | led_state, INTCONT_BASE);
+ break;
+
+ default:
+ break;
+ }
+}
+
+void (*leds_event)(led_event_t) = ftvpci_leds_event;
+
+EXPORT_SYMBOL(leds_event);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)