timer.h 816 B

123456789101112131415161718192021222324252627282930313233
  1. /* $Id: timer.h,v 1.3 2000/05/09 17:40:15 davem Exp $
  2. * timer.h: System timer definitions for sun5.
  3. *
  4. * Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu)
  5. */
  6. #ifndef _SPARC64_TIMER_H
  7. #define _SPARC64_TIMER_H
  8. #include <linux/types.h>
  9. #include <linux/config.h>
  10. struct sparc64_tick_ops {
  11. void (*init_tick)(unsigned long);
  12. unsigned long (*get_tick)(void);
  13. unsigned long (*get_compare)(void);
  14. unsigned long (*add_tick)(unsigned long, unsigned long);
  15. unsigned long (*add_compare)(unsigned long);
  16. unsigned long softint_mask;
  17. };
  18. extern struct sparc64_tick_ops *tick_ops;
  19. #ifdef CONFIG_SMP
  20. extern unsigned long timer_tick_offset;
  21. struct pt_regs;
  22. extern void timer_tick_interrupt(struct pt_regs *);
  23. #endif
  24. extern unsigned long sparc64_get_clock_tick(unsigned int cpu);
  25. #endif /* _SPARC64_TIMER_H */