1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2dd5d1380SRalf Baechle #ifndef __ASM_MIPSPROM_H 3dd5d1380SRalf Baechle #define __ASM_MIPSPROM_H 4384740dcSRalf Baechle 5384740dcSRalf Baechle #define PROM_RESET 0 6384740dcSRalf Baechle #define PROM_EXEC 1 7384740dcSRalf Baechle #define PROM_RESTART 2 8384740dcSRalf Baechle #define PROM_REINIT 3 9384740dcSRalf Baechle #define PROM_REBOOT 4 10384740dcSRalf Baechle #define PROM_AUTOBOOT 5 11384740dcSRalf Baechle #define PROM_OPEN 6 12384740dcSRalf Baechle #define PROM_READ 7 13384740dcSRalf Baechle #define PROM_WRITE 8 14384740dcSRalf Baechle #define PROM_IOCTL 9 15384740dcSRalf Baechle #define PROM_CLOSE 10 16384740dcSRalf Baechle #define PROM_GETCHAR 11 17384740dcSRalf Baechle #define PROM_PUTCHAR 12 18384740dcSRalf Baechle #define PROM_SHOWCHAR 13 /* XXX */ 19384740dcSRalf Baechle #define PROM_GETS 14 /* XXX */ 20384740dcSRalf Baechle #define PROM_PUTS 15 /* XXX */ 21384740dcSRalf Baechle #define PROM_PRINTF 16 /* XXX */ 22384740dcSRalf Baechle 23384740dcSRalf Baechle /* What are these for? */ 24384740dcSRalf Baechle #define PROM_INITPROTO 17 /* XXX */ 25384740dcSRalf Baechle #define PROM_PROTOENABLE 18 /* XXX */ 26384740dcSRalf Baechle #define PROM_PROTODISABLE 19 /* XXX */ 27384740dcSRalf Baechle #define PROM_GETPKT 20 /* XXX */ 28384740dcSRalf Baechle #define PROM_PUTPKT 21 /* XXX */ 29384740dcSRalf Baechle 30384740dcSRalf Baechle /* More PROM shit. Probably has to do with VME RMW cycles??? */ 31384740dcSRalf Baechle #define PROM_ORW_RMW 22 /* XXX */ 32384740dcSRalf Baechle #define PROM_ORH_RMW 23 /* XXX */ 33384740dcSRalf Baechle #define PROM_ORB_RMW 24 /* XXX */ 34384740dcSRalf Baechle #define PROM_ANDW_RMW 25 /* XXX */ 35384740dcSRalf Baechle #define PROM_ANDH_RMW 26 /* XXX */ 36384740dcSRalf Baechle #define PROM_ANDB_RMW 27 /* XXX */ 37384740dcSRalf Baechle 38384740dcSRalf Baechle /* Cache handling stuff */ 39384740dcSRalf Baechle #define PROM_FLUSHCACHE 28 /* XXX */ 40384740dcSRalf Baechle #define PROM_CLEARCACHE 29 /* XXX */ 41384740dcSRalf Baechle 42384740dcSRalf Baechle /* Libc alike stuff */ 43384740dcSRalf Baechle #define PROM_SETJMP 30 /* XXX */ 44384740dcSRalf Baechle #define PROM_LONGJMP 31 /* XXX */ 45384740dcSRalf Baechle #define PROM_BEVUTLB 32 /* XXX */ 46384740dcSRalf Baechle #define PROM_GETENV 33 /* XXX */ 47384740dcSRalf Baechle #define PROM_SETENV 34 /* XXX */ 48384740dcSRalf Baechle #define PROM_ATOB 35 /* XXX */ 49384740dcSRalf Baechle #define PROM_STRCMP 36 /* XXX */ 50384740dcSRalf Baechle #define PROM_STRLEN 37 /* XXX */ 51384740dcSRalf Baechle #define PROM_STRCPY 38 /* XXX */ 52384740dcSRalf Baechle #define PROM_STRCAT 39 /* XXX */ 53384740dcSRalf Baechle 54384740dcSRalf Baechle /* Misc stuff */ 55384740dcSRalf Baechle #define PROM_PARSER 40 /* XXX */ 56384740dcSRalf Baechle #define PROM_RANGE 41 /* XXX */ 57384740dcSRalf Baechle #define PROM_ARGVIZE 42 /* XXX */ 58384740dcSRalf Baechle #define PROM_HELP 43 /* XXX */ 59384740dcSRalf Baechle 60384740dcSRalf Baechle /* Entry points for some PROM commands */ 61384740dcSRalf Baechle #define PROM_DUMPCMD 44 /* XXX */ 62384740dcSRalf Baechle #define PROM_SETENVCMD 45 /* XXX */ 63384740dcSRalf Baechle #define PROM_UNSETENVCMD 46 /* XXX */ 64384740dcSRalf Baechle #define PROM_PRINTENVCMD 47 /* XXX */ 65384740dcSRalf Baechle #define PROM_BEVEXCEPT 48 /* XXX */ 66384740dcSRalf Baechle #define PROM_ENABLECMD 49 /* XXX */ 67384740dcSRalf Baechle #define PROM_DISABLECMD 50 /* XXX */ 68384740dcSRalf Baechle 69384740dcSRalf Baechle #define PROM_CLEARNOFAULT 51 /* XXX */ 70384740dcSRalf Baechle #define PROM_NOTIMPLEMENT 52 /* XXX */ 71384740dcSRalf Baechle 72384740dcSRalf Baechle #define PROM_NV_GET 53 /* XXX */ 73384740dcSRalf Baechle #define PROM_NV_SET 54 /* XXX */ 74384740dcSRalf Baechle 75384740dcSRalf Baechle extern char *prom_getenv(char *); 76384740dcSRalf Baechle 77dd5d1380SRalf Baechle #endif /* __ASM_MIPSPROM_H */ 78