MemorySubClass.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /** @file
  2. *
  3. * Copyright (c) 2015, Hisilicon Limited. All rights reserved.
  4. * Copyright (c) 2015, Linaro Limited. All rights reserved.
  5. *
  6. * This program and the accompanying materials
  7. * are licensed and made available under the terms and conditions of the BSD License
  8. * which accompanies this distribution. The full text of the license may be found at
  9. * http://opensource.org/licenses/bsd-license.php
  10. *
  11. * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
  13. *
  14. **/
  15. #ifndef _MEMORY_SUBCLASS_DRIVER_H
  16. #define _MEMORY_SUBCLASS_DRIVER_H
  17. #include <Uefi.h>
  18. #include <PiDxe.h>
  19. #include <Protocol/Smbios.h>
  20. #include <IndustryStandard/SmBios.h>
  21. #include <Library/HiiLib.h>
  22. #include <Library/DebugLib.h>
  23. #include <Library/MemoryAllocationLib.h>
  24. #include <Library/BaseMemoryLib.h>
  25. #include <Library/UefiBootServicesTableLib.h>
  26. #include <Library/BaseLib.h>
  27. #include <Library/UefiLib.h>
  28. #include <Library/HobLib.h>
  29. #include <Library/PrintLib.h>
  30. #include <Library/PcdLib.h>
  31. #include <Library/HwMemInitLib.h>
  32. #include <Guid/DebugMask.h>
  33. #include <Guid/MemoryMapData.h>
  34. #include <Library/PlatformSysCtrlLib.h>
  35. #include <Library/OemMiscLib.h>
  36. //
  37. // This is the generated header file which includes whatever needs to be exported (strings + IFR)
  38. //
  39. extern UINT8 MemorySubClassStrings[];
  40. #define MAX_DIMM_SIZE 32 // In GB
  41. struct SPD_JEDEC_MANUFACTURER
  42. {
  43. UINT8 MfgIdLSB;
  44. UINT8 MfgIdMSB;
  45. CHAR16 *Name;
  46. };
  47. struct SPD_JEDEC_MANUFACTURER JEP106[] = {
  48. { 0, 0x10, L"NEC"},
  49. { 0, 0x2c, L"Micron"},
  50. { 0, 0x3d, L"Tektronix"},
  51. { 0, 0x97, L"TI"},
  52. { 0, 0xad, L"Hynix"},
  53. { 0, 0xb3, L"IDT"},
  54. { 0, 0xc1, L"Infineon"},
  55. { 0, 0xce, L"Samsung"},
  56. { 1, 0x94, L"Smart"},
  57. { 1, 0x98, L"Kingston"},
  58. { 2, 0xc8, L"Agilent"},
  59. { 2, 0xfe, L"Elpida"},
  60. { 3, 0x0b, L"Nanya"},
  61. { 4, 0x43, L"Ramaxel"},
  62. { 4, 0xb3, L"Inphi"},
  63. { 5, 0x51, L"Qimonda"},
  64. { 5, 0x57, L"AENEON"},
  65. { 0xFF, 0xFF, L""}
  66. };
  67. #endif