blob: ba1294ae68262cae217bbb663f81d308e7dafb7a [file] [log] [blame]
Andrew Walbran508e63c2018-12-20 17:02:37 +00001/*
Andrew Walbran692b3252019-03-07 15:51:31 +00002 * Copyright 2018 The Hafnium Authors.
Andrew Walbran508e63c2018-12-20 17:02:37 +00003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include "hf/arch/timer.h"
18
19#include <stdbool.h>
20#include <stdint.h>
21
22#include "hf/arch/types.h"
23
24bool arch_timer_pending(struct arch_regs *regs)
25{
26 /* TODO */
27 (void)regs;
28 return false;
29}
30
31void arch_timer_mask(struct arch_regs *regs)
32{
33 /* TODO */
34 (void)regs;
35}
36
37bool arch_timer_enabled(struct arch_regs *regs)
38{
39 /* TODO */
40 (void)regs;
41 return false;
42}
43
44uint64_t arch_timer_remaining_ns(struct arch_regs *regs)
45{
46 /* TODO */
47 (void)regs;
48 return 0;
49}
50
51bool arch_timer_enabled_current(void)
52{
53 /* TODO */
54 return false;
55}
56
57uint64_t arch_timer_remaining_ns_current(void)
58{
59 /* TODO */
60 return 0;
61}