Home | History | Annotate | Line # | Download | only in libsa
libsa.h revision 1.4
      1 /*	$NetBSD: libsa.h,v 1.4 2005/01/22 15:36:11 chs 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	ICIA(void);
     17 void **	getvbr(void);
     18 
     19 /* SRT1.c */
     20 extern int _is3x;
     21 extern int _is2;
     22 void _start(void);
     23 void breakpoint(void);
     24 void chain_to(void *);
     25 
     26 /* clock.c */
     27 extern int hz;
     28 long getsecs(void);
     29 long getticks(void);
     30 
     31 /* exec_sun.c */
     32 int exec_sun(char *, char *);
     33 int load_sun(int, char *, char **);
     34 
     35 /* promboot.c */
     36 extern int debug;
     37 extern char prom_bootdev[];
     38 extern char *prom_bootfile;
     39 extern int prom_boothow;
     40 
     41 /* sun2.c */
     42 void sun2_getidprom(u_char *);
     43 u_long sun2_map_mem_load(void);
     44 void *sun2_map_mem_run(void *);
     45 
     46 /* sun3.c */
     47 void sun3_getidprom(u_char *);
     48 
     49 /* vers.c */
     50 extern const char bootprog_rev[];
     51 extern const char bootprog_name[];
     52