blob: 00497abec996aa1c001cacd35f1444f251b26cae [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;
23extern unsigned char boot_cpu_id4;
David Howellsd550bbd2012-03-28 18:30:03 +010024
25extern unsigned long empty_bad_page;
26extern unsigned long empty_bad_page_table;
27extern unsigned long empty_zero_page;
28
29extern int serial_console;
30static inline int con_is_present(void)
31{
32 return serial_console ? 0 : 1;
33}
Daniel Hellstrom5fcafb72011-04-21 04:20:23 +000034#endif
35
David Howellsd550bbd2012-03-28 18:30:03 +010036extern void sun_do_break(void);
37extern int stop_a_enabled;
38extern int scons_pwroff;
39
Daniel Hellstrom5fcafb72011-04-21 04:20:23 +000040#endif /* __KERNEL__ */
41
Linus Torvalds1da177e2005-04-16 15:20:36 -070042#endif /* _SPARC_SETUP_H */