cpu_acpi.c revision 511588bb13d2462265d682dc1cb7ba5c7a27a771
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * CDDL HEADER START
3e14f97f673e8a630f076077de35afdd43dc1587Roger A. Faulkner * The contents of this file are subject to the terms of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Common Development and Distribution License (the "License").
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * You may not use this file except in compliance with the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * See the License for the specific language governing permissions
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * and limitations under the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * When distributing Covered Code, include this CDDL HEADER in each
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * If applicable, add the following below this CDDL HEADER, with the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * fields enclosed by brackets "[]" replaced with your own identifying
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * information: Portions Copyright [yyyy] [name of copyright owner]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * CDDL HEADER END
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * List of the processor ACPI object types that are being used.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chintypedef enum cpu_acpi_obj {
typedef struct cpu_acpi_obj_attr {
char *name;
goto out;
goto out;
goto out;
goto out;
goto out;
goto out;
ret = 0;
out:
return (ret);
int ret;
return (ret);
int ret;
return (ret);
int number;
goto out;
goto out;
goto out;
goto out;
ret = 0;
out:
return (ret);
int ret;
if (ret == 0)
return (ret);
int ret;
if (ret == 0)
return (ret);
int ret;
if (ret == 0)
return (ret);
ACPI_OBJECT *q, *l;
KM_SLEEP);
for (j = 0; j < CPU_ACPI_PSS_CNT; j++)
pstate++;
cnt--;
ACPI_OBJECT *q, *l;
KM_SLEEP);
for (j = 0; j < CPU_ACPI_TSS_CNT; j++)
tstate++;
cnt--;
int cnt;
goto out;
goto out;
cnt = 0;
goto out;
for (j = 0; j < fcnt; j++) {
goto out;
if (eot) {
goto out;
goto out;
cnt++;
if (cnt == 0)
goto out;
ret = 0;
out:
return (ret);
int ret;
if (ret == 0)
return (ret);
int ret;
if (ret == 0)
return (ret);
goto out;
*pc = 0;
ret = 0;
out:
return (ret);
int ret;
if (ret == 0)
int ret;
if (ret == 0)
int i, count;
goto out;
goto out;
goto out;
p = cstate;
if (cstate == p) {
cstate++;
p = cstate++;
count++;
goto out;
goto out;
ret = 0;
out:
return (ret);
int, PCT_OBJ);
int, PSS_OBJ);
int, PSD_OBJ);
int ret;
int, PTC_OBJ);
int, TSS_OBJ);
return (ret);
int, TSD_OBJ);
int ret;
int, CST_OBJ);
return (ret);
int, CSD_OBJ);
int ret = 0;
for (i = 0; i < count; i++)
return (ret);
int *hspeeds;
for (i = 0; i < nspeeds; i++) {
pstate++;
return (nspeeds);
return (NULL);
return (handle);
if (handle)