xref: /netbsd-src/sys/arch/vax/include/leds.h (revision ce099b40997c43048fb78bd578195f81d2456523)
1*ce099b40Smartin /*	$NetBSD: leds.h,v 1.2 2008/04/28 20:23:39 martin Exp $	*/
2aa13a127Sragge 
3aa13a127Sragge /*-
4aa13a127Sragge  * Copyright (c) 1997 The NetBSD Foundation, Inc.
5aa13a127Sragge  * All rights reserved.
6aa13a127Sragge  *
7aa13a127Sragge  * This code is derived from software contributed to The NetBSD Foundation
8aa13a127Sragge  * by Gordon W. Ross and der Mouse.
9aa13a127Sragge  *
10aa13a127Sragge  * Redistribution and use in source and binary forms, with or without
11aa13a127Sragge  * modification, are permitted provided that the following conditions
12aa13a127Sragge  * are met:
13aa13a127Sragge  * 1. Redistributions of source code must retain the above copyright
14aa13a127Sragge  *    notice, this list of conditions and the following disclaimer.
15aa13a127Sragge  * 2. Redistributions in binary form must reproduce the above copyright
16aa13a127Sragge  *    notice, this list of conditions and the following disclaimer in the
17aa13a127Sragge  *    documentation and/or other materials provided with the distribution.
18aa13a127Sragge  *
19aa13a127Sragge  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20aa13a127Sragge  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21aa13a127Sragge  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22aa13a127Sragge  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23aa13a127Sragge  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24aa13a127Sragge  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25aa13a127Sragge  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26aa13a127Sragge  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27aa13a127Sragge  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28aa13a127Sragge  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29aa13a127Sragge  * POSSIBILITY OF SUCH DAMAGE.
30aa13a127Sragge  */
31aa13a127Sragge 
32aa13a127Sragge /* Data structure supported by /dev/leds */
33aa13a127Sragge 
34aa13a127Sragge struct led_patterns {
35aa13a127Sragge 	u_char divisor;		/* divides 100 Hz clock (0 means 256). */
36aa13a127Sragge 	u_char patlen;		/* patterns to use (0 means 256). */
37aa13a127Sragge 	u_char pat[256];	/* the patters... */
38aa13a127Sragge };
39aa13a127Sragge 
40aa13a127Sragge #ifdef	_KERNEL
41aa13a127Sragge void	ledsattach(int);
42aa13a127Sragge void	leds_intr(void);
43aa13a127Sragge int	leds_uio(struct uio *uio);
44aa13a127Sragge #endif	/* _KERNEL */
45aa13a127Sragge 
46