aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/kernel.h
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2011-01-28 17:08:18 -0500
committerDavid S. Miller <davem@davemloft.net>2011-03-16 21:19:08 -0400
commitb7afdb7e85d97294efa24fbfef7b1fa196ca808c (patch)
tree2e7e8c1ceb01e11cb5c5150c6b2f69b4eb66a6eb /arch/sparc/kernel/kernel.h
parente046b1e978f82e29da7670d6d680567e30dec69a (diff)
sparc32: add irq + smp declarations to headers
In preparation for cleaning up a number of files add declarations for irq and smp related data/functions to the relevant headers. This showed that the extern declaration of cputypval differed in the two files where it was used. As cputypval is defined like this: cputypval: .asciz "sun4c" the correct representation is a char array. Fix users to use the new declaration. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/kernel.h')
-rw-r--r--arch/sparc/kernel/kernel.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/arch/sparc/kernel/kernel.h b/arch/sparc/kernel/kernel.h
index 15d8a3f645c9..7eb736314381 100644
--- a/arch/sparc/kernel/kernel.h
+++ b/arch/sparc/kernel/kernel.h
@@ -26,6 +26,53 @@ extern int static_irq_count;
26extern spinlock_t irq_action_lock; 26extern spinlock_t irq_action_lock;
27 27
28extern void unexpected_irq(int irq, void *dev_id, struct pt_regs * regs); 28extern void unexpected_irq(int irq, void *dev_id, struct pt_regs * regs);
29extern void init_IRQ(void);
30
31/* sun4c_irq.c */
32extern void sun4c_init_IRQ(void);
33
34/* sun4m_irq.c */
35extern unsigned int lvl14_resolution;
36
37extern void sun4m_init_IRQ(void);
38extern void sun4m_clear_profile_irq(int cpu);
39
40/* sun4d_irq.c */
41extern spinlock_t sun4d_imsk_lock;
42
43extern void sun4d_init_IRQ(void);
44extern int sun4d_request_irq(unsigned int irq,
45 irq_handler_t handler,
46 unsigned long irqflags,
47 const char *devname, void *dev_id);
48extern int show_sun4d_interrupts(struct seq_file *, void *);
49extern void sun4d_distribute_irqs(void);
50extern void sun4d_free_irq(unsigned int irq, void *dev_id);
51
52/* head_32.S */
53extern unsigned int t_nmi[];
54extern unsigned int linux_trap_ipi15_sun4d[];
55extern unsigned int linux_trap_ipi15_sun4m[];
56
57extern unsigned long trapbase_cpu1[];
58extern unsigned long trapbase_cpu2[];
59extern unsigned long trapbase_cpu3[];
60
61extern char cputypval[];
62
63/* entry.S */
64extern unsigned long lvl14_save[4];
65extern unsigned int real_irq_entry[];
66extern unsigned int smp4d_ticker[];
67extern unsigned int patchme_maybe_smp_msg[];
68
69extern void floppy_hardint(void);
70
71/* trampoline_32.S */
72extern int __smp4m_processor_id(void);
73extern int __smp4d_processor_id(void);
74extern unsigned long sun4m_cpu_startup;
75extern unsigned long sun4d_cpu_startup;
29 76
30#else /* CONFIG_SPARC32 */ 77#else /* CONFIG_SPARC32 */
31#endif /* CONFIG_SPARC32 */ 78#endif /* CONFIG_SPARC32 */