1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 2 /* 3 * Virtual PTP 1588 clock for use with KVM gue 3 * Virtual PTP 1588 clock for use with KVM guests 4 * 4 * 5 * Copyright (C) 2017 Red Hat Inc. 5 * Copyright (C) 2017 Red Hat Inc. 6 */ 6 */ 7 7 8 #ifndef _PTP_KVM_H_ 8 #ifndef _PTP_KVM_H_ 9 #define _PTP_KVM_H_ 9 #define _PTP_KVM_H_ 10 10 11 #include <linux/clocksource_ids.h> 11 #include <linux/clocksource_ids.h> 12 #include <linux/types.h> 12 #include <linux/types.h> 13 13 14 struct timespec64; 14 struct timespec64; 15 15 16 int kvm_arch_ptp_init(void); 16 int kvm_arch_ptp_init(void); 17 void kvm_arch_ptp_exit(void); 17 void kvm_arch_ptp_exit(void); 18 int kvm_arch_ptp_get_clock(struct timespec64 * 18 int kvm_arch_ptp_get_clock(struct timespec64 *ts); 19 int kvm_arch_ptp_get_crosststamp(u64 *cycle, 19 int kvm_arch_ptp_get_crosststamp(u64 *cycle, 20 struct timespec64 *tspec, enum 20 struct timespec64 *tspec, enum clocksource_ids *cs_id); 21 21 22 #endif /* _PTP_KVM_H_ */ 22 #endif /* _PTP_KVM_H_ */ 23 23
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.