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
7
Merge Requests
7
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
a52ebf5e
Commit
a52ebf5e
authored
May 10, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dump-info: export wrc_hw_name
Signed-off-by:
Adam Wujek
<
adam.wujek@creotech.pl
>
parent
e3886432
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
dump-info.c
dump-info.c
+1
-0
wrc_global.h
include/wrc_global.h
+1
-0
wrc_main.c
wrc_main.c
+1
-1
No files found.
dump-info.c
View file @
a52ebf5e
...
...
@@ -13,6 +13,7 @@ struct dump_info dump_wrpc_info[] = {
DUMP_HEADER
(
"wrc_global"
),
DUMP_FIELD
(
uint32_t
,
magic
),
DUMP_FIELD
(
uint32_t
,
version
),
DUMP_FIELD_SIZE
(
char
,
wrc_hw_name
,
HW_NAME_LENGTH
),
DUMP_FIELD
(
pointer
,
link_status
),
#undef DUMP_STRUCT
...
...
include/wrc_global.h
View file @
a52ebf5e
...
...
@@ -15,6 +15,7 @@ struct wrc_global_link {
struct
wrc_global
{
uint32_t
magic
;
uint32_t
version
;
char
wrc_hw_name
[
HW_NAME_LENGTH
];
struct
wrc_global_link
*
link_status
;
};
...
...
wrc_main.c
View file @
a52ebf5e
...
...
@@ -55,7 +55,6 @@
#include "lib/lldp.h"
#endif
char
wrc_hw_name
[
HW_NAME_LENGTH
];
uint32_t
cal_phase_transition
=
2389
;
...
...
@@ -78,6 +77,7 @@ struct wrc_global wrc_global = {
int
*
link_status
=
&
wrc_global_link
.
link_up
;
int
*
wrc_vlan_number
=
&
wrc_global_link
.
vlan
;
char
*
wrc_hw_name
=
wrc_global
.
wrc_hw_name
;
static
void
wrc_initialize
(
void
)
{
...
...
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