Plan 9 from Bell Labs’s /usr/web/sources/contrib/quanstro/root/sys/src/9/port/led.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


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);

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.