summaryrefslogtreecommitdiff
path: root/src/host_commands.c
blob: df2d93a1d71f65e64ae0a647487ee90a18b62b9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "host_commands.h"

static const string_quadruple_t boot_override_type_dbus = {
    "xyz.openbmc_project.Settings",
    "/xyz/openbmc_project/control/host0/boot",
    "xyz.openbmc_project.Control.Boot.Type",
    "BootType"};

static const string_quadruple_t boot_override_mode_dbus = {
    "xyz.openbmc_project.Settings",
    "/xyz/openbmc_project/control/host0/boot",
    "xyz.openbmc_project.Control.Boot.Mode",
    "BootMode"};

static const string_quadruple_t boot_override_source_dbus = {
    "xyz.openbmc_project.Settings",
    "/xyz/openbmc_project/control/host0/boot",
    "xyz.openbmc_project.Control.Boot.Source",
    "BootSource"};

static const string_quadruple_t boot_override_enable_dbus = {
    "xyz.openbmc_project.Settings",
    "/xyz/openbmc_project/control/host0/boot",
    "xyz.openbmc_project.Object.Enable",
    "Enabled"};

static const string_quadruple_t boot_override_once_dbus = {
    "xyz.openbmc_project.Settings",
    "/xyz/openbmc_project/control/host0/boot/one_time",
    "xyz.openbmc_project.Object.Enable",
    "Enabled"};

typedef enum
{
    HOST_UNKNOWN=-1,
    HOST_CD,
    HOST_USB,
    HOST_BIOS,
    HOST_ONE_TIME,
    HOST_CONTINOUS,
    HOST_LEGACY,
    HOST_UEFI
}host_command_t;