#ifndef __CLKSOURCE_ARM_ARCH_TIMER_H
#define __CLKSOURCE_ARM_ARCH_TIMER_H
#include <linux/bitops.h>
#include <linux/timecounter.h>
#include <linux/types.h>
#define ARCH_TIMER_TYPE_CP15 …
#define ARCH_TIMER_TYPE_MEM …
#define ARCH_TIMER_CTRL_ENABLE …
#define ARCH_TIMER_CTRL_IT_MASK …
#define ARCH_TIMER_CTRL_IT_STAT …
#define CNTHCTL_EL1PCTEN …
#define CNTHCTL_EL1PCEN …
#define CNTHCTL_EVNTEN …
#define CNTHCTL_EVNTDIR …
#define CNTHCTL_EVNTI …
#define CNTHCTL_ECV …
enum arch_timer_reg { … };
enum arch_timer_ppi_nr { … };
enum arch_timer_spi_nr { … };
#define ARCH_TIMER_PHYS_ACCESS …
#define ARCH_TIMER_VIRT_ACCESS …
#define ARCH_TIMER_MEM_PHYS_ACCESS …
#define ARCH_TIMER_MEM_VIRT_ACCESS …
#define ARCH_TIMER_MEM_MAX_FRAMES …
#define ARCH_TIMER_USR_PCT_ACCESS_EN …
#define ARCH_TIMER_USR_VCT_ACCESS_EN …
#define ARCH_TIMER_VIRT_EVT_EN …
#define ARCH_TIMER_EVT_TRIGGER_SHIFT …
#define ARCH_TIMER_EVT_TRIGGER_MASK …
#define ARCH_TIMER_USR_VT_ACCESS_EN …
#define ARCH_TIMER_USR_PT_ACCESS_EN …
#define ARCH_TIMER_EVT_INTERVAL_SCALE …
#define ARCH_TIMER_EVT_STREAM_PERIOD_US …
#define ARCH_TIMER_EVT_STREAM_FREQ …
struct arch_timer_kvm_info { … };
struct arch_timer_mem_frame { … };
struct arch_timer_mem { … };
#ifdef CONFIG_ARM_ARCH_TIMER
extern u32 arch_timer_get_rate(void);
extern u64 (*arch_timer_read_counter)(void);
extern struct arch_timer_kvm_info *arch_timer_get_kvm_info(void);
extern bool arch_timer_evtstrm_available(void);
#else
static inline u32 arch_timer_get_rate(void)
{ … }
static inline u64 arch_timer_read_counter(void)
{ … }
static inline bool arch_timer_evtstrm_available(void)
{ … }
#endif
#endif