code: 9ferno

ref: b548687a8ed1d0a159c9d3f3f921d93bbb56908e
dir: /os/port/led.h/

View raw version
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);