led.c (d3ce8327194c0bcf742f2e03b5b0dc8f8cfe7f6b) | led.c (13e403fdeadd26f9748ba83ea50ee271fbfc862a) |
---|---|
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 * --- 26 unchanged lines hidden (view full) --- 35 char *ptr; 36 int count; 37 time_t last_second; 38}; 39 40static struct unrhdr *led_unit; 41static struct mtx led_mtx; 42static struct sx led_sx; | 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 * --- 26 unchanged lines hidden (view full) --- 35 char *ptr; 36 int count; 37 time_t last_second; 38}; 39 40static struct unrhdr *led_unit; 41static struct mtx led_mtx; 42static struct sx led_sx; |
43static LIST_HEAD(, ledsc) led_list = LIST_HEAD_INITIALIZER(&led_list); | 43static LIST_HEAD(, ledsc) led_list = LIST_HEAD_INITIALIZER(led_list); |
44static struct callout led_ch; 45 46static MALLOC_DEFINE(M_LED, "LED", "LED driver"); 47 48static void 49led_timeout(void *p) 50{ 51 struct ledsc *sc; --- 257 unchanged lines hidden --- | 44static struct callout led_ch; 45 46static MALLOC_DEFINE(M_LED, "LED", "LED driver"); 47 48static void 49led_timeout(void *p) 50{ 51 struct ledsc *sc; --- 257 unchanged lines hidden --- |