0001
0002
0003
0004
0005 #ifndef _SPARC_SETUP_H
0006 #define _SPARC_SETUP_H
0007
0008 #include <linux/interrupt.h>
0009
0010 #include <uapi/asm/setup.h>
0011
0012 extern char reboot_command[];
0013
0014 #ifdef CONFIG_SPARC32
0015
0016
0017
0018 extern unsigned char boot_cpu_id;
0019
0020 extern unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)];
0021
0022 extern int serial_console;
0023 static inline int con_is_present(void)
0024 {
0025 return serial_console ? 0 : 1;
0026 }
0027
0028
0029 extern volatile unsigned char *fdc_status;
0030 extern char *pdma_vaddr;
0031 extern unsigned long pdma_size;
0032 extern volatile int doing_pdma;
0033
0034
0035 extern char *pdma_base;
0036 extern unsigned long pdma_areasize;
0037
0038 int sparc_floppy_request_irq(unsigned int irq, irq_handler_t irq_handler);
0039
0040
0041 extern unsigned long cmdline_memory_size;
0042
0043
0044 void __init device_scan(void);
0045
0046
0047 unsigned long safe_compute_effective_address(struct pt_regs *, unsigned int);
0048
0049 #endif
0050
0051 #ifdef CONFIG_SPARC64
0052 void __init start_early_boot(void);
0053
0054
0055 int handle_ldf_stq(u32 insn, struct pt_regs *regs);
0056 void handle_ld_nf(u32 insn, struct pt_regs *regs);
0057
0058
0059 extern atomic_t dcpage_flushes;
0060 extern atomic_t dcpage_flushes_xcall;
0061
0062 extern int sysctl_tsb_ratio;
0063
0064 #ifdef CONFIG_SERIAL_SUNHV
0065 void sunhv_migrate_hvcons_irq(int cpu);
0066 #endif
0067 #endif
0068 void sun_do_break(void);
0069 extern int stop_a_enabled;
0070 extern int scons_pwroff;
0071
0072 #endif