Debian Codegraph @

src/mainboard/lenovo/t60/cstates.c

raw symbols SCIP
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 }