kernel.h 2.1 KB

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