split dev_queue
[cor.git] / include / clocksource / timer-sp804.h
bloba5b41f31a1c256afa3bb1017ebd840aa95399a52
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __CLKSOURCE_TIMER_SP804_H
3 #define __CLKSOURCE_TIMER_SP804_H
5 struct clk;
7 int __sp804_clocksource_and_sched_clock_init(void __iomem *,
8 const char *, struct clk *, int);
9 int __sp804_clockevents_init(void __iomem *, unsigned int,
10 struct clk *, const char *);
11 void sp804_timer_disable(void __iomem *);
13 static inline void sp804_clocksource_init(void __iomem *base, const char *name)
15 __sp804_clocksource_and_sched_clock_init(base, name, NULL, 0);
18 static inline void sp804_clocksource_and_sched_clock_init(void __iomem *base,
19 const char *name)
21 __sp804_clocksource_and_sched_clock_init(base, name, NULL, 1);
24 static inline void sp804_clockevents_init(void __iomem *base, unsigned int irq, const char *name)
26 __sp804_clockevents_init(base, irq, NULL, name);
29 #endif