| 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 | #include <linux/config.h> | 
|  | 13 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | struct sparc64_tick_ops { | 
|  | 15 | void (*init_tick)(unsigned long); | 
|  | 16 | unsigned long (*get_tick)(void); | 
|  | 17 | unsigned long (*get_compare)(void); | 
|  | 18 | unsigned long (*add_tick)(unsigned long, unsigned long); | 
|  | 19 | unsigned long (*add_compare)(unsigned long); | 
|  | 20 | unsigned long softint_mask; | 
|  | 21 | }; | 
|  | 22 |  | 
|  | 23 | extern struct sparc64_tick_ops *tick_ops; | 
|  | 24 |  | 
|  | 25 | #ifdef CONFIG_SMP | 
|  | 26 | extern unsigned long timer_tick_offset; | 
|  | 27 | struct pt_regs; | 
|  | 28 | extern void timer_tick_interrupt(struct pt_regs *); | 
|  | 29 | #endif | 
|  | 30 |  | 
|  | 31 | extern unsigned long sparc64_get_clock_tick(unsigned int cpu); | 
|  | 32 |  | 
|  | 33 | #endif /* _SPARC64_TIMER_H */ |