Commit fa5f9f09 authored by Adam Wujek's avatar Adam Wujek

dump-info: add wrpcModeCfg and fix timingMode to wrpc_arch_data_t

Signed-off-by: 's avatarAdam Wujek <adam.wujek@creotech.pl>
parent 5fda98f9
......@@ -335,6 +335,7 @@ struct dump_info dump_info[] = {
#define DUMP_STRUCT struct wrpc_arch_data_t
DUMP_HEADER("wrpc_arch_data_t"),
DUMP_FIELD(timing_mode, timingMode),
DUMP_FIELD(wrpc_mode_cfg, wrpcModeCfg),
#endif
#undef DUMP_STRUCT
......
......@@ -53,6 +53,7 @@ enum dump_type {
dump_type_ip_address,
dump_type_delay_mechanism,
dump_type_protocol_extension,
dump_type_wrpc_mode_cfg,
dump_type_timing_mode,
dump_type_ppi_state,
dump_type_ppi_state_Enumeration8,
......@@ -84,7 +85,8 @@ typedef uint8_t yes_no;
typedef int spll_mode;
typedef int delay_mechanism;
typedef int protocol_extension;
typedef int timing_mode;
typedef wrh_timing_mode_t timing_mode;
typedef int wrpc_mode_cfg;
typedef int ppi_state;
typedef Enumeration8 ppi_state_Enumeration8;
typedef int wr_config;
......
......@@ -337,7 +337,7 @@ void dump_one_field(void *addr, struct dump_info *info, char *info_prefix)
printf("\n");
break;
case dump_type_timing_mode:
case dump_type_wrpc_mode_cfg:
i = wrpc_get_i32(p);
switch(i) {
ENUM_TO_P_IN_CASE(WRC_MODE_UNKNOWN, char_p);
......@@ -353,6 +353,21 @@ void dump_one_field(void *addr, struct dump_info *info, char *info_prefix)
printf("\n");
break;
case dump_type_timing_mode:
i = wrpc_get_i32(p);
switch(i) {
ENUM_TO_P_IN_CASE(WRH_TM_GRAND_MASTER, char_p);
ENUM_TO_P_IN_CASE(WRH_TM_FREE_MASTER, char_p);
ENUM_TO_P_IN_CASE(WRH_TM_BOUNDARY_CLOCK, char_p);
ENUM_TO_P_IN_CASE(WRH_TM_DISABLED, char_p);
default:
char_p = "Unknown";
}
printf("%d", i);
print_str(char_p);
printf("\n");
break;
case dump_type_ppi_state:
case dump_type_ppi_state_Enumeration8:
switch(i) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment