blob: 1a91e11dd10493a0c7bbce0316276e25ffa2e14e [file] [log] [blame]
Sam Ravnborgf5e706a2008-07-17 21:55:51 -07001/*
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
7
8#ifndef _SPARC_TIMER_H
9#define _SPARC_TIMER_H
10
David Howellsd550bbd2012-03-28 18:30:03 +010011#include <asm/cpu_type.h> /* For SUN4M_NCPUS */
Sam Ravnborgf5e706a2008-07-17 21:55:51 -070012#include <asm/btfixup.h>
13
Sam Ravnborgf5e706a2008-07-17 21:55:51 -070014extern __volatile__ unsigned int *master_l10_counter;
Sam Ravnborgf5e706a2008-07-17 21:55:51 -070015
16/* FIXME: Make do_[gs]ettimeofday btfixup calls */
David Howellsd550bbd2012-03-28 18:30:03 +010017struct timespec;
Sam Ravnborgf5e706a2008-07-17 21:55:51 -070018BTFIXUPDEF_CALL(int, bus_do_settimeofday, struct timespec *tv)
19#define bus_do_settimeofday(tv) BTFIXUP_CALL(bus_do_settimeofday)(tv)
20
21#endif /* !(_SPARC_TIMER_H) */