xref: /freebsd/sys/dev/led/led.h (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
1 /*-
2  * ----------------------------------------------------------------------------
3  * "THE BEER-WARE LICENSE" (Revision 42):
4  * <phk@FreeBSD.org> wrote this file.  As long as you retain this notice you
5  * can do whatever you want with this stuff. If we meet some day, and you think
6  * this stuff is worth it, you can buy me a beer in return.   Poul-Henning Kamp
7  * ----------------------------------------------------------------------------
8  */
9 
10 #ifndef _DEV_LED_H
11 #define _DEV_LED_H
12 
13 typedef	void led_t(void *, int);
14 
15 struct cdev *led_create_state(led_t *, void *, char const *, int);
16 struct cdev *led_create(led_t *, void *, char const *);
17 void	led_destroy(struct cdev *);
18 
19 int	led_set(char const *, char const *);
20 
21 #endif
22