2008-03-26 04:11:55 -04:00
|
|
|
/* timer.h: System timer definitions for sun5.
|
2005-04-16 18:20:36 -04:00
|
|
|
*
|
2008-03-26 04:11:55 -04:00
|
|
|
* Copyright (C) 1997, 2008 David S. Miller (davem@davemloft.net)
|
2005-04-16 18:20:36 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SPARC64_TIMER_H
|
|
|
|
#define _SPARC64_TIMER_H
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
2008-03-26 04:11:55 -04:00
|
|
|
#include <linux/init.h>
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
struct sparc64_tick_ops {
|
|
|
|
unsigned long (*get_tick)(void);
|
2007-03-05 18:28:37 -05:00
|
|
|
int (*add_compare)(unsigned long);
|
2005-04-16 18:20:36 -04:00
|
|
|
unsigned long softint_mask;
|
2007-03-05 18:28:37 -05:00
|
|
|
void (*disable_irq)(void);
|
|
|
|
|
|
|
|
void (*init_tick)(void);
|
|
|
|
unsigned long (*add_tick)(unsigned long);
|
|
|
|
|
|
|
|
char *name;
|
2005-04-16 18:20:36 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct sparc64_tick_ops *tick_ops;
|
|
|
|
|
|
|
|
extern unsigned long sparc64_get_clock_tick(unsigned int cpu);
|
2008-03-26 04:11:55 -04:00
|
|
|
extern void __devinit setup_sparc64_timer(void);
|
|
|
|
extern void __init time_init(void);
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
#endif /* _SPARC64_TIMER_H */
|