Home | History | Annotate | Line # | Download | only in libsa
      1 /*	$NetBSD: libsa.h,v 1.7 2009/01/12 11:32:45 tsutsui 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 int main(void);
     27 void exit(int);
     28 
     29 /* clock.c */
     30 extern int hz;
     31 long getticks(void);
     32 
     33 /* exec_sun.c */
     34 int exec_sun(char *, char *);
     35 int load_sun(int, char *, char **);
     36 
     37 /* promboot.c */
     38 extern int debug;
     39 extern char prom_bootdev[];
     40 extern char *prom_bootfile;
     41 extern int prom_boothow;
     42 void prom_get_boot_info(void);
     43 
     44 /* promcons.c */
     45 int peekchar(void);
     46 
     47 /* putstr.c */
     48 void putstr(const char *);
     49 
     50 /* sun2.c */
     51 void sun2_getidprom(u_char *);
     52 u_long sun2_map_mem_load(void);
     53 void *sun2_map_mem_run(void *);
     54 
     55 /* sun3.c */
     56 void sun3_getidprom(u_char *);
     57 
     58 /* vers.c */
     59 extern const char bootprog_rev[];
     60 extern const char bootprog_name[];
     61 
     62 /* xxboot.c */
     63 void xxboot_main(const char *);
     64