Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
da4495fc
Commit
da4495fc
authored
Apr 09, 2019
by
baujc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress obsolete and unused callbacks
- Removed master_msg, s1, execute slave
parent
0b031b22
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
12 deletions
+0
-12
ieee1588_types.h
include/ppsi/ieee1588_types.h
+0
-1
ppsi.h
include/ppsi/ppsi.h
+0
-4
bmc.c
proto-standard/bmc.c
+0
-7
No files found.
include/ppsi/ieee1588_types.h
View file @
da4495fc
...
...
@@ -159,7 +159,6 @@ typedef struct MsgAnnounce {
ClockIdentity
grandmasterIdentity
;
UInteger16
stepsRemoved
;
Enumeration8
timeSource
;
unsigned
long
ext_specific
;
/* used by extension */
}
MsgAnnounce
;
/* Sync Message (table 26, page 129) */
...
...
include/ppsi/ppsi.h
View file @
da4495fc
...
...
@@ -192,12 +192,8 @@ struct pp_ext_hooks {
int
(
*
open
)(
struct
pp_instance
*
ppi
,
struct
pp_runtime_opts
*
rt_opts
);
int
(
*
close
)(
struct
pp_instance
*
ppi
);
int
(
*
listening
)(
struct
pp_instance
*
ppi
,
void
*
buf
,
int
len
);
int
(
*
master_msg
)(
struct
pp_instance
*
ppi
,
void
*
buf
,
int
len
,
int
msgtype
);
int
(
*
new_slave
)(
struct
pp_instance
*
ppi
,
void
*
buf
,
int
len
);
int
(
*
handle_resp
)(
struct
pp_instance
*
ppi
);
void
(
*
s1
)(
struct
pp_instance
*
ppi
,
struct
pp_frgn_master
*
frgn_master
);
int
(
*
execute_slave
)(
struct
pp_instance
*
ppi
);
int
(
*
handle_announce
)(
struct
pp_instance
*
ppi
);
int
(
*
handle_sync
)(
struct
pp_instance
*
ppi
);
int
(
*
handle_followup
)(
struct
pp_instance
*
ppi
);
...
...
proto-standard/bmc.c
View file @
da4495fc
...
...
@@ -304,9 +304,6 @@ void bmc_s1(struct pp_instance *ppi,
prop
->
ptpTimescale
=
((
frgn_master
->
flagField
[
1
]
&
FFB_PTP
)
!=
0
);
prop
->
timeSource
=
frgn_master
->
timeSource
;
if
(
is_ext_hook_available
(
ppi
,
s1
))
ppi
->
ext_hooks
->
s1
(
ppi
,
frgn_master
);
/* Disable timer (if needed) used to go to GM by BMCA */
pp_gtimeout_disable
(
GLBS
(
ppi
),
PP_TO_GM_BY_BMCA
);
...
...
@@ -886,10 +883,6 @@ void bmc_store_frgn_master(struct pp_instance *ppi,
&
ann
.
grandmasterIdentity
,
sizeof
(
ClockIdentity
));
frgn_master
->
stepsRemoved
=
ann
.
stepsRemoved
;
frgn_master
->
timeSource
=
ann
.
timeSource
;
//TODO do we need a hook for this?
frgn_master
->
ext_specific
=
ann
.
ext_specific
;
}
void
bmc_add_frgn_master
(
struct
pp_instance
*
ppi
,
struct
pp_frgn_master
*
frgn_master
)
...
...
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