main_store.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. /*
  2. * Copyright (C) 2001 Mike Corrigan IBM Corporation
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. */
  18. #ifndef _ISERIES_MAIN_STORE_H
  19. #define _ISERIES_MAIN_STORE_H
  20. /* Main Store Vpd for Condor,iStar,sStar */
  21. struct IoHriMainStoreSegment4 {
  22. u8 msArea0Exists:1;
  23. u8 msArea1Exists:1;
  24. u8 msArea2Exists:1;
  25. u8 msArea3Exists:1;
  26. u8 reserved1:4;
  27. u8 reserved2;
  28. u8 msArea0Functional:1;
  29. u8 msArea1Functional:1;
  30. u8 msArea2Functional:1;
  31. u8 msArea3Functional:1;
  32. u8 reserved3:4;
  33. u8 reserved4;
  34. u32 totalMainStore;
  35. u64 msArea0Ptr;
  36. u64 msArea1Ptr;
  37. u64 msArea2Ptr;
  38. u64 msArea3Ptr;
  39. u32 cardProductionLevel;
  40. u32 msAdrHole;
  41. u8 msArea0HasRiserVpd:1;
  42. u8 msArea1HasRiserVpd:1;
  43. u8 msArea2HasRiserVpd:1;
  44. u8 msArea3HasRiserVpd:1;
  45. u8 reserved5:4;
  46. u8 reserved6;
  47. u16 reserved7;
  48. u8 reserved8[28];
  49. u64 nonInterleavedBlocksStartAdr;
  50. u64 nonInterleavedBlocksEndAdr;
  51. };
  52. /* Main Store VPD for Power4 */
  53. struct IoHriMainStoreChipInfo1 {
  54. u32 chipMfgID __attribute((packed));
  55. char chipECLevel[4] __attribute((packed));
  56. };
  57. struct IoHriMainStoreVpdIdData {
  58. char typeNumber[4];
  59. char modelNumber[4];
  60. char partNumber[12];
  61. char serialNumber[12];
  62. };
  63. struct IoHriMainStoreVpdFruData {
  64. char fruLabel[8] __attribute((packed));
  65. u8 numberOfSlots __attribute((packed));
  66. u8 pluggingType __attribute((packed));
  67. u16 slotMapIndex __attribute((packed));
  68. };
  69. struct IoHriMainStoreAdrRangeBlock {
  70. void *blockStart __attribute((packed));
  71. void *blockEnd __attribute((packed));
  72. u32 blockProcChipId __attribute((packed));
  73. };
  74. #define MaxAreaAdrRangeBlocks 4
  75. struct IoHriMainStoreArea4 {
  76. u32 msVpdFormat __attribute((packed));
  77. u8 containedVpdType __attribute((packed));
  78. u8 reserved1 __attribute((packed));
  79. u16 reserved2 __attribute((packed));
  80. u64 msExists __attribute((packed));
  81. u64 msFunctional __attribute((packed));
  82. u32 memorySize __attribute((packed));
  83. u32 procNodeId __attribute((packed));
  84. u32 numAdrRangeBlocks __attribute((packed));
  85. struct IoHriMainStoreAdrRangeBlock xAdrRangeBlock[MaxAreaAdrRangeBlocks] __attribute((packed));
  86. struct IoHriMainStoreChipInfo1 chipInfo0 __attribute((packed));
  87. struct IoHriMainStoreChipInfo1 chipInfo1 __attribute((packed));
  88. struct IoHriMainStoreChipInfo1 chipInfo2 __attribute((packed));
  89. struct IoHriMainStoreChipInfo1 chipInfo3 __attribute((packed));
  90. struct IoHriMainStoreChipInfo1 chipInfo4 __attribute((packed));
  91. struct IoHriMainStoreChipInfo1 chipInfo5 __attribute((packed));
  92. struct IoHriMainStoreChipInfo1 chipInfo6 __attribute((packed));
  93. struct IoHriMainStoreChipInfo1 chipInfo7 __attribute((packed));
  94. void *msRamAreaArray __attribute((packed));
  95. u32 msRamAreaArrayNumEntries __attribute((packed));
  96. u32 msRamAreaArrayEntrySize __attribute((packed));
  97. u32 numaDimmExists __attribute((packed));
  98. u32 numaDimmFunctional __attribute((packed));
  99. void *numaDimmArray __attribute((packed));
  100. u32 numaDimmArrayNumEntries __attribute((packed));
  101. u32 numaDimmArrayEntrySize __attribute((packed));
  102. struct IoHriMainStoreVpdIdData idData __attribute((packed));
  103. u64 powerData __attribute((packed));
  104. u64 cardAssemblyPartNum __attribute((packed));
  105. u64 chipSerialNum __attribute((packed));
  106. u64 reserved3 __attribute((packed));
  107. char reserved4[16] __attribute((packed));
  108. struct IoHriMainStoreVpdFruData fruData __attribute((packed));
  109. u8 vpdPortNum __attribute((packed));
  110. u8 reserved5 __attribute((packed));
  111. u8 frameId __attribute((packed));
  112. u8 rackUnit __attribute((packed));
  113. char asciiKeywordVpd[256] __attribute((packed));
  114. u32 reserved6 __attribute((packed));
  115. };
  116. struct IoHriMainStoreSegment5 {
  117. u16 reserved1;
  118. u8 reserved2;
  119. u8 msVpdFormat;
  120. u32 totalMainStore;
  121. u64 maxConfiguredMsAdr;
  122. struct IoHriMainStoreArea4 *msAreaArray;
  123. u32 msAreaArrayNumEntries;
  124. u32 msAreaArrayEntrySize;
  125. u32 msAreaExists;
  126. u32 msAreaFunctional;
  127. u64 reserved3;
  128. };
  129. extern u64 xMsVpd[];
  130. #endif /* _ISERIES_MAIN_STORE_H */