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