cpu_acpi.c (66d746fe) cpu_acpi.c (aa2aa9a6)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 1057 unchanged lines hidden (view full) ---

1066 return (CPU_ACPI_CSTATES_COUNT(handle));
1067 else
1068 return (1);
1069}
1070
1071void
1072cpu_acpi_set_register(uint32_t bitreg, uint32_t value)
1073{
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 1057 unchanged lines hidden (view full) ---

1066 return (CPU_ACPI_CSTATES_COUNT(handle));
1067 else
1068 return (1);
1069}
1070
1071void
1072cpu_acpi_set_register(uint32_t bitreg, uint32_t value)
1073{
1074 AcpiSetRegister(bitreg, value);
1074 AcpiWriteBitRegister(bitreg, value);
1075}
1076
1077void
1078cpu_acpi_get_register(uint32_t bitreg, uint32_t *value)
1079{
1075}
1076
1077void
1078cpu_acpi_get_register(uint32_t bitreg, uint32_t *value)
1079{
1080 AcpiGetRegister(bitreg, value);
1080 AcpiReadBitRegister(bitreg, value);
1081}
1082
1083/*
1084 * Map the dip to an ACPI handle for the device.
1085 */
1086cpu_acpi_handle_t
1087cpu_acpi_init(cpu_t *cp)
1088{

--- 22 unchanged lines hidden ---
1081}
1082
1083/*
1084 * Map the dip to an ACPI handle for the device.
1085 */
1086cpu_acpi_handle_t
1087cpu_acpi_init(cpu_t *cp)
1088{

--- 22 unchanged lines hidden ---