WIP FPC-III support
[linux/fpc-iii.git] / arch / sparc / include / asm / setup.h
blob72205684e51eae3b202b26806acc93252b6d189e
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Just a place holder.
4 */
5 #ifndef _SPARC_SETUP_H
6 #define _SPARC_SETUP_H
8 #include <linux/interrupt.h>
10 #include <uapi/asm/setup.h>
12 extern char reboot_command[];
14 #ifdef CONFIG_SPARC32
15 /* The CPU that was used for booting
16 * Only sun4d + leon may have boot_cpu_id != 0
18 extern unsigned char boot_cpu_id;
20 extern unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)];
22 extern int serial_console;
23 static inline int con_is_present(void)
25 return serial_console ? 0 : 1;
28 /* from irq_32.c */
29 extern volatile unsigned char *fdc_status;
30 extern char *pdma_vaddr;
31 extern unsigned long pdma_size;
32 extern volatile int doing_pdma;
34 /* This is software state */
35 extern char *pdma_base;
36 extern unsigned long pdma_areasize;
38 int sparc_floppy_request_irq(unsigned int irq, irq_handler_t irq_handler);
40 /* setup_32.c */
41 extern unsigned long cmdline_memory_size;
43 /* devices.c */
44 void __init device_scan(void);
46 /* unaligned_32.c */
47 unsigned long safe_compute_effective_address(struct pt_regs *, unsigned int);
49 #endif
51 #ifdef CONFIG_SPARC64
52 void __init start_early_boot(void);
54 /* unaligned_64.c */
55 int handle_ldf_stq(u32 insn, struct pt_regs *regs);
56 void handle_ld_nf(u32 insn, struct pt_regs *regs);
58 /* init_64.c */
59 extern atomic_t dcpage_flushes;
60 extern atomic_t dcpage_flushes_xcall;
62 extern int sysctl_tsb_ratio;
64 #ifdef CONFIG_SERIAL_SUNHV
65 void sunhv_migrate_hvcons_irq(int cpu);
66 #endif
67 #endif
68 void sun_do_break(void);
69 extern int stop_a_enabled;
70 extern int scons_pwroff;
72 #endif /* _SPARC_SETUP_H */