setup.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Just a place holder.
  3. */
  4. #ifndef _SPARC_SETUP_H
  5. #define _SPARC_SETUP_H
  6. #include <linux/interrupt.h>
  7. #include <uapi/asm/setup.h>
  8. extern char reboot_command[];
  9. #ifdef CONFIG_SPARC32
  10. /* The CPU that was used for booting
  11. * Only sun4d + leon may have boot_cpu_id != 0
  12. */
  13. extern unsigned char boot_cpu_id;
  14. extern unsigned long empty_zero_page;
  15. extern int serial_console;
  16. static inline int con_is_present(void)
  17. {
  18. return serial_console ? 0 : 1;
  19. }
  20. /* from irq_32.c */
  21. extern volatile unsigned char *fdc_status;
  22. extern char *pdma_vaddr;
  23. extern unsigned long pdma_size;
  24. extern volatile int doing_pdma;
  25. /* This is software state */
  26. extern char *pdma_base;
  27. extern unsigned long pdma_areasize;
  28. int sparc_floppy_request_irq(unsigned int irq, irq_handler_t irq_handler);
  29. /* setup_32.c */
  30. extern unsigned long cmdline_memory_size;
  31. /* devices.c */
  32. void __init device_scan(void);
  33. /* unaligned_32.c */
  34. unsigned long safe_compute_effective_address(struct pt_regs *, unsigned int);
  35. #endif
  36. #ifdef CONFIG_SPARC64
  37. /* unaligned_64.c */
  38. int handle_ldf_stq(u32 insn, struct pt_regs *regs);
  39. void handle_ld_nf(u32 insn, struct pt_regs *regs);
  40. /* init_64.c */
  41. extern atomic_t dcpage_flushes;
  42. extern atomic_t dcpage_flushes_xcall;
  43. extern int sysctl_tsb_ratio;
  44. #endif
  45. void sun_do_break(void);
  46. extern int stop_a_enabled;
  47. extern int scons_pwroff;
  48. #endif /* _SPARC_SETUP_H */