Commit 571e1b1d authored by Alessandro Rubini's avatar Alessandro Rubini

trivial: move a simple func to header

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 6ab0c121
......@@ -9,11 +9,6 @@
#include "wr-constants.h"
#include "wr-api.h"
static Integer32 phase_to_cf_units(Integer32 phase)
{
return (Integer32) ((int64_t)phase * 65536LL / 1000LL);
}
int pp_master(struct pp_instance *ppi, unsigned char *pkt, int plen)
{
TimeInternal *time;
......
......@@ -48,6 +48,12 @@ static inline struct wr_dsport *WR_DSPOR(struct pp_instance *ppi)
return ppi->portDS->ext_dsport;
}
static inline Integer32 phase_to_cf_units(Integer32 phase)
{
return (Integer32) ((int64_t)phase * 65536LL / 1000LL);
}
/* Pack/Unkpack White rabbit message in the suffix of PTP announce message */
void msg_pack_announce_wr_tlv(struct pp_instance *ppi);
void msg_unpack_announce_wr_tlv(void *buf, MsgAnnounce *ann);
......
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