cpu_acpi.h revision 4b3651bda421ca87fe4c05950903b87abb7c8525
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _CPU_ACPI_H
#define _CPU_ACPI_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#define CPU_ACPI_NONE_CACHED 0x00
#define CPU_ACPI_PCT_CACHED 0x01
#define CPU_ACPI_PSS_CACHED 0x02
#define CPU_ACPI_PSD_CACHED 0x04
#define CPU_ACPI_PPC_CACHED 0x08
/*
* Container for _PSD information
*/
typedef struct cpu_acpi_psd
{
/*
* Container for _PCT information
*/
typedef struct cpu_acpi_pct
{
/*
* Containers for _PSS information
*/
typedef struct cpu_acpi_pstate
{
typedef struct cpu_acpi_pstates {
typedef int cpu_acpi_ppc_t;
/*
* Container for cached ACPI data.
*/
typedef struct cpu_acpi_state {
typedef cpu_acpi_state_t *cpu_acpi_handle_t;
extern void cpu_acpi_fini(cpu_acpi_handle_t);
extern int cpu_acpi_cache_pstates(cpu_acpi_handle_t);
extern int cpu_acpi_cache_pct(cpu_acpi_handle_t);
extern int cpu_acpi_cache_psd(cpu_acpi_handle_t);
extern void cpu_acpi_cache_ppc(cpu_acpi_handle_t);
extern int cpu_acpi_cache_data(cpu_acpi_handle_t);
extern void cpu_acpi_install_ppc_handler(cpu_acpi_handle_t,
uint32_t *);
extern void cpu_acpi_free_speeds(int *, uint_t);
#ifdef __cplusplus
}
#endif
#endif /* _CPU_ACPI_H */