xref: /netbsd/sys/arch/sun68k/stand/libsa/libsa.h (revision bf9ec67e)
1 /*	$NetBSD: libsa.h,v 1.2 2001/12/15 23:02:34 fredette Exp $	*/
2 
3 /*
4  * This file defines the API for libsa.a
5  * as used by the various boot programs.
6  */
7 
8 /*
9  * Standard Sun3 PROM load address.
10  * i.e. this is where the PROM loads
11  * programs, like it or not!
12  */
13 #define KERN_LOADADDR	0x4000
14 
15 /* SRT0.S */
16 void	exit __P((void));
17 void	ICIA __P((void));
18 void **	getvbr __P((void));
19 
20 /* SRT1.c */
21 extern int _is3x;
22 extern int _is2;
23 void _start __P((void));
24 void breakpoint __P((void));
25 void chain_to __P((void *func));
26 
27 /* clock.c */
28 extern int hz;
29 long getsecs __P((void));
30 long getticks __P((void));
31 
32 /* exec_sun.c */
33 int exec_sun __P((char *file, char *loadaddr));
34 int load_sun __P((int io, char *loadaddr, char **entry));
35 
36 /* promboot.c */
37 extern int debug;
38 extern char prom_bootdev[];
39 extern char *prom_bootfile;
40 extern int prom_boothow;
41 
42 /* sun2.c */
43 void sun2_getidprom __P((u_char *ea));
44 u_long sun2_map_mem_load __P((void));
45 void *sun2_map_mem_run __P((void *));
46 
47 /* sun3.c */
48 void sun3_getidprom __P((u_char *ea));
49 
50 /* vers.c */
51 extern const char bootprog_rev[];
52 extern const char bootprog_name[];
53