Commit | Line | Data |
---|---|---|
7105de84 SR |
1 | #ifndef __SPARC_KERNEL_H |
2 | #define __SPARC_KERNEL_H | |
81265fd9 SR |
3 | |
4 | #include <linux/interrupt.h> | |
5 | ||
a2a211cb SR |
6 | #include <asm/traps.h> |
7 | ||
53ae3419 SR |
8 | /* cpu.c */ |
9 | extern const char *sparc_cpu_type; | |
c3cf5e8c | 10 | extern const char *sparc_pmu_type; |
53ae3419 SR |
11 | extern const char *sparc_fpu_type; |
12 | ||
13 | extern unsigned int fsr_storage; | |
14 | ||
8d74e32a SR |
15 | #ifdef CONFIG_SPARC32 |
16 | /* cpu.c */ | |
53ae3419 SR |
17 | extern void cpu_probe(void); |
18 | ||
8d74e32a SR |
19 | /* traps_32.c */ |
20 | extern void handle_hw_divzero(struct pt_regs *regs, unsigned long pc, | |
21 | unsigned long npc, unsigned long psr); | |
22 | /* muldiv.c */ | |
23 | extern int do_user_muldiv (struct pt_regs *, unsigned long); | |
81265fd9 SR |
24 | |
25 | /* irq_32.c */ | |
26 | extern struct irqaction static_irqaction[]; | |
27 | extern int static_irq_count; | |
28 | extern spinlock_t irq_action_lock; | |
29 | ||
30 | extern void unexpected_irq(int irq, void *dev_id, struct pt_regs * regs); | |
b7afdb7e SR |
31 | extern void init_IRQ(void); |
32 | ||
33 | /* sun4c_irq.c */ | |
34 | extern void sun4c_init_IRQ(void); | |
35 | ||
36 | /* sun4m_irq.c */ | |
37 | extern unsigned int lvl14_resolution; | |
38 | ||
39 | extern void sun4m_init_IRQ(void); | |
40 | extern void sun4m_clear_profile_irq(int cpu); | |
41 | ||
42 | /* sun4d_irq.c */ | |
43 | extern spinlock_t sun4d_imsk_lock; | |
44 | ||
45 | extern void sun4d_init_IRQ(void); | |
46 | extern int sun4d_request_irq(unsigned int irq, | |
47 | irq_handler_t handler, | |
48 | unsigned long irqflags, | |
49 | const char *devname, void *dev_id); | |
50 | extern int show_sun4d_interrupts(struct seq_file *, void *); | |
51 | extern void sun4d_distribute_irqs(void); | |
52 | extern void sun4d_free_irq(unsigned int irq, void *dev_id); | |
53 | ||
54 | /* head_32.S */ | |
55 | extern unsigned int t_nmi[]; | |
56 | extern unsigned int linux_trap_ipi15_sun4d[]; | |
57 | extern unsigned int linux_trap_ipi15_sun4m[]; | |
58 | ||
a2a211cb SR |
59 | extern struct tt_entry trapbase_cpu1; |
60 | extern struct tt_entry trapbase_cpu2; | |
61 | extern struct tt_entry trapbase_cpu3; | |
b7afdb7e SR |
62 | |
63 | extern char cputypval[]; | |
64 | ||
65 | /* entry.S */ | |
66 | extern unsigned long lvl14_save[4]; | |
67 | extern unsigned int real_irq_entry[]; | |
68 | extern unsigned int smp4d_ticker[]; | |
69 | extern unsigned int patchme_maybe_smp_msg[]; | |
70 | ||
71 | extern void floppy_hardint(void); | |
72 | ||
73 | /* trampoline_32.S */ | |
74 | extern int __smp4m_processor_id(void); | |
75 | extern int __smp4d_processor_id(void); | |
76 | extern unsigned long sun4m_cpu_startup; | |
77 | extern unsigned long sun4d_cpu_startup; | |
81265fd9 | 78 | |
8d74e32a | 79 | #else /* CONFIG_SPARC32 */ |
7105de84 SR |
80 | #endif /* CONFIG_SPARC32 */ |
81 | #endif /* !(__SPARC_KERNEL_H) */ |