arch_timer.h 426 B

12345678910111213141516171819202122232425
  1. #ifndef __ASMARM_ARCH_TIMER_H
  2. #define __ASMARM_ARCH_TIMER_H
  3. #include <linux/ioport.h>
  4. struct arch_timer {
  5. struct resource res[2];
  6. };
  7. #ifdef CONFIG_ARM_ARCH_TIMER
  8. int arch_timer_register(struct arch_timer *);
  9. int arch_timer_sched_clock_init(void);
  10. #else
  11. static inline int arch_timer_register(struct arch_timer *at)
  12. {
  13. return -ENXIO;
  14. }
  15. static inline int arch_timer_sched_clock_init(void)
  16. {
  17. return -ENXIO;
  18. }
  19. #endif
  20. #endif