coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
turbo.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef _CPU_INTEL_TURBO_H
4
#define _CPU_INTEL_TURBO_H
5
6
#define CPUID_LEAF_PM 6
7
#define PM_CAP_TURBO_MODE (1 << 1)
8
9
/* Disable the Monitor Mwait FSM feature */
10
#define MONITOR_MWAIT_DIS_MASK 0x40000
11
12
#define H_MISC_DISABLE_TURBO (1 << 6)
13
14
enum
{
15
TURBO_UNKNOWN
,
16
TURBO_UNAVAILABLE
,
17
TURBO_DISABLED
,
18
TURBO_ENABLED
,
19
};
20
21
/* Return current turbo state */
22
int
get_turbo_state
(
void
);
23
24
/* Enable turbo */
25
void
enable_turbo
(
void
);
26
27
/* Disable turbo */
28
void
disable_turbo
(
void
);
29
30
#endif
get_turbo_state
int get_turbo_state(void)
Definition:
turbo.c:75
disable_turbo
void disable_turbo(void)
Definition:
turbo.c:108
enable_turbo
void enable_turbo(void)
Definition:
turbo.c:89
TURBO_UNKNOWN
@ TURBO_UNKNOWN
Definition:
turbo.h:15
TURBO_UNAVAILABLE
@ TURBO_UNAVAILABLE
Definition:
turbo.h:16
TURBO_DISABLED
@ TURBO_DISABLED
Definition:
turbo.h:17
TURBO_ENABLED
@ TURBO_ENABLED
Definition:
turbo.h:18
src
include
cpu
intel
turbo.h
Generated by
1.9.1