OpenBIC
OpenSource Bridge-IC
plat_shell.c File Reference
#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"
Include dependency graph for plat_shell.c:

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)
 

Function Documentation

◆ pldm_cmd()

void pldm_cmd ( const struct shell *  shell,
size_t  argc,
char **  argv 
)
Here is the call graph for this function:

◆ SHELL_CMD_REGISTER()

SHELL_CMD_REGISTER ( test  ,
sub_test_cmds,
"Test commands for AG"  ,
NULL   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE()

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   
)