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
>
4
#include <
southbridge/intel/i82801gx/i82801gx.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
}
get_cst_entries
int get_cst_entries(const acpi_cstate_t **entries)
Definition:
cstates.c:5
ARRAY_SIZE
#define ARRAY_SIZE(a)
Definition:
helpers.h:12
i82801gx.h
acpigen.h
DEFAULT_PMBASE
#define DEFAULT_PMBASE
Definition:
iomap.h:14
cst_entries
static const acpi_cstate_t cst_entries[]
Definition:
cstates.c:6
LV3
#define LV3
Definition:
pch.h:429
LV2
#define LV2
Definition:
pch.h:428
acpi_cstate
Definition:
acpi.h:983
src
mainboard
lenovo
t60
cstates.c
Generated by
1.9.1