7#ifndef ZEPHYR_INCLUDE_ARCH_ARM64_TIMER_H_
8#define ZEPHYR_INCLUDE_ARCH_ARM64_TIMER_H_
19#define ARM_ARCH_TIMER_IRQ ARM_TIMER_VIRTUAL_IRQ
20#define ARM_ARCH_TIMER_PRIO ARM_TIMER_VIRTUAL_PRIO
21#define ARM_ARCH_TIMER_FLAGS ARM_TIMER_VIRTUAL_FLAGS
41 cntv_ctl &= ~CNTV_CTL_ENABLE_BIT;
56 cntv_ctl &= ~CNTV_CTL_IMASK_BIT;
static ALWAYS_INLINE uint64_t arm_arch_timer_count(void)
Definition: timer.h:62
static ALWAYS_INLINE void arm_arch_timer_set_irq_mask(bool mask)
Definition: timer.h:47
static ALWAYS_INLINE void arm_arch_timer_set_compare(uint64_t val)
Definition: timer.h:27
static ALWAYS_INLINE void arm_arch_timer_enable(unsigned char enable)
Definition: timer.h:32
static ALWAYS_INLINE void arm_arch_timer_init(void)
Definition: timer.h:23
#define ALWAYS_INLINE
Definition: common.h:116
#define CNTV_CTL_ENABLE_BIT
Definition: cpu.h:104
#define CNTV_CTL_IMASK_BIT
Definition: cpu.h:105
static ALWAYS_INLINE uint64_t read_cntvct_el0(void)
Definition: lib_helpers.h:61
static ALWAYS_INLINE uint64_t read_cntv_ctl_el0(void)
Definition: lib_helpers.h:59
static ALWAYS_INLINE void write_cntv_ctl_el0(uint64_t val)
Definition: lib_helpers.h:59
static ALWAYS_INLINE void write_cntv_cval_el0(uint64_t val)
Definition: lib_helpers.h:60
__UINT64_TYPE__ uint64_t
Definition: stdint.h:61