blob: 8a83699a55072848d7f72854c69a5d7144362223 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * Just a place holder.
3 */
4
5#ifndef _SPARC_SETUP_H
6#define _SPARC_SETUP_H
7
Sam Ravnborg7c4285d2008-06-06 21:06:11 +02008#if defined(__sparc__) && defined(__arch64__)
9# define COMMAND_LINE_SIZE 2048
10#else
11# define COMMAND_LINE_SIZE 256
12#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
Daniel Hellstrom5fcafb72011-04-21 04:20:23 +000014#ifdef __KERNEL__
15
David Howellsd550bbd2012-03-28 18:30:03 +010016extern char reboot_command[];
17
Daniel Hellstrom5fcafb72011-04-21 04:20:23 +000018#ifdef CONFIG_SPARC32
19/* The CPU that was used for booting
20 * Only sun4d + leon may have boot_cpu_id != 0
21 */
22extern unsigned char boot_cpu_id;
David Howellsd550bbd2012-03-28 18:30:03 +010023
David Howellsd550bbd2012-03-28 18:30:03 +010024extern unsigned long empty_zero_page;
25
26extern int serial_console;
27static inline int con_is_present(void)
28{
29 return serial_console ? 0 : 1;
30}
Daniel Hellstrom5fcafb72011-04-21 04:20:23 +000031#endif
32
David Howellsd550bbd2012-03-28 18:30:03 +010033extern void sun_do_break(void);
34extern int stop_a_enabled;
35extern int scons_pwroff;
36
Daniel Hellstrom5fcafb72011-04-21 04:20:23 +000037#endif /* __KERNEL__ */
38
Linus Torvalds1da177e2005-04-16 15:20:36 -070039#endif /* _SPARC_SETUP_H */