xref: /netbsd-src/sys/arch/hpcmips/dev/plumpowervar.h (revision ce099b40997c43048fb78bd578195f81d2456523)
1*ce099b40Smartin /*	$NetBSD: plumpowervar.h,v 1.3 2008/04/28 20:23:21 martin Exp $ */
29a758aabSuch 
3478ab76cSuch /*-
4478ab76cSuch  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
59a758aabSuch  * All rights reserved.
69a758aabSuch  *
7478ab76cSuch  * This code is derived from software contributed to The NetBSD Foundation
8478ab76cSuch  * by UCHIYAMA Yasushi.
9478ab76cSuch  *
109a758aabSuch  * Redistribution and use in source and binary forms, with or without
119a758aabSuch  * modification, are permitted provided that the following conditions
129a758aabSuch  * are met:
139a758aabSuch  * 1. Redistributions of source code must retain the above copyright
149a758aabSuch  *    notice, this list of conditions and the following disclaimer.
15478ab76cSuch  * 2. Redistributions in binary form must reproduce the above copyright
16478ab76cSuch  *    notice, this list of conditions and the following disclaimer in the
17478ab76cSuch  *    documentation and/or other materials provided with the distribution.
189a758aabSuch  *
19478ab76cSuch  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20478ab76cSuch  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21478ab76cSuch  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22478ab76cSuch  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23478ab76cSuch  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24478ab76cSuch  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25478ab76cSuch  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26478ab76cSuch  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27478ab76cSuch  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28478ab76cSuch  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29478ab76cSuch  * POSSIBILITY OF SUCH DAMAGE.
309a758aabSuch  */
319a758aabSuch 
329a758aabSuch /* Logical power source # */
339a758aabSuch #define	PLUM_PWR_LCD		0
349a758aabSuch #define	PLUM_PWR_BKL		1
359a758aabSuch #define PLUM_PWR_IO5		2
369a758aabSuch #define PLUM_PWR_EXTPW0		3
379a758aabSuch #define PLUM_PWR_EXTPW1		4
389a758aabSuch #define PLUM_PWR_EXTPW2		5
399a758aabSuch #define PLUM_PWR_USB		6
409a758aabSuch #define PLUM_PWR_SM		7
419a758aabSuch #define PLUM_PWR_PCC1		8
429a758aabSuch #define PLUM_PWR_PCC2		9
439a758aabSuch 
44478ab76cSuch void 	*plum_power_establish(plum_chipset_tag_t, int);
45478ab76cSuch void	plum_power_disestablish(plum_chipset_tag_t, int);
46478ab76cSuch void	plum_power_ioreset(plum_chipset_tag_t);
479a758aabSuch 
48