]> git.lizzy.rs Git - plan9front.git/blob - sys/src/9/port/led.h
syscallfmt: use up->syserrstr instead of up->errstr (import from sources)
[plan9front.git] / sys / src / 9 / port / led.h
1 typedef struct Ledport Ledport;
2
3 struct Ledport {
4         uchar   nled;
5         uchar   led;
6         ushort  ledbits;                /* implementation dependent */
7 };
8
9 /* http://en.wikipedia.org/wiki/IBPI */
10 enum {
11         Ibpinone,
12         Ibpinormal,
13         Ibpilocate,
14         Ibpifail,
15         Ibpirebuild,
16         Ibpipfa,
17         Ibpispare,
18         Ibpicritarray,
19         Ibpifailarray,
20         Ibpilast,
21 };
22
23 char    *ledname(int);
24 int     name2led(char*);
25 long    ledr(Ledport*, Chan*, void*, long, vlong);
26 long    ledw(Ledport*, Chan*, void*, long, vlong);