blob: ccbd69448866f72cbc6daf331dc0953c8e09f575 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/* $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
7#ifndef _SPARC64_TIMER_H
8#define _SPARC64_TIMER_H
9
10#include <linux/types.h>
11
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
Linus Torvalds1da177e2005-04-16 15:20:36 -070013struct sparc64_tick_ops {
Linus Torvalds1da177e2005-04-16 15:20:36 -070014 unsigned long (*get_tick)(void);
David S. Miller112f4872007-03-05 15:28:37 -080015 int (*add_compare)(unsigned long);
Linus Torvalds1da177e2005-04-16 15:20:36 -070016 unsigned long softint_mask;
David S. Miller112f4872007-03-05 15:28:37 -080017 void (*disable_irq)(void);
18
19 void (*init_tick)(void);
20 unsigned long (*add_tick)(unsigned long);
21
22 char *name;
Linus Torvalds1da177e2005-04-16 15:20:36 -070023};
24
25extern struct sparc64_tick_ops *tick_ops;
26
Linus Torvalds1da177e2005-04-16 15:20:36 -070027extern unsigned long sparc64_get_clock_tick(unsigned int cpu);
28
29#endif /* _SPARC64_TIMER_H */