setup.h 1.5 KB

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