axp.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. typedef struct Hwrpb Hwrpb;
  2. typedef struct Hwcpu Hwcpu;
  3. typedef struct Hwdsr Hwdsr;
  4. struct Hwrpb
  5. {
  6. uvlong phys;
  7. uvlong sign;
  8. uvlong rev;
  9. uvlong size;
  10. uvlong cpu0;
  11. uvlong by2pg;
  12. uvlong pabits;
  13. uvlong maxasn;
  14. char ssn[16];
  15. uvlong systype;
  16. uvlong sysvar;
  17. uvlong sysrev;
  18. uvlong ifreq;
  19. uvlong cfreq;
  20. uvlong vptb;
  21. uvlong resv;
  22. uvlong tbhint;
  23. uvlong ncpu;
  24. uvlong cpulen;
  25. uvlong cpuoff;
  26. uvlong nctb;
  27. uvlong ctblen;
  28. uvlong ctboff;
  29. uvlong ccrboff;
  30. uvlong memoff;
  31. uvlong confoff;
  32. uvlong fruoff;
  33. uvlong termsaveva;
  34. uvlong termsavex;
  35. uvlong termrestva;
  36. uvlong termrestx;
  37. uvlong termresetva;
  38. uvlong termresetx;
  39. uvlong sysresv;
  40. uvlong hardresv;
  41. uvlong csum;
  42. uvlong rxrdymsk;
  43. uvlong txrdymsk;
  44. uvlong dsroff; /* rev 6 or higher */
  45. };
  46. extern Hwrpb* hwrpb;
  47. struct Hwcpu
  48. {
  49. uvlong hwpcb[16];
  50. uvlong state;
  51. uvlong palmainlen;
  52. uvlong palscratchlen;
  53. uvlong palmainpa;
  54. uvlong palscratchpa;
  55. uvlong palrev;
  56. uvlong cputype;
  57. uvlong cpuvar;
  58. uvlong cpurev;
  59. uvlong serial[2];
  60. /* more crap ... */
  61. };
  62. struct Hwdsr
  63. {
  64. vlong smm;
  65. uvlong lurtoff;
  66. uvlong sysnameoff;
  67. };