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