coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cstates.c File Reference
Include dependency graph for cstates.c:

Go to the source code of this file.

Macros

#define MWAIT_RES(state, sub_state)
 

Functions

int get_cst_entries (const acpi_cstate_t **entries)
 

Variables

static const acpi_cstate_t cst_entries []
 

Macro Definition Documentation

◆ MWAIT_RES

#define MWAIT_RES (   state,
  sub_state 
)
Value:
{ \
.space_id = ACPI_ADDRESS_SPACE_FIXED, \
.bit_offset = ACPI_FFIXEDHW_CLASS_MWAIT, \
.access_size = ACPI_ACCESS_SIZE_UNDEFINED, \
.addrl = (((state) << 4) | (sub_state)), \
.addrh = 0, \
}
#define ACPI_ACCESS_SIZE_UNDEFINED
Definition: acpi.h:126
#define ACPI_FFIXEDHW_VENDOR_INTEL
Definition: acpi.h:116
#define ACPI_FFIXEDHW_CLASS_MWAIT
Definition: acpi.h:119
#define ACPI_ADDRESS_SPACE_FIXED
Definition: acpi.h:115
state
Definition: raminit.c:1787

Definition at line 6 of file cstates.c.

Function Documentation

◆ get_cst_entries()

int get_cst_entries ( const acpi_cstate_t **  entries)

Definition at line 37 of file cstates.c.

References ARRAY_SIZE, and cst_entries.

Variable Documentation

◆ cst_entries

const acpi_cstate_t cst_entries[]
static
Initial value:
= {
{
.ctype = 1,
.latency = 1,
.power = 1000,
.resource = MWAIT_RES(0, 0),
},
{
.ctype = 2,
.latency = 1,
.power = 500,
.resource = MWAIT_RES(1, 0),
},
{
.ctype = 3,
.latency = 17,
.power = 250,
.resource = MWAIT_RES(2, 0),
},
}
#define MWAIT_RES(state, sub_state)
Definition: cstates.c:6

Definition at line 16 of file cstates.c.

Referenced by get_cst_entries().