|
OpenBIC
OpenSource Bridge-IC
|
#include <shell/shell.h>#include <stdlib.h>#include <logging/log.h>#include "plat_isr.h"#include "plat_i2c.h"#include "plat_hook.h"#include "plat_cpld.h"#include "plat_user_setting.h"
Classes | |
| struct | hamsa_pcie_item_t |
Enumerations | |
| enum | hamsa_pcie_id_t { HAMSA_PCIE0 = 0 , HAMSA_PCIE1 , HAMSA_PCIE2 , HAMSA_PCIE3 , HAMSA_PCIE_MAX_ID } |
Functions | |
| LOG_MODULE_REGISTER (plat_delay_pcie_perst_shell, LOG_LEVEL_DBG) | |
| SHELL_DYNAMIC_CMD_CREATE (hamsa_pcie_name_set, hamsa_pcie_rname_get_for_set_cmd) | |
| SHELL_STATIC_SUBCMD_SET_CREATE (sub_delay_pcie_perst_get_cmds, SHELL_CMD(all, NULL, "get all", cmd_delay_pcie_perst_get), SHELL_SUBCMD_SET_END) | |
| SHELL_STATIC_SUBCMD_SET_CREATE (sub_delay_pcie_perst_cmds, SHELL_CMD_ARG(set, &hamsa_pcie_name_set, "set <HAMSA_PCIE[X]_PERST_B_PLD_N > [N (* 10ms)]|default [perm]", cmd_delay_pcie_perst_set, 3, 1), SHELL_CMD(get, &sub_delay_pcie_perst_get_cmds, "get all", NULL), SHELL_SUBCMD_SET_END) | |
| SHELL_CMD_REGISTER (delay_pcie_perst, &sub_delay_pcie_perst_cmds, "delay_pcie_perst set <HAMSA_PCIE[X]_PERST_B_PLD_N > [N (* 10ms)]|default [perm]", NULL) | |
| enum hamsa_pcie_id_t |
| LOG_MODULE_REGISTER | ( | plat_delay_pcie_perst_shell | , |
| LOG_LEVEL_DBG | |||
| ) |
| SHELL_CMD_REGISTER | ( | delay_pcie_perst | , |
| & | sub_delay_pcie_perst_cmds, | ||
| "delay_pcie_perst set <HAMSA_PCIE[X]_PERST_B_PLD_N > |default " | [N(*10ms)][perm], | ||
| NULL | |||
| ) |
| SHELL_DYNAMIC_CMD_CREATE | ( | hamsa_pcie_name_set | , |
| hamsa_pcie_rname_get_for_set_cmd | |||
| ) |
| SHELL_STATIC_SUBCMD_SET_CREATE | ( | sub_delay_pcie_perst_cmds | , |
| SHELL_CMD_ARG(set, &hamsa_pcie_name_set, "set <HAMSA_PCIE[X]_PERST_B_PLD_N > [N (* 10ms)]|default [perm]", cmd_delay_pcie_perst_set, 3, 1) | , | ||
| SHELL_CMD(get, &sub_delay_pcie_perst_get_cmds, "get all", NULL) | , | ||
| SHELL_SUBCMD_SET_END | |||
| ) |
| SHELL_STATIC_SUBCMD_SET_CREATE | ( | sub_delay_pcie_perst_get_cmds | , |
| SHELL_CMD(all, NULL, "get all", cmd_delay_pcie_perst_get) | , | ||
| SHELL_SUBCMD_SET_END | |||
| ) |