1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 /*
4  * Definitions for the clocksource provided by the Hyper-V
5  * hypervisor to guest VMs, as described in the Hyper-V Top
6  * Level Functional Spec (TLFS).
7  *
8  * Copyright (C) 2019, Microsoft, Inc.
9  *
10  * Author:  Michael Kelley <[email protected]>
11  */
12 
13 #ifndef __CLKSOURCE_HYPERV_TIMER_H
14 #define __CLKSOURCE_HYPERV_TIMER_H
15 
16 #define HV_MAX_MAX_DELTA_TICKS 0xffffffff
17 #define HV_MIN_DELTA_TICKS 1
18 
19 /* Routines called by the VMbus driver */
20 extern int hv_stimer_alloc(int sint);
21 extern void hv_stimer_free(void);
22 extern void hv_stimer_init(unsigned int cpu);
23 extern void hv_stimer_cleanup(unsigned int cpu);
24 extern void hv_stimer_global_cleanup(void);
25 extern void hv_stimer0_isr(void);
26 
27 #endif
28