mipsprom.h 2.1 KB

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