Debian Codegraph @

src/southbridge/intel/lynxpoint/cfr.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 /*
4 * CFR enums and structs for sb/lynxpoint
5 */
6
7 #ifndef _LYNXPOINT_CFR_H_
8 #define _LYNXPOINT_CFR_H_
9
10 #include <drivers/option/cfr_frontend.h>
11 #include "pch.h"
12
13 /* Power state after power loss */
14 static const struct sm_object power_on_after_fail = SM_DECLARE_ENUM({
15 .opt_name = "power_on_after_fail",
16 .ui_name = "Restore AC Power Loss",
17 .ui_helptext = "Specify what to do when power is re-applied after a power loss.",
18 .default_value = CONFIG_MAINBOARD_POWER_FAILURE_STATE,
19 .values = (const struct sm_enum_value[]) {
20 { "Power off (S5)", MAINBOARD_POWER_OFF },
21 { "Power on (S0)", MAINBOARD_POWER_ON },
22 { "Previous state", MAINBOARD_POWER_KEEP },
23 SM_ENUM_VALUE_END },
24 });
25
26 /* Intel ME State */
27 static const struct sm_object me_disable = SM_DECLARE_ENUM({
28 .opt_name = "me_disable",
29 .ui_name = "Intel Management Engine",
30 .ui_helptext = "Enable or disable the PCI/HECI interface of the Intel Management Engine",
31 .default_value = 0,
32 .values = (const struct sm_enum_value[]) {
33 { "Disabled", 1 },
34 { "Enabled", 0 },
35 SM_ENUM_VALUE_END },
36 });
37
38 enum {
39 NMI_OFF = 0,
40 NMI_ON,
41 };
42
43 /* Non-maskable interrupts */
44 static const struct sm_object nmi = SM_DECLARE_ENUM({
45 .opt_name = "nmi",
46 .ui_name = "Non-maskable Interrupts",
47 .ui_helptext = "Enable or disable non-maskable interrupts",
48 .default_value = NMI_OFF,
49 .values = (const struct sm_enum_value[]) {
50 { "Disabled", NMI_OFF },
51 { "Enabled", NMI_ON },
52 SM_ENUM_VALUE_END },
53 });
54
55 #endif /* _LYNXPOINT_CFR_H_ */