forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimer.h
More file actions
36 lines (27 loc) · 1.01 KB
/
timer.h
File metadata and controls
36 lines (27 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2016 Intel Corporation. All rights reserved.
*
* Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>
*/
#ifdef __SOF_DRIVERS_TIMER_H__
#ifndef __ARCH_DRIVERS_TIMER_H__
#define __ARCH_DRIVERS_TIMER_H__
#include <stdint.h>
struct timer {
uint32_t id;
uint64_t delta;
};
static inline int arch_timer_register(struct timer *timer,
void (*handler)(void *arg), void *arg) {return 0; }
static inline void arch_timer_unregister(struct timer *timer) {}
static inline void arch_timer_enable(struct timer *timer) {}
static inline void arch_timer_disable(struct timer *timer) {}
static inline uint64_t arch_timer_get_system(struct timer *timer) {return 0; }
static inline int64_t arch_timer_set(struct timer *timer,
uint64_t ticks) {return 0; }
static inline void arch_timer_clear(struct timer *timer) {}
#endif /* __ARCH_DRIVERS_TIMER_H__ */
#else
#error "This file shouldn't be included from outside of sof/drivers/timer.h"
#endif /* __SOF_DRIVERS_TIMER_H__ */