xref: /linux/arch/mips/include/asm/mipsprom.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_MIPSPROM_H
3 #define __ASM_MIPSPROM_H
4 
5 #define PROM_RESET		0
6 #define PROM_EXEC		1
7 #define PROM_RESTART		2
8 #define PROM_REINIT		3
9 #define PROM_REBOOT		4
10 #define PROM_AUTOBOOT		5
11 #define PROM_OPEN		6
12 #define PROM_READ		7
13 #define PROM_WRITE		8
14 #define PROM_IOCTL		9
15 #define PROM_CLOSE		10
16 #define PROM_GETCHAR		11
17 #define PROM_PUTCHAR		12
18 #define PROM_SHOWCHAR		13	/* XXX */
19 #define PROM_GETS		14	/* XXX */
20 #define PROM_PUTS		15	/* XXX */
21 #define PROM_PRINTF		16	/* XXX */
22 
23 /* What are these for? */
24 #define PROM_INITPROTO		17	/* XXX */
25 #define PROM_PROTOENABLE	18	/* XXX */
26 #define PROM_PROTODISABLE	19	/* XXX */
27 #define PROM_GETPKT		20	/* XXX */
28 #define PROM_PUTPKT		21	/* XXX */
29 
30 /* More PROM shit.  Probably has to do with VME RMW cycles??? */
31 #define PROM_ORW_RMW		22	/* XXX */
32 #define PROM_ORH_RMW		23	/* XXX */
33 #define PROM_ORB_RMW		24	/* XXX */
34 #define PROM_ANDW_RMW		25	/* XXX */
35 #define PROM_ANDH_RMW		26	/* XXX */
36 #define PROM_ANDB_RMW		27	/* XXX */
37 
38 /* Cache handling stuff */
39 #define PROM_FLUSHCACHE		28	/* XXX */
40 #define PROM_CLEARCACHE		29	/* XXX */
41 
42 /* Libc alike stuff */
43 #define PROM_SETJMP		30	/* XXX */
44 #define PROM_LONGJMP		31	/* XXX */
45 #define PROM_BEVUTLB		32	/* XXX */
46 #define PROM_GETENV		33	/* XXX */
47 #define PROM_SETENV		34	/* XXX */
48 #define PROM_ATOB		35	/* XXX */
49 #define PROM_STRCMP		36	/* XXX */
50 #define PROM_STRLEN		37	/* XXX */
51 #define PROM_STRCPY		38	/* XXX */
52 #define PROM_STRCAT		39	/* XXX */
53 
54 /* Misc stuff */
55 #define PROM_PARSER		40	/* XXX */
56 #define PROM_RANGE		41	/* XXX */
57 #define PROM_ARGVIZE		42	/* XXX */
58 #define PROM_HELP		43	/* XXX */
59 
60 /* Entry points for some PROM commands */
61 #define PROM_DUMPCMD		44	/* XXX */
62 #define PROM_SETENVCMD		45	/* XXX */
63 #define PROM_UNSETENVCMD	46	/* XXX */
64 #define PROM_PRINTENVCMD	47	/* XXX */
65 #define PROM_BEVEXCEPT		48	/* XXX */
66 #define PROM_ENABLECMD		49	/* XXX */
67 #define PROM_DISABLECMD		50	/* XXX */
68 
69 #define PROM_CLEARNOFAULT	51	/* XXX */
70 #define PROM_NOTIMPLEMENT	52	/* XXX */
71 
72 #define PROM_NV_GET		53	/* XXX */
73 #define PROM_NV_SET		54	/* XXX */
74 
75 extern char *prom_getenv(char *);
76 
77 #endif /* __ASM_MIPSPROM_H */
78