]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/sparc/include/asm/setup.h
Merge remote-tracking branch 'regulator/fix/max77802' into regulator-linus
[mirror_ubuntu-artful-kernel.git] / arch / sparc / include / asm / setup.h
CommitLineData
1da177e4
LT
1/*
2 * Just a place holder.
3 */
1da177e4
LT
4#ifndef _SPARC_SETUP_H
5#define _SPARC_SETUP_H
6
fbb86383 7#include <linux/interrupt.h>
1da177e4 8
fbb86383 9#include <uapi/asm/setup.h>
5fcafb7a 10
d550bbd4
DH
11extern char reboot_command[];
12
5fcafb7a
DH
13#ifdef CONFIG_SPARC32
14/* The CPU that was used for booting
15 * Only sun4d + leon may have boot_cpu_id != 0
16 */
17extern unsigned char boot_cpu_id;
d550bbd4 18
deba804c 19extern unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)];
d550bbd4
DH
20
21extern int serial_console;
22static inline int con_is_present(void)
23{
24 return serial_console ? 0 : 1;
25}
fbb86383
SR
26
27/* from irq_32.c */
28extern volatile unsigned char *fdc_status;
29extern char *pdma_vaddr;
30extern unsigned long pdma_size;
31extern volatile int doing_pdma;
32
33/* This is software state */
34extern char *pdma_base;
35extern unsigned long pdma_areasize;
36
37int sparc_floppy_request_irq(unsigned int irq, irq_handler_t irq_handler);
38
d191723f
SR
39/* setup_32.c */
40extern unsigned long cmdline_memory_size;
41
8885ec7c
SR
42/* devices.c */
43void __init device_scan(void);
44
9edfae3f
SR
45/* unaligned_32.c */
46unsigned long safe_compute_effective_address(struct pt_regs *, unsigned int);
47
5fcafb7a
DH
48#endif
49
8df52620 50#ifdef CONFIG_SPARC64
ef3e035c
DM
51void __init start_early_boot(void);
52
8df52620
SR
53/* unaligned_64.c */
54int handle_ldf_stq(u32 insn, struct pt_regs *regs);
55void handle_ld_nf(u32 insn, struct pt_regs *regs);
56
59dec13b
SR
57/* init_64.c */
58extern atomic_t dcpage_flushes;
59extern atomic_t dcpage_flushes_xcall;
60
8c7260c0 61extern int sysctl_tsb_ratio;
8df52620 62
7dd4fcf5
VK
63#ifdef CONFIG_SERIAL_SUNHV
64void sunhv_migrate_hvcons_irq(int cpu);
65#endif
66#endif
f05a6865 67void sun_do_break(void);
d550bbd4
DH
68extern int stop_a_enabled;
69extern int scons_pwroff;
70
1da177e4 71#endif /* _SPARC_SETUP_H */