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#include <linux/types.h>
12
13struct timespec64;
14struct clocksource;
15
16int kvm_arch_ptp_init(void);
17void kvm_arch_ptp_exit(void);
18int kvm_arch_ptp_get_clock(struct timespec64 *ts);
19int kvm_arch_ptp_get_crosststamp(u64 *cycle,
20 struct timespec64 *tspec, struct clocksource **cs);
21
22#endif /* _PTP_KVM_H_ */
23

source code of linux/include/linux/ptp_kvm.h