Commit 7909e33c authored by Alessandro Rubini's avatar Alessandro Rubini

ppsi.h: declare unix_time_ops and unix_net_ops for everyone

The unix time and network operations are going to be used as a fall-back
solution by other timing engines.

For example, hardware-specific timestamping capabilities can be
selected (such as the Linux ioctl API) but if the Ethernet interface
(and thus the pp_instance) doesn't support the feature, related code
will be able to set back the unix operations in place.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent c3e5f1c6
......@@ -14,6 +14,3 @@ struct unix_arch_data {
extern int unix_net_check_pkt(struct pp_globals *ppg, int delay_ms);
extern void unix_main_loop(struct pp_globals *ppg);
extern struct pp_network_operations unix_net_ops;
extern struct pp_time_operations unix_time_ops;
......@@ -141,6 +141,9 @@ struct pp_network_operations {
TimeInternal *t, int chtype, int use_pdelay_addr);
};
/* These can be liked and used as fallback by a different timing engine */
extern struct pp_network_operations unix_net_ops;
/*
* Time operations, like network operations above, are encapsulated.
......@@ -159,6 +162,10 @@ struct pp_time_operations {
unsigned long (*calc_timeout)(struct pp_instance *ppi, int millisec);
};
/* These can be liked and used as fallback by a different timing engine */
extern struct pp_time_operations unix_time_ops;
/* FIXME this define is no more used; check whether it should be
* introduced again */
#define PP_ADJ_NS_MAX (500*1000)
......
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