main_store.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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 __attribute((packed)) IoHriMainStoreChipInfo1 {
  54. u32 chipMfgID;
  55. char chipECLevel[4];
  56. };
  57. struct IoHriMainStoreVpdIdData {
  58. char typeNumber[4];
  59. char modelNumber[4];
  60. char partNumber[12];
  61. char serialNumber[12];
  62. };
  63. struct __attribute((packed)) IoHriMainStoreVpdFruData {
  64. char fruLabel[8];
  65. u8 numberOfSlots;
  66. u8 pluggingType;
  67. u16 slotMapIndex;
  68. };
  69. struct __attribute((packed)) IoHriMainStoreAdrRangeBlock {
  70. void *blockStart;
  71. void *blockEnd;
  72. u32 blockProcChipId;
  73. };
  74. #define MaxAreaAdrRangeBlocks 4
  75. struct __attribute((packed)) IoHriMainStoreArea4 {
  76. u32 msVpdFormat;
  77. u8 containedVpdType;
  78. u8 reserved1;
  79. u16 reserved2;
  80. u64 msExists;
  81. u64 msFunctional;
  82. u32 memorySize;
  83. u32 procNodeId;
  84. u32 numAdrRangeBlocks;
  85. struct IoHriMainStoreAdrRangeBlock xAdrRangeBlock[MaxAreaAdrRangeBlocks];
  86. struct IoHriMainStoreChipInfo1 chipInfo0;
  87. struct IoHriMainStoreChipInfo1 chipInfo1;
  88. struct IoHriMainStoreChipInfo1 chipInfo2;
  89. struct IoHriMainStoreChipInfo1 chipInfo3;
  90. struct IoHriMainStoreChipInfo1 chipInfo4;
  91. struct IoHriMainStoreChipInfo1 chipInfo5;
  92. struct IoHriMainStoreChipInfo1 chipInfo6;
  93. struct IoHriMainStoreChipInfo1 chipInfo7;
  94. void *msRamAreaArray;
  95. u32 msRamAreaArrayNumEntries;
  96. u32 msRamAreaArrayEntrySize;
  97. u32 numaDimmExists;
  98. u32 numaDimmFunctional;
  99. void *numaDimmArray;
  100. u32 numaDimmArrayNumEntries;
  101. u32 numaDimmArrayEntrySize;
  102. struct IoHriMainStoreVpdIdData idData;
  103. u64 powerData;
  104. u64 cardAssemblyPartNum;
  105. u64 chipSerialNum;
  106. u64 reserved3;
  107. char reserved4[16];
  108. struct IoHriMainStoreVpdFruData fruData;
  109. u8 vpdPortNum;
  110. u8 reserved5;
  111. u8 frameId;
  112. u8 rackUnit;
  113. char asciiKeywordVpd[256];
  114. u32 reserved6;
  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 */