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);
|
|
|
|
|
2014-04-22 03:39:28 +08:00
|
|
|
/* setup_32.c */
|
|
|
|
extern unsigned long cmdline_memory_size;
|
|
|
|
|
2014-04-22 03:39:31 +08:00
|
|
|
/* devices.c */
|
|
|
|
void __init device_scan(void);
|
|
|
|
|
2014-04-22 03:39:38 +08:00
|
|
|
/* unaligned_32.c */
|
|
|
|
unsigned long safe_compute_effective_address(struct pt_regs *, unsigned int);
|
|
|
|
|
2011-04-21 12:20:23 +08:00
|
|
|
#endif
|
|
|
|
|
2014-05-17 05:25:54 +08:00
|
|
|
#ifdef CONFIG_SPARC64
|
|
|
|
/* unaligned_64.c */
|
|
|
|
int handle_ldf_stq(u32 insn, struct pt_regs *regs);
|
|
|
|
void handle_ld_nf(u32 insn, struct pt_regs *regs);
|
|
|
|
|
2014-05-17 05:26:07 +08:00
|
|
|
/* init_64.c */
|
|
|
|
extern atomic_t dcpage_flushes;
|
|
|
|
extern atomic_t dcpage_flushes_xcall;
|
|
|
|
|
2014-05-17 05:26:02 +08:00
|
|
|
extern int sysctl_tsb_ratio;
|
2014-05-17 05:25:54 +08:00
|
|
|
#endif
|
|
|
|
|
2014-05-17 05:25:50 +08:00
|
|
|
void sun_do_break(void);
|
2012-03-29 01:30:03 +08:00
|
|
|
extern int stop_a_enabled;
|
|
|
|
extern int scons_pwroff;
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
#endif /* _SPARC_SETUP_H */
|