timer_64.h 659 B

123456789101112131415161718192021222324252627282930
  1. /* timer.h: System timer definitions for sun5.
  2. *
  3. * Copyright (C) 1997, 2008 David S. Miller (davem@davemloft.net)
  4. */
  5. #ifndef _SPARC64_TIMER_H
  6. #define _SPARC64_TIMER_H
  7. #include <linux/types.h>
  8. #include <linux/init.h>
  9. struct sparc64_tick_ops {
  10. unsigned long long (*get_tick)(void);
  11. int (*add_compare)(unsigned long);
  12. unsigned long softint_mask;
  13. void (*disable_irq)(void);
  14. void (*init_tick)(void);
  15. unsigned long (*add_tick)(unsigned long);
  16. char *name;
  17. };
  18. extern struct sparc64_tick_ops *tick_ops;
  19. unsigned long sparc64_get_clock_tick(unsigned int cpu);
  20. void setup_sparc64_timer(void);
  21. void __init time_init(void);
  22. #endif /* _SPARC64_TIMER_H */