coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cstates.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <acpi/acpigen.h>
5 
6 static const acpi_cstate_t cst_entries[] = {
7  { 1, 1, 1000, { 0x7f, 1, 2, 0, 1, 0 } },
8  { 2, 1, 500, { 0x01, 8, 0, 0, DEFAULT_PMBASE + LV2, 0 } },
9  { 3, 17, 250, { 0x01, 8, 0, 0, DEFAULT_PMBASE + LV3, 0 } },
10 };
11 
12 int get_cst_entries(const acpi_cstate_t **entries)
13 {
14  *entries = cst_entries;
15  return ARRAY_SIZE(cst_entries);
16 }
int get_cst_entries(const acpi_cstate_t **entries)
Definition: cstates.c:5
#define ARRAY_SIZE(a)
Definition: helpers.h:12
#define DEFAULT_PMBASE
Definition: iomap.h:14
static const acpi_cstate_t cst_entries[]
Definition: cstates.c:6
#define LV3
Definition: pch.h:429
#define LV2
Definition: pch.h:428