diff options
author | Levi Pearson <levipearson@gmail.com> | 2018-06-19 14:52:52 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-19 14:52:52 -0600 |
commit | 5b95644093b857b2dc886e29871519edd7d66b67 (patch) | |
tree | 0e593f3b76dcffe86e73d54b7c39dd831e5915a5 /daemons/gptp/linux/src/linux_hal_generic.hpp | |
parent | 247413605cc4cda855ea89cc6b5c4168a247a91a (diff) | |
parent | b66379611283f1daae1008f9fb8f084bf115a531 (diff) | |
download | Open-AVB-5b95644093b857b2dc886e29871519edd7d66b67.tar.gz |
Merge pull request #795 from christopher-s-hall/open-avb-next
gptp: Add monotonic raw clock option
Diffstat (limited to 'daemons/gptp/linux/src/linux_hal_generic.hpp')
-rw-r--r-- | daemons/gptp/linux/src/linux_hal_generic.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/daemons/gptp/linux/src/linux_hal_generic.hpp b/daemons/gptp/linux/src/linux_hal_generic.hpp index 943294f4..76b09015 100644 --- a/daemons/gptp/linux/src/linux_hal_generic.hpp +++ b/daemons/gptp/linux/src/linux_hal_generic.hpp @@ -67,11 +67,22 @@ private: #endif TicketingLock *net_lock; + clockid_t system_clockid; #ifdef WITH_IGBLIB LinuxTimestamperIGBPrivate_t igb_private; #endif + struct clock_map_t + { + clockid_t clockid; + const char *clock_name; + }; + + static clock_map_t system_clock_map[]; + + const char *getClockNameFromId( clockid_t clockid ) const; + public: /** * @brief Default constructor. Initializes internal variables @@ -108,6 +119,9 @@ public: */ virtual void HWTimestamper_reset(); + virtual bool HWTimestamper_setsystemclock + ( const char *system_clock_desc ); + /** * @brief Inserts a new timestamp to the beginning of the * RX timestamp list. |