diff --git a/hccs/hikp_hccs.c b/hccs/hikp_hccs.c index f6ef003dce61dc71fea020b4a9831f143b381470..347f76b05143cea2159489b52d01a0eb850cce2b 100644 --- a/hccs/hikp_hccs.c +++ b/hccs/hikp_hccs.c @@ -71,14 +71,16 @@ static int hikp_hccs_cmd_help(struct major_cmd_ctrl *self, const char *argv) printf("\n %s\n", self->cmd_ptr->help_info); printf("\n Options:\n\n"); printf(" %s, %-25s %s\n", "-h", "--help", "display this help and exit"); - printf(" %s, %-25s %s\n", "-c", "--chip_id=", "target chip"); - printf(" %s, %-25s %s\n", "-d", "--die_id=", "target die"); - printf(" %s, %-25s %s\n", "-p", "--port_id=", "target port"); + printf(" %s, %-25s %s\n", "-c", "--chip_id=", "target chip ID which is from 'X' in chipX"); + printf(" %s, %-25s %s\n", "-d", "--die_id=", "target die ID which is from 'Y' in dieY"); + printf(" %s, %-25s %s\n", "-p", "--port_id=", "target port ID which from 'Z' in hccsZ"); printf(" %s\n", "[-g/--get ]\n" - " topo : get hccs_typo info, no target specified.\n" - " fixed_attr : get fixed attributes for port specified by -c X -d X -p X.\n" - " dfx_info : get dfx info for port specified by -c X -d X -p X.\n"); + " topo : get HCCS topology information, no target specified.\n" + " fixed_attr : get fixed attributes of one port specified by -c X -d Y -p Z.\n" + " dfx_info : get dfx info of one port specified by -c X -d Y -p Z.\n" + "\n" + " eg: hikptool hccs -g dfx_info -c 0 -d 2 -p 1\n"); return 0; } diff --git a/hikp_init_main.c b/hikp_init_main.c index 7b63e9bb3006011c2ec5ff8029be1730cc64b8cc..acbed8cd294575d7a9203225f20624d32a0fa439 100644 --- a/hikp_init_main.c +++ b/hikp_init_main.c @@ -100,6 +100,7 @@ const struct cmd_list_info g_chip_hip09_hip10_cmd_list[] = { const struct cmd_list_info g_chip_hip11_cmd_list[] = { {g_core_ring_cmd_list, HIKP_ARRAY_SIZE(g_core_ring_cmd_list)}, + {g_hccs_cmd_list, HIKP_ARRAY_SIZE(g_hccs_cmd_list)}, {g_log_collect_cmd_list, HIKP_ARRAY_SIZE(g_log_collect_cmd_list)}, {g_nic_cmd_list, HIKP_ARRAY_SIZE(g_nic_cmd_list)}, {g_pcie_cmd_list, HIKP_ARRAY_SIZE(g_pcie_cmd_list)},