arch_timer.h 528 B

12345678910111213141516171819202122232425262728293031
  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. int arch_timer_of_register(void);
  11. #else
  12. static inline int arch_timer_register(struct arch_timer *at)
  13. {
  14. return -ENXIO;
  15. }
  16. static inline int arch_timer_of_register(void)
  17. {
  18. return -ENXIO;
  19. }
  20. static inline int arch_timer_sched_clock_init(void)
  21. {
  22. return -ENXIO;
  23. }
  24. #endif
  25. #endif