summaryrefslogtreecommitdiff
path: root/sys/src/9/port/led.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-07-10 14:14:23 +0200
committercinap_lenrek <cinap_lenrek@localhost>2011-07-10 14:14:23 +0200
commitc2fc2fad133d51bc7dc86af015a20aed11a1817f (patch)
tree8366e17787c48975b1ce1401c731d80763c94629 /sys/src/9/port/led.h
parentae00ac74659e69a1aee9dc3e3ab20d5ec70b8126 (diff)
merge sd changes from 9atom
Diffstat (limited to 'sys/src/9/port/led.h')
-rw-r--r--sys/src/9/port/led.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/sys/src/9/port/led.h b/sys/src/9/port/led.h
new file mode 100644
index 000000000..99173c5d8
--- /dev/null
+++ b/sys/src/9/port/led.h
@@ -0,0 +1,26 @@
+typedef struct Ledport Ledport;
+
+struct Ledport {
+ uchar nled;
+ uchar led;
+ ushort ledbits; /* implementation dependent */
+};
+
+/* http://en.wikipedia.org/wiki/IBPI */
+enum {
+ Ibpinone,
+ Ibpinormal,
+ Ibpilocate,
+ Ibpifail,
+ Ibpirebuild,
+ Ibpipfa,
+ Ibpispare,
+ Ibpicritarray,
+ Ibpifailarray,
+ Ibpilast,
+};
+
+char *ledname(int);
+int name2led(char*);
+long ledr(Ledport*, Chan*, void*, long, vlong);
+long ledw(Ledport*, Chan*, void*, long, vlong);