timer_32.h 544 B

123456789101112131415161718192021
  1. /*
  2. * timer.h: Definitions for the timer chips on the Sparc.
  3. *
  4. * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
  5. */
  6. #ifndef _SPARC_TIMER_H
  7. #define _SPARC_TIMER_H
  8. #include <asm/cpu_type.h> /* For SUN4M_NCPUS */
  9. #include <asm/btfixup.h>
  10. extern __volatile__ unsigned int *master_l10_counter;
  11. /* FIXME: Make do_[gs]ettimeofday btfixup calls */
  12. struct timespec;
  13. BTFIXUPDEF_CALL(int, bus_do_settimeofday, struct timespec *tv)
  14. #define bus_do_settimeofday(tv) BTFIXUP_CALL(bus_do_settimeofday)(tv)
  15. #endif /* !(_SPARC_TIMER_H) */