Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Just a place holder. |
| 3 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | #ifndef _SPARC_SETUP_H |
| 5 | #define _SPARC_SETUP_H |
| 6 | |
Sam Ravnborg | fbb8638 | 2014-04-21 21:39:24 +0200 | [diff] [blame] | 7 | #include <linux/interrupt.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | |
Sam Ravnborg | fbb8638 | 2014-04-21 21:39:24 +0200 | [diff] [blame] | 9 | #include <uapi/asm/setup.h> |
Daniel Hellstrom | 5fcafb7 | 2011-04-21 04:20:23 +0000 | [diff] [blame] | 10 | |
David Howells | d550bbd | 2012-03-28 18:30:03 +0100 | [diff] [blame] | 11 | extern char reboot_command[]; |
| 12 | |
Daniel Hellstrom | 5fcafb7 | 2011-04-21 04:20:23 +0000 | [diff] [blame] | 13 | #ifdef CONFIG_SPARC32 |
| 14 | /* The CPU that was used for booting |
| 15 | * Only sun4d + leon may have boot_cpu_id != 0 |
| 16 | */ |
| 17 | extern unsigned char boot_cpu_id; |
David Howells | d550bbd | 2012-03-28 18:30:03 +0100 | [diff] [blame] | 18 | |
David Howells | d550bbd | 2012-03-28 18:30:03 +0100 | [diff] [blame] | 19 | extern unsigned long empty_zero_page; |
| 20 | |
| 21 | extern int serial_console; |
| 22 | static inline int con_is_present(void) |
| 23 | { |
| 24 | return serial_console ? 0 : 1; |
| 25 | } |
Sam Ravnborg | fbb8638 | 2014-04-21 21:39:24 +0200 | [diff] [blame] | 26 | |
| 27 | /* from irq_32.c */ |
| 28 | extern volatile unsigned char *fdc_status; |
| 29 | extern char *pdma_vaddr; |
| 30 | extern unsigned long pdma_size; |
| 31 | extern volatile int doing_pdma; |
| 32 | |
| 33 | /* This is software state */ |
| 34 | extern char *pdma_base; |
| 35 | extern unsigned long pdma_areasize; |
| 36 | |
| 37 | int sparc_floppy_request_irq(unsigned int irq, irq_handler_t irq_handler); |
| 38 | |
Sam Ravnborg | d191723 | 2014-04-21 21:39:28 +0200 | [diff] [blame] | 39 | /* setup_32.c */ |
| 40 | extern unsigned long cmdline_memory_size; |
| 41 | |
Sam Ravnborg | 8885ec7 | 2014-04-21 21:39:31 +0200 | [diff] [blame] | 42 | /* devices.c */ |
| 43 | void __init device_scan(void); |
| 44 | |
Sam Ravnborg | 9edfae3 | 2014-04-21 21:39:38 +0200 | [diff] [blame] | 45 | /* unaligned_32.c */ |
| 46 | unsigned long safe_compute_effective_address(struct pt_regs *, unsigned int); |
| 47 | |
Daniel Hellstrom | 5fcafb7 | 2011-04-21 04:20:23 +0000 | [diff] [blame] | 48 | #endif |
| 49 | |
Sam Ravnborg | 8df5262 | 2014-05-16 23:25:54 +0200 | [diff] [blame] | 50 | #ifdef CONFIG_SPARC64 |
| 51 | /* unaligned_64.c */ |
| 52 | int handle_ldf_stq(u32 insn, struct pt_regs *regs); |
| 53 | void handle_ld_nf(u32 insn, struct pt_regs *regs); |
| 54 | |
Sam Ravnborg | 59dec13 | 2014-05-16 23:26:07 +0200 | [diff] [blame] | 55 | /* init_64.c */ |
| 56 | extern atomic_t dcpage_flushes; |
| 57 | extern atomic_t dcpage_flushes_xcall; |
| 58 | |
Sam Ravnborg | 8c7260c | 2014-05-16 23:26:02 +0200 | [diff] [blame] | 59 | extern int sysctl_tsb_ratio; |
Sam Ravnborg | 8df5262 | 2014-05-16 23:25:54 +0200 | [diff] [blame] | 60 | #endif |
| 61 | |
Sam Ravnborg | f05a686 | 2014-05-16 23:25:50 +0200 | [diff] [blame] | 62 | void sun_do_break(void); |
David Howells | d550bbd | 2012-03-28 18:30:03 +0100 | [diff] [blame] | 63 | extern int stop_a_enabled; |
| 64 | extern int scons_pwroff; |
| 65 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 66 | #endif /* _SPARC_SETUP_H */ |