Marc Zyngier | 022c03a | 2012-01-11 17:25:17 +0000 | [diff] [blame^] | 1 | #ifndef __ASMARM_ARCH_TIMER_H |
2 | #define __ASMARM_ARCH_TIMER_H | ||||
3 | |||||
4 | #include <linux/ioport.h> | ||||
5 | |||||
6 | struct arch_timer { | ||||
7 | struct resource res[2]; | ||||
8 | }; | ||||
9 | |||||
10 | #ifdef CONFIG_ARM_ARCH_TIMER | ||||
11 | int arch_timer_register(struct arch_timer *); | ||||
12 | #else | ||||
13 | static inline int arch_timer_register(struct arch_timer *at) | ||||
14 | { | ||||
15 | return -ENXIO; | ||||
16 | } | ||||
17 | #endif | ||||
18 | |||||
19 | #endif |