kernel.h 2.2 KB

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