2005-04-17 06:20:36 +08:00
|
|
|
/*
|
|
|
|
* Just a place holder.
|
|
|
|
*/
|
|
|
|
#ifndef _SPARC_SETUP_H
|
|
|
|
#define _SPARC_SETUP_H
|
|
|
|
|
2014-04-22 03:39:24 +08:00
|
|
|
#include <linux/interrupt.h>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2014-04-22 03:39:24 +08:00
|
|
|
#include <uapi/asm/setup.h>
|
2011-04-21 12:20:23 +08:00
|
|
|
|
2012-03-29 01:30:03 +08:00
|
|
|
extern char reboot_command[];
|
|
|
|
|
2011-04-21 12:20:23 +08:00
|
|
|
#ifdef CONFIG_SPARC32
|
|
|
|
/* The CPU that was used for booting
|
|
|
|
* Only sun4d + leon may have boot_cpu_id != 0
|
|
|
|
*/
|
|
|
|
extern unsigned char boot_cpu_id;
|
2012-03-29 01:30:03 +08:00
|
|
|
|
|
|
|
extern unsigned long empty_zero_page;
|
|
|
|
|
|
|
|
extern int serial_console;
|
|
|
|
static inline int con_is_present(void)
|
|
|
|
{
|
|
|
|
return serial_console ? 0 : 1;
|
|
|
|
}
|
2014-04-22 03:39:24 +08:00
|
|
|
|
|
|
|
/* from irq_32.c */
|
|
|
|
extern volatile unsigned char *fdc_status;
|
|
|
|
extern char *pdma_vaddr;
|
|
|
|
extern unsigned long pdma_size;
|
|
|
|
extern volatile int doing_pdma;
|
|
|
|
|
|
|
|
/* This is software state */
|
|
|
|
extern char *pdma_base;
|
|
|
|
extern unsigned long pdma_areasize;
|
|
|
|
|
|
|
|
int sparc_floppy_request_irq(unsigned int irq, irq_handler_t irq_handler);
|
|
|
|
|
2011-04-21 12:20:23 +08:00
|
|
|
#endif
|
|
|
|
|
2012-03-29 01:30:03 +08:00
|
|
|
extern void sun_do_break(void);
|
|
|
|
extern int stop_a_enabled;
|
|
|
|
extern int scons_pwroff;
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
#endif /* _SPARC_SETUP_H */
|