#define pr_fmt(fmt) …
#include <linux/clk.h>
#include <linux/clockchips.h>
#include <linux/cpu.h>
#include <linux/cpuhotplug.h>
#include <linux/cpumask.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/jiffies.h>
#include <linux/printk.h>
#include <linux/sched_clock.h>
#include "timer-of.h"
#define RTTM_DATA …
#define RTTM_CNT …
#define RTTM_CTRL …
#define RTTM_INT …
#define RTTM_CTRL_ENABLE …
#define RTTM_INT_PENDING …
#define RTTM_INT_ENABLE …
#define RTTM_CTRL_COUNTER …
#define RTTM_CTRL_TIMER …
#define RTTM_BIT_COUNT …
#define RTTM_MIN_DELTA …
#define RTTM_MAX_DELTA …
#define RTTM_TICKS_PER_SEC …
struct rttm_cs { … };
static inline void rttm_set_counter(void __iomem *base, unsigned int counter)
{ … }
static inline unsigned int rttm_get_counter(void __iomem *base)
{ … }
static inline void rttm_set_period(void __iomem *base, unsigned int period)
{ … }
static inline void rttm_disable_timer(void __iomem *base)
{ … }
static inline void rttm_enable_timer(void __iomem *base, u32 mode, u32 divisor)
{ … }
static inline void rttm_ack_irq(void __iomem *base)
{ … }
static inline void rttm_enable_irq(void __iomem *base)
{ … }
static inline void rttm_disable_irq(void __iomem *base)
{ … }
#define RTTM_DEBUG(base) …
static irqreturn_t rttm_timer_interrupt(int irq, void *dev_id)
{ … }
static void rttm_stop_timer(void __iomem *base)
{ … }
static void rttm_start_timer(struct timer_of *to, u32 mode)
{ … }
static int rttm_next_event(unsigned long delta, struct clock_event_device *clkevt)
{ … }
static int rttm_state_oneshot(struct clock_event_device *clkevt)
{ … }
static int rttm_state_periodic(struct clock_event_device *clkevt)
{ … }
static int rttm_state_shutdown(struct clock_event_device *clkevt)
{ … }
static void rttm_setup_timer(void __iomem *base)
{ … }
static u64 rttm_read_clocksource(struct clocksource *cs)
{ … }
static DEFINE_PER_CPU(struct timer_of, rttm_to) = …;
static int rttm_enable_clocksource(struct clocksource *cs)
{ … }
struct rttm_cs rttm_cs = …;
static u64 notrace rttm_read_clock(void)
{ … }
static int rttm_cpu_starting(unsigned int cpu)
{ … }
static int __init rttm_probe(struct device_node *np)
{ … }
TIMER_OF_DECLARE(otto_timer, "realtek,otto-timer", rttm_probe);