Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
| 7 | #ifndef _SPARC64_TIMER_H |
| 8 | #define _SPARC64_TIMER_H |
| 9 | |
| 10 | #include <linux/types.h> |
| 11 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | struct sparc64_tick_ops { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | unsigned long (*get_tick)(void); |
David S. Miller | 112f487 | 2007-03-05 15:28:37 -0800 | [diff] [blame] | 15 | int (*add_compare)(unsigned long); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | unsigned long softint_mask; |
David S. Miller | 112f487 | 2007-03-05 15:28:37 -0800 | [diff] [blame] | 17 | void (*disable_irq)(void); |
| 18 | |
| 19 | void (*init_tick)(void); |
| 20 | unsigned long (*add_tick)(unsigned long); |
| 21 | |
| 22 | char *name; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | }; |
| 24 | |
| 25 | extern struct sparc64_tick_ops *tick_ops; |
| 26 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | extern unsigned long sparc64_get_clock_tick(unsigned int cpu); |
| 28 | |
| 29 | #endif /* _SPARC64_TIMER_H */ |