setup.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. #endif
  41. void sun_do_break(void);
  42. extern int stop_a_enabled;
  43. extern int scons_pwroff;
  44. #endif /* _SPARC_SETUP_H */