vserver 1.9.5.x5
[linux-2.6.git] / include / asm-m68k / blinken.h
index a6b60de..1a749cf 100644 (file)
 #define _M68K_BLINKEN_H
 
 #include <asm/setup.h>
+#include <asm/io.h>
 
 #define HP300_LEDS             0xf001ffff
 
-static __inline__ void blinken_leds(int x)
+extern unsigned char ledstate;
+
+static __inline__ void blinken_leds(int on, int off)
 {
-  if (MACH_IS_HP300)
-  {
-    *((volatile unsigned char *)HP300_LEDS) = (x);
-  }
+       if (MACH_IS_HP300)
+       {
+               ledstate |= on;
+               ledstate &= ~off;
+               out_8(HP300_LEDS, ~ledstate);
+       }
 }
 
 #endif