Changeset 58459 in vbox for trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/SmbiosDxe
- Timestamp:
- Oct 28, 2015 8:17:18 PM (9 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/Firmware
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/Firmware
-
Property svn:mergeinfo
set to (toggle deleted branches)
/vendor/edk2/current 103735-103757
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c
r48674 r58459 3 3 SMBIOS table into system table. 4 4 5 Copyright (c) 2009 - 201 2, Intel Corporation. All rights reserved.<BR>5 Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR> 6 6 This program and the accompanying materials 7 7 are licensed and made available under the terms and conditions of the BSD License … … 50 50 // MajorVersion 51 51 // 52 (UINT8) (FixedPcdGet16 (PcdSmbiosVersion) >> 8),52 0, 53 53 // 54 54 // MinorVersion 55 55 // 56 (UINT8) (FixedPcdGet16 (PcdSmbiosVersion) & 0x00ff),56 0, 57 57 // 58 58 // MaxStructureSize, TO BE FILLED … … 88 88 0, 89 89 // 90 // StructureTableLength, TO BE FILLED90 // TableLength, TO BE FILLED 91 91 // 92 92 0, 93 93 // 94 // StructureTableAddress, TO BE FILLED94 // TableAddress, TO BE FILLED 95 95 // 96 96 0, … … 102 102 // SmbiosBcdRevision 103 103 // 104 0 104 0 105 105 }; 106 106 … … 981 981 Status = gBS->AllocatePages ( 982 982 AllocateMaxAddress, 983 EfiR eservedMemoryType,983 EfiRuntimeServicesData, 984 984 EFI_SIZE_TO_PAGES (EntryPointStructure->TableLength), 985 985 &PhysicalAddress … … 1079 1079 mPrivateData.Smbios.Remove = SmbiosRemove; 1080 1080 mPrivateData.Smbios.GetNext = SmbiosGetNext; 1081 mPrivateData.Smbios.MajorVersion = (UINT8) (FixedPcdGet16 (PcdSmbiosVersion) >> 8); 1082 mPrivateData.Smbios.MinorVersion = (UINT8) (FixedPcdGet16 (PcdSmbiosVersion) & 0x00ff); 1081 mPrivateData.Smbios.MajorVersion = (UINT8) (PcdGet16 (PcdSmbiosVersion) >> 8); 1082 mPrivateData.Smbios.MinorVersion = (UINT8) (PcdGet16 (PcdSmbiosVersion) & 0x00ff); 1083 EntryPointStructureData.MajorVersion = mPrivateData.Smbios.MajorVersion; 1084 EntryPointStructureData.MinorVersion = mPrivateData.Smbios.MinorVersion; 1085 EntryPointStructureData.SmbiosBcdRevision = (UINT8) ((PcdGet16 (PcdSmbiosVersion) >> 4) & 0xf0) | (UINT8) (PcdGet16 (PcdSmbiosVersion) & 0x0f); 1083 1086 1084 1087 InitializeListHead (&mPrivateData.DataListHead); … … 1093 1096 Status = gBS->AllocatePages ( 1094 1097 AllocateMaxAddress, 1095 EfiR eservedMemoryType,1098 EfiRuntimeServicesData, 1096 1099 EFI_SIZE_TO_PAGES (sizeof (SMBIOS_TABLE_ENTRY_POINT)), 1097 1100 &PhysicalAddress … … 1101 1104 Status = gBS->AllocatePages ( 1102 1105 AllocateAnyPages, 1103 EfiR eservedMemoryType,1106 EfiRuntimeServicesData, 1104 1107 EFI_SIZE_TO_PAGES (sizeof (SMBIOS_TABLE_ENTRY_POINT)), 1105 1108 &PhysicalAddress … … 1127 1130 Status = gBS->AllocatePages ( 1128 1131 AllocateMaxAddress, 1129 EfiR eservedMemoryType,1132 EfiRuntimeServicesData, 1130 1133 1, 1131 1134 &PhysicalAddress -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
r48674 r58459 1 1 ## @file 2 # Component description file for Smbios module.2 # This driver initializes and installs the SMBIOS protocol, constructs SMBIOS table into system configuration table. 3 3 # 4 # This driver initializes and installs the SMBIOS protocol. 5 # Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR> 4 # Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR> 6 5 # 7 6 # This program and the accompanying materials … … 18 17 INF_VERSION = 0x00010005 19 18 BASE_NAME = SmbiosDxe 19 MODULE_UNI_FILE = SmbiosDxe.uni 20 20 FILE_GUID = F9D88642-0737-49bc-81B5-6889CD57D9EA 21 21 MODULE_TYPE = DXE_DRIVER … … 49 49 50 50 [Protocols] 51 gEfiSmbiosProtocolGuid # PROTOCOL ALWAYS_PRODUCED51 gEfiSmbiosProtocolGuid ## PRODUCES 52 52 53 53 [Guids] 54 gEfiEventReadyToBootGuid # PROTOCOL ALWAYS_CONSUMED 55 gEfiSmbiosTableGuid # PROTOCOL ALWAYS_CONSUMED 54 gEfiSmbiosTableGuid ## PRODUCES ## SystemTable 56 55 57 [ FixedPcd]58 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion 56 [Pcd] 57 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion ## CONSUMES 59 58 60 59 [Depex] 61 60 TRUE 61 62 [UserExtensions.TianoCore."ExtraFiles"] 63 SmbiosDxeExtra.uni
Note:
See TracChangeset
for help on using the changeset viewer.