Home | History | Annotate | Line # | Download | only in libsa
libsa.h revision 1.1
      1 /*	$NetBSD: libsa.h,v 1.1 2001/06/14 12:57:14 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 
     45 /* sun3.c */
     46 void sun3_getidprom __P((u_char *ea));
     47 
     48 /* vers.c */
     49 extern const char bootprog_rev[];
     50 extern const char bootprog_name[];
     51