kernel.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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_pmu_type;
  7. extern unsigned int fsr_storage;
  8. extern int ncpus_probed;
  9. #ifdef CONFIG_SPARC64
  10. /* setup_64.c */
  11. struct seq_file;
  12. extern void cpucap_info(struct seq_file *);
  13. #endif
  14. #ifdef CONFIG_SPARC32
  15. /* cpu.c */
  16. extern void cpu_probe(void);
  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);
  22. /* irq_32.c */
  23. extern struct irqaction static_irqaction[];
  24. extern int static_irq_count;
  25. extern spinlock_t irq_action_lock;
  26. extern void unexpected_irq(int irq, void *dev_id, struct pt_regs * regs);
  27. extern void init_IRQ(void);
  28. /* sun4c_irq.c */
  29. extern void sun4c_init_IRQ(void);
  30. /* sun4m_irq.c */
  31. extern unsigned int lvl14_resolution;
  32. extern void sun4m_init_IRQ(void);
  33. extern void sun4m_unmask_profile_irq(void);
  34. extern void sun4m_clear_profile_irq(int cpu);
  35. /* sun4d_irq.c */
  36. extern spinlock_t sun4d_imsk_lock;
  37. extern void sun4d_init_IRQ(void);
  38. extern int sun4d_request_irq(unsigned int irq,
  39. irq_handler_t handler,
  40. unsigned long irqflags,
  41. const char *devname, void *dev_id);
  42. extern int show_sun4d_interrupts(struct seq_file *, void *);
  43. extern void sun4d_distribute_irqs(void);
  44. extern void sun4d_free_irq(unsigned int irq, void *dev_id);
  45. /* head_32.S */
  46. extern unsigned int t_nmi[];
  47. extern unsigned int linux_trap_ipi15_sun4d[];
  48. extern unsigned int linux_trap_ipi15_sun4m[];
  49. extern struct tt_entry trapbase_cpu1;
  50. extern struct tt_entry trapbase_cpu2;
  51. extern struct tt_entry trapbase_cpu3;
  52. extern char cputypval[];
  53. /* entry.S */
  54. extern unsigned long lvl14_save[4];
  55. extern unsigned int real_irq_entry[];
  56. extern unsigned int smp4d_ticker[];
  57. extern unsigned int patchme_maybe_smp_msg[];
  58. extern void floppy_hardint(void);
  59. /* trampoline_32.S */
  60. extern int __smp4m_processor_id(void);
  61. extern int __smp4d_processor_id(void);
  62. extern unsigned long sun4m_cpu_startup;
  63. extern unsigned long sun4d_cpu_startup;
  64. #else /* CONFIG_SPARC32 */
  65. #endif /* CONFIG_SPARC32 */
  66. #endif /* !(__SPARC_KERNEL_H) */