setup.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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[PAGE_SIZE / sizeof(unsigned long)];
  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. void __init start_early_boot(void);
  38. /* unaligned_64.c */
  39. int handle_ldf_stq(u32 insn, struct pt_regs *regs);
  40. void handle_ld_nf(u32 insn, struct pt_regs *regs);
  41. /* init_64.c */
  42. extern atomic_t dcpage_flushes;
  43. extern atomic_t dcpage_flushes_xcall;
  44. extern int sysctl_tsb_ratio;
  45. #ifdef CONFIG_SERIAL_SUNHV
  46. void sunhv_migrate_hvcons_irq(int cpu);
  47. #endif
  48. #endif
  49. void sun_do_break(void);
  50. extern int stop_a_enabled;
  51. extern int scons_pwroff;
  52. #endif /* _SPARC_SETUP_H */