2006-04-26 16:39:16 +00:00
|
|
|
/* tag: openbios loader prototypes for sparc32
|
|
|
|
|
*
|
|
|
|
|
* Copyright (C) 2004 Stefan Reinauer
|
|
|
|
|
*
|
|
|
|
|
* See the file "COPYING" for further information about
|
|
|
|
|
* the copyright and warranty status of this work.
|
|
|
|
|
*/
|
|
|
|
|
|
2008-11-30 11:54:01 +00:00
|
|
|
// linux_load.c
|
|
|
|
|
int linux_load(struct sys_info *info, const char *file, const char *cmdline);
|
|
|
|
|
|
|
|
|
|
// context.c
|
|
|
|
|
extern struct context *__context;
|
2006-04-26 16:39:16 +00:00
|
|
|
unsigned int start_elf(unsigned long entry_point, unsigned long param);
|
2008-07-07 18:35:51 +00:00
|
|
|
|
2008-11-30 11:54:01 +00:00
|
|
|
// romvec.c
|
2009-01-03 13:45:02 +00:00
|
|
|
void *init_openprom(void);
|
2008-07-07 18:35:51 +00:00
|
|
|
|
2008-11-30 11:54:01 +00:00
|
|
|
// boot.c
|
2008-07-07 18:35:51 +00:00
|
|
|
extern struct sys_info sys_info;
|
2008-12-01 18:04:16 +00:00
|
|
|
extern const char *bootpath;
|
2010-04-02 13:29:12 +00:00
|
|
|
extern void boot(void);
|
|
|
|
|
extern void go(void);
|
2008-11-30 11:54:01 +00:00
|
|
|
|
|
|
|
|
// sys_info.c
|
2008-07-07 18:35:51 +00:00
|
|
|
extern unsigned int qemu_mem_size;
|
2010-03-14 16:09:44 +00:00
|
|
|
extern void collect_sys_info(struct sys_info *info);
|
2008-11-30 11:54:01 +00:00
|
|
|
|
2010-03-14 20:10:01 +00:00
|
|
|
// console.c
|
|
|
|
|
void cls(void);
|
|
|
|
|
|
2008-11-30 11:54:01 +00:00
|
|
|
// romvec.c
|
2008-07-07 18:35:51 +00:00
|
|
|
extern struct linux_arguments_v0 obp_arg;
|
2008-11-30 11:54:01 +00:00
|
|
|
|
|
|
|
|
// openbios.c
|
2008-07-07 18:35:51 +00:00
|
|
|
extern int qemu_machine_type;
|
2009-01-03 13:45:02 +00:00
|
|
|
|
|
|
|
|
// arch/sparc32/lib.c
|
|
|
|
|
struct linux_mlist_v0;
|
|
|
|
|
extern struct linux_mlist_v0 *ptphys;
|
|
|
|
|
extern struct linux_mlist_v0 *ptmap;
|
|
|
|
|
extern struct linux_mlist_v0 *ptavail;
|
|
|
|
|
|
|
|
|
|
void ob_init_mmu(void);
|
|
|
|
|
void init_mmu_swift(void);
|
|
|
|
|
char *obp_dumb_mmap(char *va, int which_io, unsigned int pa,
|
|
|
|
|
unsigned int size);
|
|
|
|
|
void obp_dumb_munmap(__attribute__((unused)) char *va,
|
|
|
|
|
__attribute__((unused)) unsigned int size);
|
|
|
|
|
char *obp_dumb_memalloc(char *va, unsigned int size);
|
|
|
|
|
void obp_dumb_memfree(__attribute__((unused))char *va,
|
|
|
|
|
__attribute__((unused))unsigned sz);
|