xref: /linux/arch/sparc/include/asm/setup.h (revision e2683c8868d03382da7e1ce8453b543a043066d1)
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 
8 #include <linux/interrupt.h>
9 
10 #include <uapi/asm/setup.h>
11 
12 extern char reboot_command[];
13 
14 #ifdef CONFIG_SPARC32
15 /* The CPU that was used for booting
16  * Only sun4d + leon may have boot_cpu_id != 0
17  */
18 extern unsigned char boot_cpu_id;
19 
20 extern int serial_console;
21 static inline int con_is_present(void)
22 {
23 	return serial_console ? 0 : 1;
24 }
25 
26 /* from irq_32.c */
27 extern volatile unsigned char *fdc_status;
28 extern char *pdma_vaddr;
29 extern unsigned long pdma_size;
30 extern volatile int doing_pdma;
31 
32 /* This is software state */
33 extern char *pdma_base;
34 extern unsigned long pdma_areasize;
35 
36 int sparc_floppy_request_irq(unsigned int irq, irq_handler_t irq_handler);
37 
38 /* setup_32.c */
39 extern unsigned long cmdline_memory_size;
40 
41 /* devices.c */
42 void __init device_scan(void);
43 
44 /* unaligned_32.c */
45 unsigned long safe_compute_effective_address(struct pt_regs *, unsigned int);
46 
47 #endif
48 
49 #ifdef CONFIG_SPARC64
50 void __init start_early_boot(void);
51 
52 /* unaligned_64.c */
53 int handle_ldf_stq(u32 insn, struct pt_regs *regs);
54 void handle_ld_nf(u32 insn, struct pt_regs *regs);
55 
56 /* init_64.c */
57 extern atomic_t dcpage_flushes;
58 extern atomic_t dcpage_flushes_xcall;
59 
60 extern int sysctl_tsb_ratio;
61 
62 #ifdef CONFIG_SERIAL_SUNHV
63 void sunhv_migrate_hvcons_irq(int cpu);
64 #endif
65 #endif
66 void sun_do_break(void);
67 extern int stop_a_enabled;
68 extern int scons_pwroff;
69 
70 #endif /* _SPARC_SETUP_H */
71