xref: /illumos-gate/usr/src/uts/sun4/os/cpupm_mach.c (revision 0e751525)
17f606aceSMark Haywood /*
27f606aceSMark Haywood  * CDDL HEADER START
37f606aceSMark Haywood  *
47f606aceSMark Haywood  * The contents of this file are subject to the terms of the
57f606aceSMark Haywood  * Common Development and Distribution License (the "License").
67f606aceSMark Haywood  * You may not use this file except in compliance with the License.
77f606aceSMark Haywood  *
87f606aceSMark Haywood  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97f606aceSMark Haywood  * or http://www.opensolaris.org/os/licensing.
107f606aceSMark Haywood  * See the License for the specific language governing permissions
117f606aceSMark Haywood  * and limitations under the License.
127f606aceSMark Haywood  *
137f606aceSMark Haywood  * When distributing Covered Code, include this CDDL HEADER in each
147f606aceSMark Haywood  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157f606aceSMark Haywood  * If applicable, add the following below this CDDL HEADER, with the
167f606aceSMark Haywood  * fields enclosed by brackets "[]" replaced with your own identifying
177f606aceSMark Haywood  * information: Portions Copyright [yyyy] [name of copyright owner]
187f606aceSMark Haywood  *
197f606aceSMark Haywood  * CDDL HEADER END
207f606aceSMark Haywood  */
217f606aceSMark Haywood /*
22*0e751525SEric Saxe  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
237f606aceSMark Haywood  * Use is subject to license terms.
247f606aceSMark Haywood  */
257f606aceSMark Haywood 
26*0e751525SEric Saxe #include <sys/cpu_pm.h>
277f606aceSMark Haywood 
28*0e751525SEric Saxe /*
29*0e751525SEric Saxe  * CPU PM interfaces exposed to the CPU power manager
30*0e751525SEric Saxe  */
31*0e751525SEric Saxe /*ARGSUSED*/
32*0e751525SEric Saxe id_t
cpupm_plat_domain_id(struct cpu * cp,cpupm_dtype_t type)33*0e751525SEric Saxe cpupm_plat_domain_id(struct cpu *cp, cpupm_dtype_t type)
34*0e751525SEric Saxe {
35*0e751525SEric Saxe 	return (CPUPM_NO_DOMAIN);
36*0e751525SEric Saxe }
377f606aceSMark Haywood 
38*0e751525SEric Saxe /*ARGSUSED*/
39*0e751525SEric Saxe uint_t
cpupm_plat_state_enumerate(struct cpu * cp,cpupm_dtype_t type,cpupm_state_t * states)40*0e751525SEric Saxe cpupm_plat_state_enumerate(struct cpu *cp, cpupm_dtype_t type,
41*0e751525SEric Saxe     cpupm_state_t *states)
42*0e751525SEric Saxe {
43*0e751525SEric Saxe 	return (0);
447f606aceSMark Haywood }
457f606aceSMark Haywood 
46*0e751525SEric Saxe /*ARGSUSED*/
47*0e751525SEric Saxe int
cpupm_plat_change_state(struct cpu * cp,cpupm_state_t * state)48*0e751525SEric Saxe cpupm_plat_change_state(struct cpu *cp, cpupm_state_t *state)
49*0e751525SEric Saxe {
50*0e751525SEric Saxe 	return (-1);
51*0e751525SEric Saxe }
52