OemFRU.c 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /*
  2. * Brief: Define default FRU data in here.
  3. */
  4. #include "BmcType.h"
  5. #include "com_BmcType.h"
  6. #include "com_IPMI_FRU.h"
  7. /********************************** Flash *************************************/
  8. /*
  9. * Common Header: offset = 0, len = 8
  10. * chassis info area offset = 1, len = 64
  11. * Board info area: offset = 9, len = 96
  12. * product info area: offset = 21, len = 88
  13. * ------------------------------------------------------------------
  14. * total = 256
  15. */
  16. const OemFRUData_T Default_FRUData = {
  17. //common header
  18. {
  19. 1, //Format version
  20. 0, //no internal use area
  21. 1, //chassis info area offset / 8
  22. 9, //board info area offset / 8
  23. 21, //product info area offset / 8
  24. 0, //MultiRecord area offset / 8
  25. 0x0, //PAD
  26. 0xe0, //checksum
  27. },
  28. //chassis info area
  29. {
  30. 1, //version
  31. FRU_CHASSIS_SIZE/8, //length = 64/8
  32. MainServerChassis,
  33. //Data[58]
  34. {
  35. (0xc0 | 0x0a),
  36. '0', '0', '0', '0', '-', '0', '0', '0', '1', ' ', //Chassis Part Number
  37. (0xc0 | 0x0a),
  38. '0', '0', '0', '0', '-', '0', '0', '0', '1', ' ', //Chassis Serial Number
  39. (0xc0 | 0x0a),
  40. ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', //Extra info
  41. },
  42. 0xc1,
  43. 0x0, //Y
  44. 0x0, //checksum
  45. },
  46. //board info area
  47. {
  48. 1, //version
  49. FRU_BOARD_SIZE/8, //length = 96/8
  50. English,
  51. {34, 56, 78}, //Number of minutes from 0:00 hrs 1/1/96. LSbyte first (little endian)
  52. //Data[75]
  53. {
  54. (0xc0 | 0x0a),
  55. 'S', 't', 'o', 'r', 'l', 'e', 'a', 'd', ' ', ' ', //board manufacturer
  56. (0xc0 | 0x0b),
  57. 'G', '_', 'C', 'A', 'L', 'C', 'U', 'L', 'A', 'T', 'E', //board product name
  58. (0xc0 | 0x08),
  59. '0', '0', '0', '1', ' ', ' ', ' ', ' ', //board product serNum
  60. (0xc0 | 0x08),
  61. '0', '0', '0', '1', ' ', ' ', ' ', ' ', //board product partNum
  62. (0xc0 | 0x08),
  63. ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', //board fru file id
  64. (0xc0 | 0x08),
  65. ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', //Extra info
  66. },
  67. {0,0,0,0}, //power on count
  68. {0,0,0,0}, //Total work time
  69. {0,0,0,0}, //This work time
  70. 0xc1,
  71. 0x0, //Y
  72. 0x0, //checksum
  73. },
  74. //product info area
  75. {
  76. 1, //version
  77. FRU_PRODUCT_SIZE/8, //length = 88/8
  78. English,
  79. //Data[82]
  80. {
  81. (0xc0 | 0x0a),
  82. 'S', 't', 'o', 'r', 'l', 'e', 'a', 'd', ' ', ' ', //manufacturer name
  83. (0xc0 | 0x0b),
  84. 'G', '_', 'C', 'A', 'L', 'C', 'U', 'L', 'A', 'T', 'E', //product name
  85. (0xc0 | 0x08),
  86. '0', '0', '0', '0', '0', '0', '0', '1', //part number
  87. (0xc0 | 0x08),
  88. '1', '.', '0', '0', ' ', ' ', ' ', ' ', //product version
  89. (0xc0 | 0x08),
  90. '0','0','0','0','0','0', '0', '1', //product serNum
  91. (0xc0 | 0x08),
  92. ' ',' ',' ',' ',' ',' ', ' ', ' ', //Assert Tag
  93. (0xc0 | 0x08),
  94. ' ',' ',' ',' ',' ',' ',' ',' ', //FRU File ID
  95. (0xc0 | 0x08),
  96. ' ',' ',' ',' ',' ',' ',' ',' ', //Extra info
  97. },
  98. 0xc1,
  99. 0x0, //Y
  100. 0x0, //checksum
  101. }
  102. };