Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Just a place holder. |
| 3 | */ |
| 4 | |
| 5 | #ifndef _SPARC_SETUP_H |
| 6 | #define _SPARC_SETUP_H |
| 7 | |
Sam Ravnborg | 7c4285d | 2008-06-06 21:06:11 +0200 | [diff] [blame] | 8 | #if defined(__sparc__) && defined(__arch64__) |
| 9 | # define COMMAND_LINE_SIZE 2048 |
| 10 | #else |
| 11 | # define COMMAND_LINE_SIZE 256 |
| 12 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
Daniel Hellstrom | 5fcafb7 | 2011-04-21 04:20:23 +0000 | [diff] [blame] | 14 | #ifdef __KERNEL__ |
| 15 | |
David Howells | d550bbd | 2012-03-28 18:30:03 +0100 | [diff] [blame] | 16 | extern char reboot_command[]; |
| 17 | |
Daniel Hellstrom | 5fcafb7 | 2011-04-21 04:20:23 +0000 | [diff] [blame] | 18 | #ifdef CONFIG_SPARC32 |
| 19 | /* The CPU that was used for booting |
| 20 | * Only sun4d + leon may have boot_cpu_id != 0 |
| 21 | */ |
| 22 | extern unsigned char boot_cpu_id; |
| 23 | extern unsigned char boot_cpu_id4; |
David Howells | d550bbd | 2012-03-28 18:30:03 +0100 | [diff] [blame] | 24 | |
| 25 | extern unsigned long empty_bad_page; |
| 26 | extern unsigned long empty_bad_page_table; |
| 27 | extern unsigned long empty_zero_page; |
| 28 | |
| 29 | extern int serial_console; |
| 30 | static inline int con_is_present(void) |
| 31 | { |
| 32 | return serial_console ? 0 : 1; |
| 33 | } |
Daniel Hellstrom | 5fcafb7 | 2011-04-21 04:20:23 +0000 | [diff] [blame] | 34 | #endif |
| 35 | |
David Howells | d550bbd | 2012-03-28 18:30:03 +0100 | [diff] [blame] | 36 | extern void sun_do_break(void); |
| 37 | extern int stop_a_enabled; |
| 38 | extern int scons_pwroff; |
| 39 | |
Daniel Hellstrom | 5fcafb7 | 2011-04-21 04:20:23 +0000 | [diff] [blame] | 40 | #endif /* __KERNEL__ */ |
| 41 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 42 | #endif /* _SPARC_SETUP_H */ |