1 /*
2  * Copyright 2018 The Hafnium Authors.
3  *
4  * Use of this source code is governed by a BSD-style
5  * license that can be found in the LICENSE file or at
6  * https://opensource.org/licenses/BSD-3-Clause.
7  */
8 
9 #include "hf/arch/timer.h"
10 
11 #include <stdbool.h>
12 #include <stdint.h>
13 
14 #include "hf/arch/types.h"
15 
arch_timer_pending(struct arch_regs * regs)16 bool arch_timer_pending(struct arch_regs *regs)
17 {
18 	/* TODO */
19 	(void)regs;
20 	return false;
21 }
22 
arch_timer_mask(struct arch_regs * regs)23 void arch_timer_mask(struct arch_regs *regs)
24 {
25 	/* TODO */
26 	(void)regs;
27 }
28 
arch_timer_enabled(struct arch_regs * regs)29 bool arch_timer_enabled(struct arch_regs *regs)
30 {
31 	/* TODO */
32 	(void)regs;
33 	return false;
34 }
35 
arch_timer_remaining_ns(struct arch_regs * regs)36 uint64_t arch_timer_remaining_ns(struct arch_regs *regs)
37 {
38 	/* TODO */
39 	(void)regs;
40 	return 0;
41 }
42 
arch_timer_enabled_current(void)43 bool arch_timer_enabled_current(void)
44 {
45 	/* TODO */
46 	return false;
47 }
48 
arch_timer_disable_current(void)49 void arch_timer_disable_current(void)
50 {
51 	/* TODO */
52 }
53 
arch_timer_remaining_ns_current(void)54 uint64_t arch_timer_remaining_ns_current(void)
55 {
56 	/* TODO */
57 	return 0;
58 }
59