mipsprom.h 2.1 KB

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