arch_timer.h 426 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#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 *);
12
int arch_timer_sched_clock_init(void);
13 14 15 16 17
#else
static inline int arch_timer_register(struct arch_timer *at)
{
	return -ENXIO;
}
18 19 20 21 22

static inline int arch_timer_sched_clock_init(void)
{
	return -ENXIO;
}
23 24 25
#endif

#endif