2012-01-11 17:25:17 +00:00
|
|
|
#ifndef __ASMARM_ARCH_TIMER_H
|
|
|
|
#define __ASMARM_ARCH_TIMER_H
|
|
|
|
|
|
|
|
#include <linux/ioport.h>
|
|
|
|
|
|
|
|
struct arch_timer {
|
|
|
|
struct resource res[2];
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef CONFIG_ARM_ARCH_TIMER
|
|
|
|
int arch_timer_register(struct arch_timer *);
|
2011-01-14 15:32:36 +00:00
|
|
|
int arch_timer_sched_clock_init(void);
|
2012-01-19 13:53:50 +00:00
|
|
|
int arch_timer_of_register(void);
|
2012-01-11 17:25:17 +00:00
|
|
|
#else
|
|
|
|
static inline int arch_timer_register(struct arch_timer *at)
|
|
|
|
{
|
|
|
|
return -ENXIO;
|
|
|
|
}
|
2011-01-14 15:32:36 +00:00
|
|
|
|
2012-01-19 13:53:50 +00:00
|
|
|
static inline int arch_timer_of_register(void)
|
|
|
|
{
|
|
|
|
return -ENXIO;
|
|
|
|
}
|
|
|
|
|
2011-01-14 15:32:36 +00:00
|
|
|
static inline int arch_timer_sched_clock_init(void)
|
|
|
|
{
|
|
|
|
return -ENXIO;
|
|
|
|
}
|
2012-01-11 17:25:17 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|