2006-04-26 15:08:19 +00:00
|
|
|
/*
|
|
|
|
|
* OpenBIOS driver prototypes
|
2008-12-11 20:30:53 +00:00
|
|
|
*
|
2006-04-26 15:08:19 +00:00
|
|
|
* (C) 2004 Stefan Reinauer <stepan@openbios.org>
|
2008-12-11 20:30:53 +00:00
|
|
|
*
|
2006-04-26 15:08:19 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
|
* version 2
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "openbios/config.h"
|
|
|
|
|
|
|
|
|
|
#ifdef CONFIG_DRIVER_PCI
|
|
|
|
|
int ob_pci_init(void);
|
2008-11-30 11:54:01 +00:00
|
|
|
void macio_nvram_init(char *path, uint32_t addr);
|
2006-04-26 15:08:19 +00:00
|
|
|
#endif
|
2006-05-04 22:07:30 +00:00
|
|
|
#ifdef CONFIG_DRIVER_SBUS
|
2007-05-19 12:55:01 +00:00
|
|
|
int ob_sbus_init(uint64_t base, int machine_id);
|
2008-07-07 18:35:51 +00:00
|
|
|
void tcx_init(uint64_t base);
|
|
|
|
|
void kbd_init(uint64_t base);
|
|
|
|
|
int keyboard_dataready(void);
|
|
|
|
|
unsigned char keyboard_readdata(void);
|
|
|
|
|
#ifdef CONFIG_DEBUG_CONSOLE_VIDEO
|
2008-12-05 18:31:27 +00:00
|
|
|
void init_video(unsigned long fb, int width, int height, int depth, int rb);
|
2008-07-07 18:35:51 +00:00
|
|
|
#endif
|
2006-05-04 22:07:30 +00:00
|
|
|
#endif
|
2006-04-26 15:08:19 +00:00
|
|
|
#ifdef CONFIG_DRIVER_IDE
|
|
|
|
|
int ob_ide_init(void);
|
|
|
|
|
#endif
|
2006-05-04 22:07:30 +00:00
|
|
|
#ifdef CONFIG_DRIVER_ESP
|
2007-11-11 18:02:11 +00:00
|
|
|
int ob_esp_init(unsigned int slot, uint64_t base, unsigned long espoffset,
|
|
|
|
|
unsigned long dmaoffset);
|
2006-05-04 22:07:30 +00:00
|
|
|
#endif
|
2006-05-18 21:57:08 +00:00
|
|
|
#ifdef CONFIG_DRIVER_OBIO
|
2007-05-19 12:55:01 +00:00
|
|
|
int ob_obio_init(uint64_t slavio_base, unsigned long fd_offset,
|
2008-02-01 19:58:56 +00:00
|
|
|
unsigned long counter_offset, unsigned long intr_offset,
|
|
|
|
|
unsigned long aux1_offset, unsigned long aux2_offset);
|
2008-07-07 18:35:51 +00:00
|
|
|
int start_cpu(unsigned int pc, unsigned int context_ptr, unsigned int context,
|
|
|
|
|
int cpu);
|
|
|
|
|
extern struct mem cmem;
|
2008-11-30 11:54:01 +00:00
|
|
|
extern uint16_t graphic_depth;
|
|
|
|
|
extern volatile unsigned char *power_reg;
|
|
|
|
|
extern volatile unsigned int *reset_reg;
|
|
|
|
|
extern const char *obp_stdin_path, *obp_stdout_path;
|
|
|
|
|
extern char obp_stdin, obp_stdout;
|
|
|
|
|
extern volatile struct sun4m_timer_regs *counter_regs;
|
|
|
|
|
extern uint32_t kernel_image;
|
|
|
|
|
extern uint32_t kernel_size;
|
|
|
|
|
extern uint32_t qemu_cmdline;
|
|
|
|
|
extern uint32_t cmdline_size;
|
|
|
|
|
extern char boot_device;
|
2008-07-07 18:35:51 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef CONFIG_DRIVER_FLOPPY
|
|
|
|
|
int ob_floppy_init(void);
|
2006-05-18 21:57:08 +00:00
|
|
|
#endif
|