Merge tag 'for-5.13-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
[linux-2.6-microblaze.git] / include / linux / ptp_kvm.h
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
8 #ifndef _PTP_KVM_H_
9 #define _PTP_KVM_H_
10
11 struct timespec64;
12 struct clocksource;
13
14 int kvm_arch_ptp_init(void);
15 int kvm_arch_ptp_get_clock(struct timespec64 *ts);
16 int kvm_arch_ptp_get_crosststamp(u64 *cycle,
17                 struct timespec64 *tspec, struct clocksource **cs);
18
19 #endif /* _PTP_KVM_H_ */