]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - include/asm-sparc64/timer.h
[SPARC64]: Fix sparse warnings in arch/sparc64/kernel/time.c
[mirror_ubuntu-artful-kernel.git] / include / asm-sparc64 / timer.h
CommitLineData
cf3d7c1e 1/* timer.h: System timer definitions for sun5.
1da177e4 2 *
cf3d7c1e 3 * Copyright (C) 1997, 2008 David S. Miller (davem@davemloft.net)
1da177e4
LT
4 */
5
6#ifndef _SPARC64_TIMER_H
7#define _SPARC64_TIMER_H
8
9#include <linux/types.h>
cf3d7c1e 10#include <linux/init.h>
1da177e4 11
1da177e4 12struct sparc64_tick_ops {
1da177e4 13 unsigned long (*get_tick)(void);
112f4871 14 int (*add_compare)(unsigned long);
1da177e4 15 unsigned long softint_mask;
112f4871
DM
16 void (*disable_irq)(void);
17
18 void (*init_tick)(void);
19 unsigned long (*add_tick)(unsigned long);
20
21 char *name;
1da177e4
LT
22};
23
24extern struct sparc64_tick_ops *tick_ops;
25
1da177e4 26extern unsigned long sparc64_get_clock_tick(unsigned int cpu);
cf3d7c1e
DM
27extern void __devinit setup_sparc64_timer(void);
28extern void __init time_init(void);
1da177e4
LT
29
30#endif /* _SPARC64_TIMER_H */