OpenBIC
OpenSource Bridge-IC
|
#include <shell/shell.h>
#include <stdlib.h>
#include <logging/log.h>
#include "sensor.h"
#include "plat_hook.h"
#include "plat_class.h"
Functions | |
LOG_MODULE_REGISTER (plat_vr_status_shell, LOG_LEVEL_DBG) | |
SHELL_DYNAMIC_CMD_CREATE (vr_status_rname_for_vr_status, vr_status_rname_get) | |
SHELL_DYNAMIC_CMD_CREATE (vr_rname_for_vr_status, voltage_rname_get) | |
SHELL_DYNAMIC_CMD_CREATE (vr_rname_for_vr_status_clear, voltage_rname_clear) | |
SHELL_STATIC_SUBCMD_SET_CREATE (sub_vr_status_cmds, SHELL_CMD(get, &vr_rname_for_vr_status, "get all|<voltage-rail> all|<which-status>", cmd_vr_status_get), SHELL_CMD(clear, &vr_rname_for_vr_status_clear, "clear all|<voltage-rail>", cmd_vr_status_clear), SHELL_SUBCMD_SET_END) | |
SHELL_CMD_REGISTER (vr_status, &sub_vr_status_cmds, "vr fault status set/get commands", NULL) | |
LOG_MODULE_REGISTER | ( | plat_vr_status_shell | , |
LOG_LEVEL_DBG | |||
) |
SHELL_CMD_REGISTER | ( | vr_status | , |
& | sub_vr_status_cmds, | ||
"vr fault status set/get commands" | , | ||
NULL | |||
) |
SHELL_DYNAMIC_CMD_CREATE | ( | vr_rname_for_vr_status | , |
voltage_rname_get | |||
) |
SHELL_DYNAMIC_CMD_CREATE | ( | vr_rname_for_vr_status_clear | , |
voltage_rname_clear | |||
) |
SHELL_DYNAMIC_CMD_CREATE | ( | vr_status_rname_for_vr_status | , |
vr_status_rname_get | |||
) |
SHELL_STATIC_SUBCMD_SET_CREATE | ( | sub_vr_status_cmds | , |
SHELL_CMD(get, &vr_rname_for_vr_status, "get all|<voltage-rail> all|<which-status>", cmd_vr_status_get) | , | ||
SHELL_CMD(clear, &vr_rname_for_vr_status_clear, "clear all|<voltage-rail>", cmd_vr_status_clear) | , | ||
SHELL_SUBCMD_SET_END | |||
) |