xref: /openbsd-src/sys/arch/sparc64/dev/clkbrdvar.h (revision a244e471186c0b396ce9b79591d679dad998d9f0)
1*a244e471Skettenis /*	$OpenBSD: clkbrdvar.h,v 1.3 2008/01/20 16:41:17 kettenis Exp $	*/
203c059c8Sjason 
303c059c8Sjason /*
403c059c8Sjason  * Copyright (c) 2004 Jason L. Wright (jason@thought.net)
503c059c8Sjason  * All rights reserved.
603c059c8Sjason  *
703c059c8Sjason  * Redistribution and use in source and binary forms, with or without
803c059c8Sjason  * modification, are permitted provided that the following conditions
903c059c8Sjason  * are met:
1003c059c8Sjason  * 1. Redistributions of source code must retain the above copyright
1103c059c8Sjason  *    notice, this list of conditions and the following disclaimer.
1203c059c8Sjason  * 2. Redistributions in binary form must reproduce the above copyright
1303c059c8Sjason  *    notice, this list of conditions and the following disclaimer in the
1403c059c8Sjason  *    documentation and/or other materials provided with the distribution.
1503c059c8Sjason  *
1603c059c8Sjason  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1703c059c8Sjason  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1803c059c8Sjason  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1903c059c8Sjason  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
2003c059c8Sjason  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
2103c059c8Sjason  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
2203c059c8Sjason  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2303c059c8Sjason  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
2403c059c8Sjason  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
2503c059c8Sjason  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2603c059c8Sjason  * POSSIBILITY OF SUCH DAMAGE.
2703c059c8Sjason  */
2803c059c8Sjason 
2903c059c8Sjason struct clkbrd_softc {
3003c059c8Sjason 	struct device sc_dv;
3103c059c8Sjason 	bus_space_tag_t sc_bt;
3203c059c8Sjason 	bus_space_handle_t sc_creg;
3303c059c8Sjason 	bus_space_handle_t sc_vreg;
3403c059c8Sjason 	int sc_node;
3503c059c8Sjason 	int sc_has_vreg;
369f31f4f7Sjason 	struct blink_led sc_blink;
37*a244e471Skettenis 	struct ksensor sc_sensor;
38*a244e471Skettenis 	struct ksensordev sc_sensordev;
3903c059c8Sjason };
40