OpenBIC
OpenSource Bridge-IC
|
#include <stdlib.h>
#include "plat_sensor_polling_shell.h"
#include "log_shell.h"
#include "cpld_shell.h"
#include "plat_pldm_fw_version_shell.h"
#include "mctp.h"
#include "pldm.h"
Functions | |
void | pldm_cmd (const struct shell *shell, size_t argc, char **argv) |
SHELL_STATIC_SUBCMD_SET_CREATE (sub_test_cmds, SHELL_CMD(sensor, &sub_plat_sensor_polling_cmd, "set/get platform sensor polling command", NULL), SHELL_CMD(log, &sub_plat_log_cmd, "platform log command", NULL), SHELL_CMD(cpld, &sub_cpld_cmd, "cpld command", NULL), SHELL_CMD(get_fw_version, &sub_get_fw_version_cmd, "get fw version command", NULL), SHELL_CMD(pldm, NULL, "send pldm to bmc", pldm_cmd), SHELL_SUBCMD_SET_END) | |
SHELL_CMD_REGISTER (test, &sub_test_cmds, "Test commands for AG", NULL) | |
void pldm_cmd | ( | const struct shell * | shell, |
size_t | argc, | ||
char ** | argv | ||
) |
SHELL_CMD_REGISTER | ( | test | , |
& | sub_test_cmds, | ||
"Test commands for AG" | , | ||
NULL | |||
) |
SHELL_STATIC_SUBCMD_SET_CREATE | ( | sub_test_cmds | , |
SHELL_CMD(sensor, &sub_plat_sensor_polling_cmd, "set/get platform sensor polling command", NULL) | , | ||
SHELL_CMD(log, &sub_plat_log_cmd, "platform log command", NULL) | , | ||
SHELL_CMD(cpld, &sub_cpld_cmd, "cpld command", NULL) | , | ||
SHELL_CMD(get_fw_version, &sub_get_fw_version_cmd, "get fw version command", NULL) | , | ||
SHELL_CMD(pldm, NULL, "send pldm to bmc", pldm_cmd) | , | ||
SHELL_SUBCMD_SET_END | |||
) |