patch-2.1.106 linux/include/asm-m68k/blinken.h
Next file: linux/include/asm-m68k/bootinfo.h
Previous file: linux/include/asm-m68k/bitops.h
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Sat Jun 13 13:14:33 1998
- Orig file:
v2.1.105/linux/include/asm-m68k/blinken.h
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.1.105/linux/include/asm-m68k/blinken.h linux/include/asm-m68k/blinken.h
@@ -0,0 +1,27 @@
+/*
+** asm/blinken.h -- m68k blinkenlights support (currently hp300 only)
+**
+** (c) 1998 Phil Blundell <philb@gnu.org>
+**
+** This file is subject to the terms and conditions of the GNU General Public
+** License. See the file COPYING in the main directory of this archive
+** for more details.
+**
+*/
+
+#ifndef _M68K_BLINKEN_H
+#define _M68K_BLINKEN_H
+
+#include <asm/setup.h>
+
+#define HP300_LEDS 0xf001ffff
+
+static __inline__ void blinken_leds(int x)
+{
+ if (MACH_IS_HP300)
+ {
+ *((volatile unsigned char *)HP300_LEDS) = (x);
+ }
+}
+
+#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov