Files
OrangePi_CM5/arch/sparc/include/asm/setup.h
T

66 lines
1.3 KiB
C
Raw Normal View History

2005-04-16 15:20:36 -07:00
/*
* Just a place holder.
*/
#ifndef _SPARC_SETUP_H
#define _SPARC_SETUP_H
2014-04-21 21:39:24 +02:00
#include <linux/interrupt.h>
2005-04-16 15:20:36 -07:00
2014-04-21 21:39:24 +02:00
#include <uapi/asm/setup.h>
2011-04-21 04:20:23 +00:00
2012-03-28 18:30:03 +01:00
extern char reboot_command[];
2011-04-21 04:20:23 +00: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-28 18:30:03 +01: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-21 21:39:24 +02: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-21 21:39:28 +02:00
/* setup_32.c */
extern unsigned long cmdline_memory_size;
2014-04-21 21:39:31 +02:00
/* devices.c */
void __init device_scan(void);
/* unaligned_32.c */
unsigned long safe_compute_effective_address(struct pt_regs *, unsigned int);
2011-04-21 04:20:23 +00:00
#endif
#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-16 23:26:07 +02:00
/* init_64.c */
extern atomic_t dcpage_flushes;
extern atomic_t dcpage_flushes_xcall;
2014-05-16 23:26:02 +02:00
extern int sysctl_tsb_ratio;
#endif
void sun_do_break(void);
2012-03-28 18:30:03 +01:00
extern int stop_a_enabled;
extern int scons_pwroff;
2005-04-16 15:20:36 -07:00
#endif /* _SPARC_SETUP_H */