blob: 15d8a3f645c9e7ba599753f4f94ce84875af7429 [file] [log] [blame]
Sam Ravnborg7105de82008-12-08 01:07:47 -08001#ifndef __SPARC_KERNEL_H
2#define __SPARC_KERNEL_H
Sam Ravnborg81265fd2008-12-08 01:08:24 -08003
4#include <linux/interrupt.h>
5
Sam Ravnborg53ae3412008-12-07 00:02:08 -08006/* cpu.c */
7extern const char *sparc_cpu_type;
David S. Millerc3cf5e82009-01-21 23:16:40 -08008extern const char *sparc_pmu_type;
Sam Ravnborg53ae3412008-12-07 00:02:08 -08009extern const char *sparc_fpu_type;
10
11extern unsigned int fsr_storage;
12
Sam Ravnborg8d74e322008-12-08 01:04:59 -080013#ifdef CONFIG_SPARC32
14/* cpu.c */
Sam Ravnborg53ae3412008-12-07 00:02:08 -080015extern void cpu_probe(void);
16
Sam Ravnborg8d74e322008-12-08 01:04:59 -080017/* traps_32.c */
18extern void handle_hw_divzero(struct pt_regs *regs, unsigned long pc,
19 unsigned long npc, unsigned long psr);
20/* muldiv.c */
21extern int do_user_muldiv (struct pt_regs *, unsigned long);
Sam Ravnborg81265fd2008-12-08 01:08:24 -080022
23/* irq_32.c */
24extern struct irqaction static_irqaction[];
25extern int static_irq_count;
26extern spinlock_t irq_action_lock;
27
28extern void unexpected_irq(int irq, void *dev_id, struct pt_regs * regs);
29
Sam Ravnborg8d74e322008-12-08 01:04:59 -080030#else /* CONFIG_SPARC32 */
Sam Ravnborg7105de82008-12-08 01:07:47 -080031#endif /* CONFIG_SPARC32 */
32#endif /* !(__SPARC_KERNEL_H) */