2012-01-11 18:25:17 +01: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 16:32:36 +01:00
|
|
|
int arch_timer_sched_clock_init(void);
|
2012-01-19 14:53:50 +01:00
|
|
|
int arch_timer_of_register(void);
|
2012-01-11 18:25:17 +01:00
|
|
|
#else
|
|
|
|
static inline int arch_timer_register(struct arch_timer *at)
|
|
|
|
{
|
|
|
|
return -ENXIO;
|
|
|
|
}
|
2011-01-14 16:32:36 +01:00
|
|
|
|
2012-01-19 14:53:50 +01:00
|
|
|
static inline int arch_timer_of_register(void)
|
|
|
|
{
|
|
|
|
return -ENXIO;
|
|
|
|
}
|
|
|
|
|
2011-01-14 16:32:36 +01:00
|
|
|
static inline int arch_timer_sched_clock_init(void)
|
|
|
|
{
|
|
|
|
return -ENXIO;
|
|
|
|
}
|
2012-01-11 18:25:17 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|