blob: f5fffd84d0dd815f74ba69e30ff15504edf98f65 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * Just a place holder.
3 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07004#ifndef _SPARC_SETUP_H
5#define _SPARC_SETUP_H
6
Sam Ravnborgfbb86382014-04-21 21:39:24 +02007#include <linux/interrupt.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
Sam Ravnborgfbb86382014-04-21 21:39:24 +02009#include <uapi/asm/setup.h>
Daniel Hellstrom5fcafb72011-04-21 04:20:23 +000010
David Howellsd550bbd2012-03-28 18:30:03 +010011extern char reboot_command[];
12
Daniel Hellstrom5fcafb72011-04-21 04:20:23 +000013#ifdef CONFIG_SPARC32
14/* The CPU that was used for booting
15 * Only sun4d + leon may have boot_cpu_id != 0
16 */
17extern unsigned char boot_cpu_id;
David Howellsd550bbd2012-03-28 18:30:03 +010018
David Howellsd550bbd2012-03-28 18:30:03 +010019extern unsigned long empty_zero_page;
20
21extern int serial_console;
22static inline int con_is_present(void)
23{
24 return serial_console ? 0 : 1;
25}
Sam Ravnborgfbb86382014-04-21 21:39:24 +020026
27/* from irq_32.c */
28extern volatile unsigned char *fdc_status;
29extern char *pdma_vaddr;
30extern unsigned long pdma_size;
31extern volatile int doing_pdma;
32
33/* This is software state */
34extern char *pdma_base;
35extern unsigned long pdma_areasize;
36
37int sparc_floppy_request_irq(unsigned int irq, irq_handler_t irq_handler);
38
Sam Ravnborgd1917232014-04-21 21:39:28 +020039/* setup_32.c */
40extern unsigned long cmdline_memory_size;
41
Sam Ravnborg8885ec72014-04-21 21:39:31 +020042/* devices.c */
43void __init device_scan(void);
44
Sam Ravnborg9edfae32014-04-21 21:39:38 +020045/* unaligned_32.c */
46unsigned long safe_compute_effective_address(struct pt_regs *, unsigned int);
47
Daniel Hellstrom5fcafb72011-04-21 04:20:23 +000048#endif
49
Sam Ravnborg8df52622014-05-16 23:25:54 +020050#ifdef CONFIG_SPARC64
51/* unaligned_64.c */
52int handle_ldf_stq(u32 insn, struct pt_regs *regs);
53void handle_ld_nf(u32 insn, struct pt_regs *regs);
54
Sam Ravnborg59dec132014-05-16 23:26:07 +020055/* init_64.c */
56extern atomic_t dcpage_flushes;
57extern atomic_t dcpage_flushes_xcall;
58
Sam Ravnborg8c7260c2014-05-16 23:26:02 +020059extern int sysctl_tsb_ratio;
Sam Ravnborg8df52622014-05-16 23:25:54 +020060#endif
61
Sam Ravnborgf05a6862014-05-16 23:25:50 +020062void sun_do_break(void);
David Howellsd550bbd2012-03-28 18:30:03 +010063extern int stop_a_enabled;
64extern int scons_pwroff;
65
Linus Torvalds1da177e2005-04-16 15:20:36 -070066#endif /* _SPARC_SETUP_H */