Sam Ravnborg | 7105de8 | 2008-12-08 01:07:47 -0800 | [diff] [blame] | 1 | #ifndef __SPARC_KERNEL_H |
| 2 | #define __SPARC_KERNEL_H |
Sam Ravnborg | 81265fd | 2008-12-08 01:08:24 -0800 | [diff] [blame] | 3 | |
| 4 | #include <linux/interrupt.h> |
| 5 | |
Sam Ravnborg | 53ae341 | 2008-12-07 00:02:08 -0800 | [diff] [blame] | 6 | /* cpu.c */ |
| 7 | extern const char *sparc_cpu_type; |
David S. Miller | c3cf5e8 | 2009-01-21 23:16:40 -0800 | [diff] [blame^] | 8 | extern const char *sparc_pmu_type; |
Sam Ravnborg | 53ae341 | 2008-12-07 00:02:08 -0800 | [diff] [blame] | 9 | extern const char *sparc_fpu_type; |
| 10 | |
| 11 | extern unsigned int fsr_storage; |
| 12 | |
Sam Ravnborg | 8d74e32 | 2008-12-08 01:04:59 -0800 | [diff] [blame] | 13 | #ifdef CONFIG_SPARC32 |
| 14 | /* cpu.c */ |
Sam Ravnborg | 53ae341 | 2008-12-07 00:02:08 -0800 | [diff] [blame] | 15 | extern void cpu_probe(void); |
| 16 | |
Sam Ravnborg | 8d74e32 | 2008-12-08 01:04:59 -0800 | [diff] [blame] | 17 | /* traps_32.c */ |
| 18 | extern void handle_hw_divzero(struct pt_regs *regs, unsigned long pc, |
| 19 | unsigned long npc, unsigned long psr); |
| 20 | /* muldiv.c */ |
| 21 | extern int do_user_muldiv (struct pt_regs *, unsigned long); |
Sam Ravnborg | 81265fd | 2008-12-08 01:08:24 -0800 | [diff] [blame] | 22 | |
| 23 | /* irq_32.c */ |
| 24 | extern struct irqaction static_irqaction[]; |
| 25 | extern int static_irq_count; |
| 26 | extern spinlock_t irq_action_lock; |
| 27 | |
| 28 | extern void unexpected_irq(int irq, void *dev_id, struct pt_regs * regs); |
| 29 | |
Sam Ravnborg | 8d74e32 | 2008-12-08 01:04:59 -0800 | [diff] [blame] | 30 | #else /* CONFIG_SPARC32 */ |
Sam Ravnborg | 7105de8 | 2008-12-08 01:07:47 -0800 | [diff] [blame] | 31 | #endif /* CONFIG_SPARC32 */ |
| 32 | #endif /* !(__SPARC_KERNEL_H) */ |