ptp_kvm.h 456 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Virtual PTP 1588 clock for use with KVM guests
  4. *
  5. * Copyright (C) 2017 Red Hat Inc.
  6. */
  7. #ifndef _PTP_KVM_H_
  8. #define _PTP_KVM_H_
  9. #include <linux/types.h>
  10. struct timespec64;
  11. struct clocksource;
  12. int kvm_arch_ptp_init(void);
  13. int kvm_arch_ptp_get_clock(struct timespec64 *ts);
  14. int kvm_arch_ptp_get_crosststamp(u64 *cycle,
  15. struct timespec64 *tspec, struct clocksource **cs);
  16. #endif /* _PTP_KVM_H_ */