forked from luck/tmp_suning_uos_patched
28 lines
735 B
C
28 lines
735 B
C
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||
|
|
||
|
/*
|
||
|
* Definitions for the clocksource provided by the Hyper-V
|
||
|
* hypervisor to guest VMs, as described in the Hyper-V Top
|
||
|
* Level Functional Spec (TLFS).
|
||
|
*
|
||
|
* Copyright (C) 2019, Microsoft, Inc.
|
||
|
*
|
||
|
* Author: Michael Kelley <mikelley@microsoft.com>
|
||
|
*/
|
||
|
|
||
|
#ifndef __CLKSOURCE_HYPERV_TIMER_H
|
||
|
#define __CLKSOURCE_HYPERV_TIMER_H
|
||
|
|
||
|
#define HV_MAX_MAX_DELTA_TICKS 0xffffffff
|
||
|
#define HV_MIN_DELTA_TICKS 1
|
||
|
|
||
|
/* Routines called by the VMbus driver */
|
||
|
extern int hv_stimer_alloc(int sint);
|
||
|
extern void hv_stimer_free(void);
|
||
|
extern void hv_stimer_init(unsigned int cpu);
|
||
|
extern void hv_stimer_cleanup(unsigned int cpu);
|
||
|
extern void hv_stimer_global_cleanup(void);
|
||
|
extern void hv_stimer0_isr(void);
|
||
|
|
||
|
#endif
|