2 * Miscellaneous definitions used to call the routines contained in the boot
3 * PROMs on various models of DECSTATION's.
4 * the rights to redistribute these changes.
7 #ifndef __ASM_DEC_PROM_H
8 #define __ASM_DEC_PROM_H
11 * PMAX/3MAX PROM entry points for DS2100/3100's and DS5000/2xx's. Many of
12 * these will work for MIPSen as well!
14 #define VEC_RESET 0xBFC00000 /* Prom base address */
15 #define PMAX_PROM_ENTRY(x) (VEC_RESET+((x)*8)) /* Prom jump table */
17 #define PMAX_PROM_HALT PMAX_PROM_ENTRY(2) /* valid on MIPSen */
18 #define PMAX_PROM_AUTOBOOT PMAX_PROM_ENTRY(5) /* valid on MIPSen */
19 #define PMAX_PROM_OPEN PMAX_PROM_ENTRY(6)
20 #define PMAX_PROM_READ PMAX_PROM_ENTRY(7)
21 #define PMAX_PROM_CLOSE PMAX_PROM_ENTRY(10)
22 #define PMAX_PROM_LSEEK PMAX_PROM_ENTRY(11)
23 #define PMAX_PROM_GETCHAR PMAX_PROM_ENTRY(12)
24 #define PMAX_PROM_PUTCHAR PMAX_PROM_ENTRY(13) /* 12 on MIPSen */
25 #define PMAX_PROM_GETS PMAX_PROM_ENTRY(15)
26 #define PMAX_PROM_PRINTF PMAX_PROM_ENTRY(17)
27 #define PMAX_PROM_GETENV PMAX_PROM_ENTRY(33) /* valid on MIPSen */
30 * Magic number indicating REX PROM available on DECSTATION. Found in
31 * register a2 on transfer of control to program from PROM.
33 #define REX_PROM_MAGIC 0x30464354
36 * 3MIN/MAXINE PROM entry points for DS5000/1xx's, DS5000/xx's, and
39 #define REX_PROM_GETBITMAP 0x84/4 /* get mem bitmap */
40 #define REX_PROM_GETCHAR 0x24/4 /* getch() */
41 #define REX_PROM_GETENV 0x64/4 /* get env. variable */
42 #define REX_PROM_GETSYSID 0x80/4 /* get system id */
43 #define REX_PROM_GETTCINFO 0xa4/4
44 #define REX_PROM_PRINTF 0x30/4 /* printf() */
45 #define REX_PROM_SLOTADDR 0x6c/4 /* slotaddr */
46 #define REX_PROM_BOOTINIT 0x54/4 /* open() */
47 #define REX_PROM_BOOTREAD 0x58/4 /* read() */
48 #define REX_PROM_CLEARCACHE 0x7c/4
50 #endif /* __ASM_DEC_PROM_H */