# BIT0 set indicates 4KB alignment\r
# BIT1 set indicates 8KB alignment\r
gEfiMdeModulePkgTokenSpaceGuid.PcdSrIovSystemPageSize|0x1|UINT32|0x10000047\r
+ \r
+ ## Smbios version\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0206|UINT16|0x00010055\r
\r
[PcdsFixedAtBuild,PcdsPatchableInModule]\r
## Maximun number of performance log entries during PEI phase.\r
This code produces the Smbios protocol. It also responsible for constructing \r
SMBIOS table into system table.\r
\r
-Copyright (c) 2009, Intel Corporation \r
+Copyright (c) 2009 - 2010, Intel Corporation \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
//\r
0x1f,\r
//\r
- // MajorVersion: 2 (Version 2.4)\r
+ // MajorVersion\r
//\r
- 0x02,\r
+ (UINT8) (FixedPcdGet16 (PcdSmbiosVersion) >> 8),\r
//\r
- // MinorVersion: 4 (Version 2.4)\r
+ // MinorVersion\r
//\r
- 0x04,\r
+ (UINT8) (FixedPcdGet16 (PcdSmbiosVersion) & 0x00ff),\r
//\r
// MaxStructureSize, TO BE FILLED\r
//\r
mPrivateData.Smbios.UpdateString = SmbiosUpdateString;\r
mPrivateData.Smbios.Remove = SmbiosRemove;\r
mPrivateData.Smbios.GetNext = SmbiosGetNext;\r
- mPrivateData.Smbios.MajorVersion = SMBIOS_MAJOR_VERSION;\r
- mPrivateData.Smbios.MinorVersion = SMBIOS_MINOR_VERSION;\r
+ mPrivateData.Smbios.MajorVersion = (UINT8) (FixedPcdGet16 (PcdSmbiosVersion) >> 8);\r
+ mPrivateData.Smbios.MinorVersion = (UINT8) (FixedPcdGet16 (PcdSmbiosVersion) & 0x00ff);\r
\r
InitializeListHead (&mPrivateData.DataListHead);\r
InitializeListHead (&mPrivateData.AllocatedHandleListHead);\r
/** @file\r
This code supports the implementation of the Smbios protocol\r
\r
-Copyright (c) 2009, Intel Corporation \r
+Copyright (c) 2009 - 2010, Intel Corporation \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
#include <Library/BaseMemoryLib.h>\r
#include <Library/MemoryAllocationLib.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
-\r
-#define SMBIOS_MAJOR_VERSION 2\r
-#define SMBIOS_MINOR_VERSION 4\r
-\r
+#include <Library/PcdLib.h>\r
\r
#define SMBIOS_INSTANCE_SIGNATURE SIGNATURE_32 ('S', 'B', 'i', 's')\r
typedef struct {\r
# Component description file for Smbios module.\r
#\r
# This driver initializes and installs the SMBIOS protocol.\r
-# Copyright (c) 2009, Intel Corporation\r
+# Copyright (c) 2009 - 2010, Intel Corporation\r
#\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
\r
[Packages]\r
MdePkg/MdePkg.dec\r
+ MdeModulePkg/MdeModulePkg.dec\r
\r
[LibraryClasses]\r
UefiBootServicesTableLib\r
UefiLib\r
UefiDriverEntryPoint\r
DebugLib\r
+ PcdLib\r
\r
[Protocols]\r
gEfiSmbiosProtocolGuid # PROTOCOL ALWAYS_PRODUCED\r
gEfiEventReadyToBootGuid # PROTOCOL ALWAYS_CONSUMED\r
gEfiSmbiosTableGuid # PROTOCOL ALWAYS_CONSUMED\r
\r
+[FixedPcd]\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion\r
+\r
[Depex]\r
TRUE\r