Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
fa5f9f09
Commit
fa5f9f09
authored
Jan 23, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dump-info: add wrpcModeCfg and fix timingMode to wrpc_arch_data_t
Signed-off-by:
Adam Wujek
<
adam.wujek@creotech.pl
>
parent
5fda98f9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
dump-info.c
dump-info.c
+1
-0
dump-info.h
include/dump-info.h
+3
-1
wrpc-dump.c
tools/wrpc-dump.c
+16
-1
No files found.
dump-info.c
View file @
fa5f9f09
...
...
@@ -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
...
...
include/dump-info.h
View file @
fa5f9f09
...
...
@@ -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
;
...
...
tools/wrpc-dump.c
View file @
fa5f9f09
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment