Merge tag 'v6.9-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
[linux-2.6-block.git] / include / linux / ptp_kvm.h
CommitLineData
a8cf291b
JW
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
9be3b2f0 11#include <linux/clocksource_ids.h>
5f10376b
JK
12#include <linux/types.h>
13
a8cf291b 14struct timespec64;
a8cf291b
JW
15
16int kvm_arch_ptp_init(void);
6365ba64 17void kvm_arch_ptp_exit(void);
a8cf291b
JW
18int kvm_arch_ptp_get_clock(struct timespec64 *ts);
19int kvm_arch_ptp_get_crosststamp(u64 *cycle,
b152688c 20 struct timespec64 *tspec, enum clocksource_ids *cs_id);
a8cf291b
JW
21
22#endif /* _PTP_KVM_H_ */