Changeset 58459 in vbox for trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkPkg/Library
- Timestamp:
- Oct 28, 2015 8:17:18 PM (9 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/Firmware
- Files:
-
- 11 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/IntelFrameworkPkg/Library/DxeIoLibCpuIo/DxeIoLibCpuIo.inf
r48674 r58459 1 1 ## @file 2 # Component description file for Cpu Io Dxe Io Library.2 # I/O Library implementation that uses the CPU I/O Protocol for I/O and MMIO operations. 3 3 # 4 # I/O Library implementation that uses the CPU I/O Protocol for I/O 5 # and MMIO operations. 6 # Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR> 4 # Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR> 7 5 # 8 6 # This program and the accompanying materials … … 19 17 INF_VERSION = 0x00010005 20 18 BASE_NAME = DxeIoLibCpuIo 19 MODULE_UNI_FILE = DxeIoLibCpuIo.uni 21 20 FILE_GUID = e94cd42a-3aad-4ea0-9b09-945891c60ccd 22 21 MODULE_TYPE = DXE_DRIVER … … 47 46 48 47 [Protocols] 49 gEfiCpuIoProtocolGuid # PROTOCOL ALWAYS_CONSUMED48 gEfiCpuIoProtocolGuid ## CONSUMES 50 49 51 50 [Depex.common.DXE_DRIVER, Depex.common.DXE_RUNTIME_DRIVER, Depex.common.DXE_SAL_DRIVER, Depex.common.DXE_SMM_DRIVER] 52 51 gEfiCpuIoProtocolGuid 52 -
trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkPkg/Library/DxeIoLibCpuIo/IoHighLevel.c
r48674 r58459 5 5 Base Library. 6 6 7 Copyright (c) 2006 , Intel Corporation. All rights reserved.<BR>7 Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR> 8 8 This program and the accompanying materials 9 9 are licensed and made available under the terms and conditions of the BSD License … … 157 157 If EndBit is greater than 7, then ASSERT(). 158 158 If EndBit is less than StartBit, then ASSERT(). 159 If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 159 160 160 161 @param Port The I/O port to write. … … 197 198 If EndBit is greater than 7, then ASSERT(). 198 199 If EndBit is less than StartBit, then ASSERT(). 200 If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 199 201 200 202 @param Port The I/O port to write. … … 237 239 If EndBit is greater than 7, then ASSERT(). 238 240 If EndBit is less than StartBit, then ASSERT(). 241 If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 239 242 240 243 @param Port The I/O port to write. … … 279 282 If EndBit is greater than 7, then ASSERT(). 280 283 If EndBit is less than StartBit, then ASSERT(). 284 If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 285 If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 281 286 282 287 @param Port The I/O port to write. … … 437 442 If EndBit is greater than 15, then ASSERT(). 438 443 If EndBit is less than StartBit, then ASSERT(). 444 If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 439 445 440 446 @param Port The I/O port to write. … … 477 483 If EndBit is greater than 15, then ASSERT(). 478 484 If EndBit is less than StartBit, then ASSERT(). 485 If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 479 486 480 487 @param Port The I/O port to write. … … 517 524 If EndBit is greater than 15, then ASSERT(). 518 525 If EndBit is less than StartBit, then ASSERT(). 526 If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 519 527 520 528 @param Port The I/O port to write. … … 559 567 If EndBit is greater than 15, then ASSERT(). 560 568 If EndBit is less than StartBit, then ASSERT(). 569 If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 570 If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 561 571 562 572 @param Port The I/O port to write. … … 717 727 If EndBit is greater than 31, then ASSERT(). 718 728 If EndBit is less than StartBit, then ASSERT(). 729 If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 719 730 720 731 @param Port The I/O port to write. … … 757 768 If EndBit is greater than 31, then ASSERT(). 758 769 If EndBit is less than StartBit, then ASSERT(). 770 If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 759 771 760 772 @param Port The I/O port to write. … … 797 809 If EndBit is greater than 31, then ASSERT(). 798 810 If EndBit is less than StartBit, then ASSERT(). 811 If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 799 812 800 813 @param Port The I/O port to write. … … 839 852 If EndBit is greater than 31, then ASSERT(). 840 853 If EndBit is less than StartBit, then ASSERT(). 854 If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 855 If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 841 856 842 857 @param Port The I/O port to write. … … 997 1012 If EndBit is greater than 63, then ASSERT(). 998 1013 If EndBit is less than StartBit, then ASSERT(). 1014 If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 999 1015 1000 1016 @param Port The I/O port to write. … … 1037 1053 If EndBit is greater than 63, then ASSERT(). 1038 1054 If EndBit is less than StartBit, then ASSERT(). 1055 If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 1039 1056 1040 1057 @param Port The I/O port to write. … … 1077 1094 If EndBit is greater than 63, then ASSERT(). 1078 1095 If EndBit is less than StartBit, then ASSERT(). 1096 If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 1079 1097 1080 1098 @param Port The I/O port to write. … … 1119 1137 If EndBit is greater than 63, then ASSERT(). 1120 1138 If EndBit is less than StartBit, then ASSERT(). 1139 If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 1140 If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 1121 1141 1122 1142 @param Port The I/O port to write. … … 1277 1297 If EndBit is greater than 7, then ASSERT(). 1278 1298 If EndBit is less than StartBit, then ASSERT(). 1299 If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 1279 1300 1280 1301 @param Address MMIO register to write. … … 1318 1339 If EndBit is greater than 7, then ASSERT(). 1319 1340 If EndBit is less than StartBit, then ASSERT(). 1341 If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 1320 1342 1321 1343 @param Address MMIO register to write. … … 1359 1381 If EndBit is greater than 7, then ASSERT(). 1360 1382 If EndBit is less than StartBit, then ASSERT(). 1383 If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 1361 1384 1362 1385 @param Address MMIO register to write. … … 1401 1424 If EndBit is greater than 7, then ASSERT(). 1402 1425 If EndBit is less than StartBit, then ASSERT(). 1426 If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 1427 If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 1403 1428 1404 1429 @param Address MMIO register to write. … … 1559 1584 If EndBit is greater than 15, then ASSERT(). 1560 1585 If EndBit is less than StartBit, then ASSERT(). 1586 If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 1561 1587 1562 1588 @param Address MMIO register to write. … … 1600 1626 If EndBit is greater than 15, then ASSERT(). 1601 1627 If EndBit is less than StartBit, then ASSERT(). 1628 If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 1602 1629 1603 1630 @param Address MMIO register to write. … … 1641 1668 If EndBit is greater than 15, then ASSERT(). 1642 1669 If EndBit is less than StartBit, then ASSERT(). 1670 If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 1643 1671 1644 1672 @param Address MMIO register to write. … … 1683 1711 If EndBit is greater than 15, then ASSERT(). 1684 1712 If EndBit is less than StartBit, then ASSERT(). 1713 If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 1714 If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 1685 1715 1686 1716 @param Address MMIO register to write. … … 1841 1871 If EndBit is greater than 31, then ASSERT(). 1842 1872 If EndBit is less than StartBit, then ASSERT(). 1873 If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 1843 1874 1844 1875 @param Address MMIO register to write. … … 1882 1913 If EndBit is greater than 31, then ASSERT(). 1883 1914 If EndBit is less than StartBit, then ASSERT(). 1915 If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 1884 1916 1885 1917 @param Address MMIO register to write. … … 1923 1955 If EndBit is greater than 31, then ASSERT(). 1924 1956 If EndBit is less than StartBit, then ASSERT(). 1957 If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 1925 1958 1926 1959 @param Address MMIO register to write. … … 1965 1998 If EndBit is greater than 31, then ASSERT(). 1966 1999 If EndBit is less than StartBit, then ASSERT(). 2000 If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 2001 If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 1967 2002 1968 2003 @param Address MMIO register to write. … … 2123 2158 If EndBit is greater than 63, then ASSERT(). 2124 2159 If EndBit is less than StartBit, then ASSERT(). 2160 If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 2125 2161 2126 2162 @param Address MMIO register to write. … … 2164 2200 If EndBit is greater than 63, then ASSERT(). 2165 2201 If EndBit is less than StartBit, then ASSERT(). 2202 If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 2166 2203 2167 2204 @param Address MMIO register to write. … … 2205 2242 If EndBit is greater than 63, then ASSERT(). 2206 2243 If EndBit is less than StartBit, then ASSERT(). 2244 If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 2207 2245 2208 2246 @param Address MMIO register to write. … … 2247 2285 If EndBit is greater than 63, then ASSERT(). 2248 2286 If EndBit is less than StartBit, then ASSERT(). 2287 If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 2288 If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). 2249 2289 2250 2290 @param Address MMIO register to write. -
trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkPkg/Library/DxeSmmDriverEntryPoint/DxeSmmDriverEntryPoint.inf
r48674 r58459 1 1 ## @file 2 # SMM driver entry point library2 # Framework SMM driver entry point library. 3 3 # 4 # Register driver in SMRAM and wrapper driver library constructors and entry point 5 # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR> 4 # Register driver in SMRAM and wrapper driver's library constructors and entry point. 5 # 6 # Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR> 6 7 # 7 8 # This program and the accompanying materials … … 18 19 INF_VERSION = 0x00010005 19 20 BASE_NAME = DxeSmmDriverEntryPoint 21 MODULE_UNI_FILE = DxeSmmDriverEntryPoint.uni 20 22 FILE_GUID = 79C5C7B7-1083-42a6-AD15-2A4E7C4274D7 21 23 MODULE_TYPE = DXE_SMM_DRIVER … … 45 47 46 48 [Protocols] 47 gEfiLoadedImageProtocolGuid # PROTOCOL ALWAYS_CONSUMED48 gEfiSmmBaseProtocolGuid # PROTOCOL ALWAYS_CONSUMED49 gEfiDevicePathProtocolGuid # PROTOCOL ALWAYS_CONSUMED49 gEfiLoadedImageProtocolGuid ## CONSUMES 50 gEfiSmmBaseProtocolGuid ## CONSUMES 51 gEfiDevicePathProtocolGuid ## CONSUMES 50 52 51 53 [Depex] 52 54 gEfiSmmBaseProtocolGuid 53 55 54 -
trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkPkg/Library/FrameworkUefiLib/Console.c
r48674 r58459 2 2 This module provide help function for displaying unicode string. 3 3 4 Copyright (c) 2006 - 20 09, Intel Corporation. All rights reserved.<BR>4 Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR> 5 5 This program and the accompanying materials 6 6 are licensed and made available under the terms and conditions of the BSD License … … 315 315 ) 316 316 { 317 EFI_STATUS Status; 317 318 VA_LIST Args; 318 319 EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *ConOut; … … 458 459 // 459 460 if (Key != NULL) { 460 gBS->WaitForEvent (1, &gST->ConIn->WaitForKey, &EventIndex); 461 gST->ConIn->ReadKeyStroke (gST->ConIn, Key); 461 while (TRUE) { 462 Status = gST->ConIn->ReadKeyStroke (gST->ConIn, Key); 463 if (!EFI_ERROR (Status)) { 464 break; 465 } 466 467 // 468 // If we encounter error, continue to read another key in. 469 // 470 if (Status != EFI_NOT_READY) { 471 continue; 472 } 473 gBS->WaitForEvent (1, &gST->ConIn->WaitForKey, &EventIndex); 474 } 462 475 } 463 476 } -
trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkPkg/Library/FrameworkUefiLib/FrameworkUefiLib.inf
r48674 r58459 1 1 ## @file 2 # Component description file for the entry point to a EFIDXE Drivers2 # Library to abstract Framework extensions that conflict with UEFI 2.0 Specification. 3 3 # 4 # Library to abstract Framework extensions that conflict with UEFI 2.0 Specification. 5 # Help Port Framework/Tinao code that has conflicts with UEFI 2.0 by hiding the oldconflicts 6 # with library functions and supporting implementations of the old (EDK/EFI 1.10) and new 7 # (EDK II/UEFI 2.0) way. This module is a DXE driver as it contains DXE enum extensions for 8 # EFI event services. 4 # This library is helpful to port Framework/Tinao code that has conflicts with UEFI 2.0. 5 # It hides the old conflicts with library functions and supporting implementations of 6 # the old (EDK/EFI 1.10) and new (EDK II/UEFI 2.0) way. 9 7 # 10 # Copyright (c) 2006 - 201 0, Intel Corporation. All rights reserved.<BR>8 # Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR> 11 9 # 12 10 # This program and the accompanying materials … … 23 21 INF_VERSION = 0x00010005 24 22 BASE_NAME = FrameworkUefiLib 23 MODULE_UNI_FILE = FrameworkUefiLib.uni 25 24 FILE_GUID = B2F0D71A-A39F-4094-854B-0C6BA6910CCE 26 25 MODULE_TYPE = UEFI_DRIVER … … 55 54 56 55 [Guids] 57 gEfiEventReadyToBootGuid # ALWAYS_CONSUMED58 gEfiEventLegacyBootGuid # ALWAYS_CONSUMED56 gEfiEventReadyToBootGuid ## SOMETIMES_CONSUMES ## Event 57 gEfiEventLegacyBootGuid ## SOMETIMES_CONSUMES ## Event 59 58 60 59 [Protocols] 61 gEfiDriverBindingProtocolGuid # ALWAYS_CONSUMED62 gEfiSimpleTextOutProtocolGuid # ALWAYS_CONSUMED63 gEfiGraphicsOutputProtocolGuid # ALWAYS_CONSUMED64 gEfiHiiFontProtocolGuid # ALWAYS_CONSUMED65 gEfiComponentNameProtocolGuid # SOMETIMES_CONSUMED66 gEfiComponentName2ProtocolGuid # SOMETIMES_CONSUMED67 gEfiDriverConfigurationProtocolGuid # SOMETIMES_CONSUMED68 gEfiDriverConfiguration2ProtocolGuid # SOMETIMES_CONSUMED69 gEfiDriverDiagnosticsProtocolGuid # SOMETIMES_CONSUMED70 gEfiDriverDiagnostics2ProtocolGuid # SOMETIMES_CONSUMED71 gEfiUgaDrawProtocolGuid # SOMETIMES_CONSUMED60 gEfiDriverBindingProtocolGuid ## SOMETIMES_PRODUCES 61 gEfiSimpleTextOutProtocolGuid ## SOMETIMES_CONSUMES 62 gEfiGraphicsOutputProtocolGuid ## SOMETIMES_CONSUMES 63 gEfiHiiFontProtocolGuid ## SOMETIMES_CONSUMES 64 gEfiComponentNameProtocolGuid ## SOMETIMES_PRODUCES 65 gEfiComponentName2ProtocolGuid ## SOMETIMES_PRODUCES 66 gEfiDriverConfigurationProtocolGuid ## SOMETIMES_PRODUCES 67 gEfiDriverConfiguration2ProtocolGuid ## SOMETIMES_PRODUCES 68 gEfiDriverDiagnosticsProtocolGuid ## SOMETIMES_PRODUCES 69 gEfiDriverDiagnostics2ProtocolGuid ## SOMETIMES_PRODUCES 70 gEfiUgaDrawProtocolGuid ## SOMETIMES_CONSUMES 72 71 73 72 74 73 [Pcd] 75 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize 74 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize ## SOMETIMES_CONSUMES 76 75 77 76 [FeaturePcd] 78 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable 79 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable 80 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable 81 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable 82 gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport 77 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable ## CONSUMES 78 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable ## CONSUMES 79 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable ## CONSUMES 80 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable ## CONSUMES 81 gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport ## CONSUMES 83 82 -
trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkPkg/Library/FrameworkUefiLib/UefiDriverModel.c
r48674 r58459 3 3 installation. 4 4 5 Copyright (c) 2006 - 20 08, Intel Corporation. All rights reserved.<BR>5 Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR> 6 6 This program and the accompanying materials are 7 7 licensed and made available under the terms and conditions of the BSD License … … 52 52 ASSERT (DriverBinding != NULL); 53 53 54 // 55 // Update the ImageHandle and DriverBindingHandle fields of the Driver Binding Protocol 56 // 57 DriverBinding->ImageHandle = ImageHandle; 58 DriverBinding->DriverBindingHandle = DriverBindingHandle; 59 54 60 Status = gBS->InstallMultipleProtocolInterfaces ( 55 &DriverBinding Handle,61 &DriverBinding->DriverBindingHandle, 56 62 &gEfiDriverBindingProtocolGuid, DriverBinding, 57 63 NULL … … 61 67 // 62 68 ASSERT_EFI_ERROR (Status); 63 64 //65 // Update the ImageHandle and DriverBindingHandle fields of the Driver Binding Protocol66 //67 DriverBinding->ImageHandle = ImageHandle;68 DriverBinding->DriverBindingHandle = DriverBindingHandle;69 69 70 70 return Status; … … 114 114 ASSERT (DriverBinding != NULL); 115 115 116 // 117 // Update the ImageHandle and DriverBindingHandle fields of the Driver Binding Protocol 118 // 119 DriverBinding->ImageHandle = ImageHandle; 120 DriverBinding->DriverBindingHandle = DriverBindingHandle; 121 116 122 if (DriverDiagnostics == NULL || FeaturePcdGet(PcdDriverDiagnosticsDisable)) { 117 123 if (DriverConfiguration == NULL) { 118 124 if (ComponentName == NULL || FeaturePcdGet(PcdComponentNameDisable)) { 119 125 Status = gBS->InstallMultipleProtocolInterfaces ( 120 &DriverBinding Handle,126 &DriverBinding->DriverBindingHandle, 121 127 &gEfiDriverBindingProtocolGuid, DriverBinding, 122 128 NULL … … 124 130 } else { 125 131 Status = gBS->InstallMultipleProtocolInterfaces ( 126 &DriverBinding Handle,132 &DriverBinding->DriverBindingHandle, 127 133 &gEfiDriverBindingProtocolGuid, DriverBinding, 128 134 &gEfiComponentNameProtocolGuid, ComponentName, … … 133 139 if (ComponentName == NULL || FeaturePcdGet(PcdComponentNameDisable)) { 134 140 Status = gBS->InstallMultipleProtocolInterfaces ( 135 &DriverBinding Handle,141 &DriverBinding->DriverBindingHandle, 136 142 &gEfiDriverBindingProtocolGuid, DriverBinding, 137 143 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, … … 140 146 } else { 141 147 Status = gBS->InstallMultipleProtocolInterfaces ( 142 &DriverBinding Handle,148 &DriverBinding->DriverBindingHandle, 143 149 &gEfiDriverBindingProtocolGuid, DriverBinding, 144 150 &gEfiComponentNameProtocolGuid, ComponentName, … … 152 158 if (ComponentName == NULL || FeaturePcdGet(PcdComponentNameDisable)) { 153 159 Status = gBS->InstallMultipleProtocolInterfaces ( 154 &DriverBinding Handle,160 &DriverBinding->DriverBindingHandle, 155 161 &gEfiDriverBindingProtocolGuid, DriverBinding, 156 162 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, … … 159 165 } else { 160 166 Status = gBS->InstallMultipleProtocolInterfaces ( 161 &DriverBinding Handle,167 &DriverBinding->DriverBindingHandle, 162 168 &gEfiDriverBindingProtocolGuid, DriverBinding, 163 169 &gEfiComponentNameProtocolGuid, ComponentName, … … 169 175 if (ComponentName == NULL || FeaturePcdGet(PcdComponentNameDisable)) { 170 176 Status = gBS->InstallMultipleProtocolInterfaces ( 171 &DriverBinding Handle,177 &DriverBinding->DriverBindingHandle, 172 178 &gEfiDriverBindingProtocolGuid, DriverBinding, 173 179 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, … … 177 183 } else { 178 184 Status = gBS->InstallMultipleProtocolInterfaces ( 179 &DriverBinding Handle,185 &DriverBinding->DriverBindingHandle, 180 186 &gEfiDriverBindingProtocolGuid, DriverBinding, 181 187 &gEfiComponentNameProtocolGuid, ComponentName, … … 192 198 // 193 199 ASSERT_EFI_ERROR (Status); 194 195 //196 // Update the ImageHandle and DriverBindingHandle fields of the Driver Binding Protocol197 //198 DriverBinding->ImageHandle = ImageHandle;199 DriverBinding->DriverBindingHandle = DriverBindingHandle;200 200 201 201 return Status; … … 242 242 ASSERT (DriverBinding != NULL); 243 243 244 // 245 // Update the ImageHandle and DriverBindingHandle fields of the Driver Binding Protocol 246 // 247 DriverBinding->ImageHandle = ImageHandle; 248 DriverBinding->DriverBindingHandle = DriverBindingHandle; 249 244 250 if (ComponentName == NULL || FeaturePcdGet(PcdComponentNameDisable)) { 245 251 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 246 252 Status = gBS->InstallMultipleProtocolInterfaces ( 247 &DriverBinding Handle,253 &DriverBinding->DriverBindingHandle, 248 254 &gEfiDriverBindingProtocolGuid, DriverBinding, 249 255 NULL … … 251 257 } else { 252 258 Status = gBS->InstallMultipleProtocolInterfaces ( 253 &DriverBinding Handle,259 &DriverBinding->DriverBindingHandle, 254 260 &gEfiDriverBindingProtocolGuid, DriverBinding, 255 261 &gEfiComponentName2ProtocolGuid, ComponentName2, … … 260 266 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 261 267 Status = gBS->InstallMultipleProtocolInterfaces ( 262 &DriverBinding Handle,268 &DriverBinding->DriverBindingHandle, 263 269 &gEfiDriverBindingProtocolGuid, DriverBinding, 264 270 &gEfiComponentNameProtocolGuid, ComponentName, … … 267 273 } else { 268 274 Status = gBS->InstallMultipleProtocolInterfaces ( 269 &DriverBinding Handle,275 &DriverBinding->DriverBindingHandle, 270 276 &gEfiDriverBindingProtocolGuid, DriverBinding, 271 277 &gEfiComponentNameProtocolGuid, ComponentName, … … 275 281 } 276 282 } 283 277 284 // 278 285 // ASSERT if the call to InstallMultipleProtocolInterfaces() failed 279 286 // 280 287 ASSERT_EFI_ERROR (Status); 281 282 //283 // Update the ImageHandle and DriverBindingHandle fields of the Driver Binding Protocol284 //285 DriverBinding->ImageHandle = ImageHandle;286 DriverBinding->DriverBindingHandle = DriverBindingHandle;287 288 288 289 return Status; … … 301 302 produces multiple Driver Binding Protocols. 302 303 If DriverBinding is NULL, then ASSERT(). 303 If the installation fails, then ASSERT(). 304 If the installation fails, then ASSERT(). 304 305 305 306 … … 339 340 ASSERT (DriverBinding != NULL); 340 341 342 // 343 // Update the ImageHandle and DriverBindingHandle fields of the Driver Binding Protocol 344 // 345 DriverBinding->ImageHandle = ImageHandle; 346 DriverBinding->DriverBindingHandle = DriverBindingHandle; 347 341 348 if (DriverConfiguration2 == NULL) { 342 349 if (DriverConfiguration == NULL) { … … 346 353 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 347 354 Status = gBS->InstallMultipleProtocolInterfaces ( 348 &DriverBinding Handle,349 &gEfiDriverBindingProtocolGuid, DriverBinding, 350 NULL 351 ); 352 } else { 353 Status = gBS->InstallMultipleProtocolInterfaces ( 354 &DriverBinding Handle,355 &gEfiDriverBindingProtocolGuid, DriverBinding, 356 &gEfiComponentName2ProtocolGuid, ComponentName2, 357 NULL 358 ); 359 } 360 } else { 361 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 362 Status = gBS->InstallMultipleProtocolInterfaces ( 363 &DriverBinding Handle,364 &gEfiDriverBindingProtocolGuid, DriverBinding, 365 &gEfiComponentNameProtocolGuid, ComponentName, 366 NULL 367 ); 368 } else { 369 Status = gBS->InstallMultipleProtocolInterfaces ( 370 &DriverBinding Handle,355 &DriverBinding->DriverBindingHandle, 356 &gEfiDriverBindingProtocolGuid, DriverBinding, 357 NULL 358 ); 359 } else { 360 Status = gBS->InstallMultipleProtocolInterfaces ( 361 &DriverBinding->DriverBindingHandle, 362 &gEfiDriverBindingProtocolGuid, DriverBinding, 363 &gEfiComponentName2ProtocolGuid, ComponentName2, 364 NULL 365 ); 366 } 367 } else { 368 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 369 Status = gBS->InstallMultipleProtocolInterfaces ( 370 &DriverBinding->DriverBindingHandle, 371 &gEfiDriverBindingProtocolGuid, DriverBinding, 372 &gEfiComponentNameProtocolGuid, ComponentName, 373 NULL 374 ); 375 } else { 376 Status = gBS->InstallMultipleProtocolInterfaces ( 377 &DriverBinding->DriverBindingHandle, 371 378 &gEfiDriverBindingProtocolGuid, DriverBinding, 372 379 &gEfiComponentNameProtocolGuid, ComponentName, … … 380 387 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 381 388 Status = gBS->InstallMultipleProtocolInterfaces ( 382 &DriverBinding Handle,383 &gEfiDriverBindingProtocolGuid, DriverBinding, 384 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 385 NULL 386 ); 387 } else { 388 Status = gBS->InstallMultipleProtocolInterfaces ( 389 &DriverBinding Handle,390 &gEfiDriverBindingProtocolGuid, DriverBinding, 391 &gEfiComponentName2ProtocolGuid, ComponentName2, 392 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 393 NULL 394 ); 395 } 396 } else { 397 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 398 Status = gBS->InstallMultipleProtocolInterfaces ( 399 &DriverBinding Handle,400 &gEfiDriverBindingProtocolGuid, DriverBinding, 401 &gEfiComponentNameProtocolGuid, ComponentName, 402 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 403 NULL 404 ); 405 } else { 406 Status = gBS->InstallMultipleProtocolInterfaces ( 407 &DriverBinding Handle,389 &DriverBinding->DriverBindingHandle, 390 &gEfiDriverBindingProtocolGuid, DriverBinding, 391 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 392 NULL 393 ); 394 } else { 395 Status = gBS->InstallMultipleProtocolInterfaces ( 396 &DriverBinding->DriverBindingHandle, 397 &gEfiDriverBindingProtocolGuid, DriverBinding, 398 &gEfiComponentName2ProtocolGuid, ComponentName2, 399 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 400 NULL 401 ); 402 } 403 } else { 404 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 405 Status = gBS->InstallMultipleProtocolInterfaces ( 406 &DriverBinding->DriverBindingHandle, 407 &gEfiDriverBindingProtocolGuid, DriverBinding, 408 &gEfiComponentNameProtocolGuid, ComponentName, 409 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 410 NULL 411 ); 412 } else { 413 Status = gBS->InstallMultipleProtocolInterfaces ( 414 &DriverBinding->DriverBindingHandle, 408 415 &gEfiDriverBindingProtocolGuid, DriverBinding, 409 416 &gEfiComponentNameProtocolGuid, ComponentName, … … 420 427 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 421 428 Status = gBS->InstallMultipleProtocolInterfaces ( 422 &DriverBinding Handle,423 &gEfiDriverBindingProtocolGuid, DriverBinding, 424 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 425 NULL 426 ); 427 } else { 428 Status = gBS->InstallMultipleProtocolInterfaces ( 429 &DriverBinding Handle,430 &gEfiDriverBindingProtocolGuid, DriverBinding, 431 &gEfiComponentName2ProtocolGuid, ComponentName2, 432 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 433 NULL 434 ); 435 } 436 } else { 437 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 438 Status = gBS->InstallMultipleProtocolInterfaces ( 439 &DriverBinding Handle,440 &gEfiDriverBindingProtocolGuid, DriverBinding, 441 &gEfiComponentNameProtocolGuid, ComponentName, 442 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 443 NULL 444 ); 445 } else { 446 Status = gBS->InstallMultipleProtocolInterfaces ( 447 &DriverBinding Handle,429 &DriverBinding->DriverBindingHandle, 430 &gEfiDriverBindingProtocolGuid, DriverBinding, 431 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 432 NULL 433 ); 434 } else { 435 Status = gBS->InstallMultipleProtocolInterfaces ( 436 &DriverBinding->DriverBindingHandle, 437 &gEfiDriverBindingProtocolGuid, DriverBinding, 438 &gEfiComponentName2ProtocolGuid, ComponentName2, 439 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 440 NULL 441 ); 442 } 443 } else { 444 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 445 Status = gBS->InstallMultipleProtocolInterfaces ( 446 &DriverBinding->DriverBindingHandle, 447 &gEfiDriverBindingProtocolGuid, DriverBinding, 448 &gEfiComponentNameProtocolGuid, ComponentName, 449 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 450 NULL 451 ); 452 } else { 453 Status = gBS->InstallMultipleProtocolInterfaces ( 454 &DriverBinding->DriverBindingHandle, 448 455 &gEfiDriverBindingProtocolGuid, DriverBinding, 449 456 &gEfiComponentNameProtocolGuid, ComponentName, … … 458 465 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 459 466 Status = gBS->InstallMultipleProtocolInterfaces ( 460 &DriverBinding Handle,461 &gEfiDriverBindingProtocolGuid, DriverBinding, 462 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 463 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 464 NULL 465 ); 466 } else { 467 Status = gBS->InstallMultipleProtocolInterfaces ( 468 &DriverBinding Handle,469 &gEfiDriverBindingProtocolGuid, DriverBinding, 470 &gEfiComponentName2ProtocolGuid, ComponentName2, 471 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 472 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 473 NULL 474 ); 475 } 476 } else { 477 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 478 Status = gBS->InstallMultipleProtocolInterfaces ( 479 &DriverBinding Handle,480 &gEfiDriverBindingProtocolGuid, DriverBinding, 481 &gEfiComponentNameProtocolGuid, ComponentName, 482 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 483 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 484 NULL 485 ); 486 } else { 487 Status = gBS->InstallMultipleProtocolInterfaces ( 488 &DriverBinding Handle,467 &DriverBinding->DriverBindingHandle, 468 &gEfiDriverBindingProtocolGuid, DriverBinding, 469 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 470 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 471 NULL 472 ); 473 } else { 474 Status = gBS->InstallMultipleProtocolInterfaces ( 475 &DriverBinding->DriverBindingHandle, 476 &gEfiDriverBindingProtocolGuid, DriverBinding, 477 &gEfiComponentName2ProtocolGuid, ComponentName2, 478 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 479 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 480 NULL 481 ); 482 } 483 } else { 484 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 485 Status = gBS->InstallMultipleProtocolInterfaces ( 486 &DriverBinding->DriverBindingHandle, 487 &gEfiDriverBindingProtocolGuid, DriverBinding, 488 &gEfiComponentNameProtocolGuid, ComponentName, 489 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 490 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 491 NULL 492 ); 493 } else { 494 Status = gBS->InstallMultipleProtocolInterfaces ( 495 &DriverBinding->DriverBindingHandle, 489 496 &gEfiDriverBindingProtocolGuid, DriverBinding, 490 497 &gEfiComponentNameProtocolGuid, ComponentName, … … 504 511 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 505 512 Status = gBS->InstallMultipleProtocolInterfaces ( 506 &DriverBinding Handle,507 &gEfiDriverBindingProtocolGuid, DriverBinding, 508 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 509 NULL 510 ); 511 } else { 512 Status = gBS->InstallMultipleProtocolInterfaces ( 513 &DriverBinding Handle,514 &gEfiDriverBindingProtocolGuid, DriverBinding, 515 &gEfiComponentName2ProtocolGuid, ComponentName2, 516 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 517 NULL 518 ); 519 } 520 } else { 521 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 522 Status = gBS->InstallMultipleProtocolInterfaces ( 523 &DriverBinding Handle,524 &gEfiDriverBindingProtocolGuid, DriverBinding, 525 &gEfiComponentNameProtocolGuid, ComponentName, 526 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 527 NULL 528 ); 529 } else { 530 Status = gBS->InstallMultipleProtocolInterfaces ( 531 &DriverBinding Handle,513 &DriverBinding->DriverBindingHandle, 514 &gEfiDriverBindingProtocolGuid, DriverBinding, 515 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 516 NULL 517 ); 518 } else { 519 Status = gBS->InstallMultipleProtocolInterfaces ( 520 &DriverBinding->DriverBindingHandle, 521 &gEfiDriverBindingProtocolGuid, DriverBinding, 522 &gEfiComponentName2ProtocolGuid, ComponentName2, 523 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 524 NULL 525 ); 526 } 527 } else { 528 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 529 Status = gBS->InstallMultipleProtocolInterfaces ( 530 &DriverBinding->DriverBindingHandle, 531 &gEfiDriverBindingProtocolGuid, DriverBinding, 532 &gEfiComponentNameProtocolGuid, ComponentName, 533 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 534 NULL 535 ); 536 } else { 537 Status = gBS->InstallMultipleProtocolInterfaces ( 538 &DriverBinding->DriverBindingHandle, 532 539 &gEfiDriverBindingProtocolGuid, DriverBinding, 533 540 &gEfiComponentNameProtocolGuid, ComponentName, … … 542 549 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 543 550 Status = gBS->InstallMultipleProtocolInterfaces ( 544 &DriverBinding Handle,545 &gEfiDriverBindingProtocolGuid, DriverBinding, 546 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 547 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 548 NULL 549 ); 550 } else { 551 Status = gBS->InstallMultipleProtocolInterfaces ( 552 &DriverBinding Handle,553 &gEfiDriverBindingProtocolGuid, DriverBinding, 554 &gEfiComponentName2ProtocolGuid, ComponentName2, 555 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 556 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 557 NULL 558 ); 559 } 560 } else { 561 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 562 Status = gBS->InstallMultipleProtocolInterfaces ( 563 &DriverBinding Handle,564 &gEfiDriverBindingProtocolGuid, DriverBinding, 565 &gEfiComponentNameProtocolGuid, ComponentName, 566 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 567 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 568 NULL 569 ); 570 } else { 571 Status = gBS->InstallMultipleProtocolInterfaces ( 572 &DriverBinding Handle,551 &DriverBinding->DriverBindingHandle, 552 &gEfiDriverBindingProtocolGuid, DriverBinding, 553 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 554 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 555 NULL 556 ); 557 } else { 558 Status = gBS->InstallMultipleProtocolInterfaces ( 559 &DriverBinding->DriverBindingHandle, 560 &gEfiDriverBindingProtocolGuid, DriverBinding, 561 &gEfiComponentName2ProtocolGuid, ComponentName2, 562 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 563 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 564 NULL 565 ); 566 } 567 } else { 568 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 569 Status = gBS->InstallMultipleProtocolInterfaces ( 570 &DriverBinding->DriverBindingHandle, 571 &gEfiDriverBindingProtocolGuid, DriverBinding, 572 &gEfiComponentNameProtocolGuid, ComponentName, 573 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 574 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 575 NULL 576 ); 577 } else { 578 Status = gBS->InstallMultipleProtocolInterfaces ( 579 &DriverBinding->DriverBindingHandle, 573 580 &gEfiDriverBindingProtocolGuid, DriverBinding, 574 581 &gEfiComponentNameProtocolGuid, ComponentName, … … 586 593 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 587 594 Status = gBS->InstallMultipleProtocolInterfaces ( 588 &DriverBinding Handle,589 &gEfiDriverBindingProtocolGuid, DriverBinding, 590 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 591 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 592 NULL 593 ); 594 } else { 595 Status = gBS->InstallMultipleProtocolInterfaces ( 596 &DriverBinding Handle,597 &gEfiDriverBindingProtocolGuid, DriverBinding, 598 &gEfiComponentName2ProtocolGuid, ComponentName2, 599 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 600 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 601 NULL 602 ); 603 } 604 } else { 605 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 606 Status = gBS->InstallMultipleProtocolInterfaces ( 607 &DriverBinding Handle,608 &gEfiDriverBindingProtocolGuid, DriverBinding, 609 &gEfiComponentNameProtocolGuid, ComponentName, 610 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 611 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 612 NULL 613 ); 614 } else { 615 Status = gBS->InstallMultipleProtocolInterfaces ( 616 &DriverBinding Handle,595 &DriverBinding->DriverBindingHandle, 596 &gEfiDriverBindingProtocolGuid, DriverBinding, 597 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 598 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 599 NULL 600 ); 601 } else { 602 Status = gBS->InstallMultipleProtocolInterfaces ( 603 &DriverBinding->DriverBindingHandle, 604 &gEfiDriverBindingProtocolGuid, DriverBinding, 605 &gEfiComponentName2ProtocolGuid, ComponentName2, 606 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 607 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 608 NULL 609 ); 610 } 611 } else { 612 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 613 Status = gBS->InstallMultipleProtocolInterfaces ( 614 &DriverBinding->DriverBindingHandle, 615 &gEfiDriverBindingProtocolGuid, DriverBinding, 616 &gEfiComponentNameProtocolGuid, ComponentName, 617 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 618 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 619 NULL 620 ); 621 } else { 622 Status = gBS->InstallMultipleProtocolInterfaces ( 623 &DriverBinding->DriverBindingHandle, 617 624 &gEfiDriverBindingProtocolGuid, DriverBinding, 618 625 &gEfiComponentNameProtocolGuid, ComponentName, … … 628 635 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 629 636 Status = gBS->InstallMultipleProtocolInterfaces ( 630 &DriverBinding Handle,631 &gEfiDriverBindingProtocolGuid, DriverBinding, 632 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 633 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 634 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 635 NULL 636 ); 637 } else { 638 Status = gBS->InstallMultipleProtocolInterfaces ( 639 &DriverBinding Handle,640 &gEfiDriverBindingProtocolGuid, DriverBinding, 641 &gEfiComponentName2ProtocolGuid, ComponentName2, 642 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 643 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 644 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 645 NULL 646 ); 647 } 648 } else { 649 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 650 Status = gBS->InstallMultipleProtocolInterfaces ( 651 &DriverBinding Handle,652 &gEfiDriverBindingProtocolGuid, DriverBinding, 653 &gEfiComponentNameProtocolGuid, ComponentName, 654 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 655 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 656 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 657 NULL 658 ); 659 } else { 660 Status = gBS->InstallMultipleProtocolInterfaces ( 661 &DriverBinding Handle,637 &DriverBinding->DriverBindingHandle, 638 &gEfiDriverBindingProtocolGuid, DriverBinding, 639 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 640 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 641 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 642 NULL 643 ); 644 } else { 645 Status = gBS->InstallMultipleProtocolInterfaces ( 646 &DriverBinding->DriverBindingHandle, 647 &gEfiDriverBindingProtocolGuid, DriverBinding, 648 &gEfiComponentName2ProtocolGuid, ComponentName2, 649 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 650 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 651 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 652 NULL 653 ); 654 } 655 } else { 656 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 657 Status = gBS->InstallMultipleProtocolInterfaces ( 658 &DriverBinding->DriverBindingHandle, 659 &gEfiDriverBindingProtocolGuid, DriverBinding, 660 &gEfiComponentNameProtocolGuid, ComponentName, 661 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 662 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 663 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 664 NULL 665 ); 666 } else { 667 Status = gBS->InstallMultipleProtocolInterfaces ( 668 &DriverBinding->DriverBindingHandle, 662 669 &gEfiDriverBindingProtocolGuid, DriverBinding, 663 670 &gEfiComponentNameProtocolGuid, ComponentName, … … 680 687 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 681 688 Status = gBS->InstallMultipleProtocolInterfaces ( 682 &DriverBinding Handle,683 &gEfiDriverBindingProtocolGuid, DriverBinding, 684 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 685 NULL 686 ); 687 } else { 688 Status = gBS->InstallMultipleProtocolInterfaces ( 689 &DriverBinding Handle,690 &gEfiDriverBindingProtocolGuid, DriverBinding, 691 &gEfiComponentName2ProtocolGuid, ComponentName2, 692 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 693 NULL 694 ); 695 } 696 } else { 697 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 698 Status = gBS->InstallMultipleProtocolInterfaces ( 699 &DriverBinding Handle,700 &gEfiDriverBindingProtocolGuid, DriverBinding, 701 &gEfiComponentNameProtocolGuid, ComponentName, 702 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 703 NULL 704 ); 705 } else { 706 Status = gBS->InstallMultipleProtocolInterfaces ( 707 &DriverBinding Handle,689 &DriverBinding->DriverBindingHandle, 690 &gEfiDriverBindingProtocolGuid, DriverBinding, 691 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 692 NULL 693 ); 694 } else { 695 Status = gBS->InstallMultipleProtocolInterfaces ( 696 &DriverBinding->DriverBindingHandle, 697 &gEfiDriverBindingProtocolGuid, DriverBinding, 698 &gEfiComponentName2ProtocolGuid, ComponentName2, 699 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 700 NULL 701 ); 702 } 703 } else { 704 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 705 Status = gBS->InstallMultipleProtocolInterfaces ( 706 &DriverBinding->DriverBindingHandle, 707 &gEfiDriverBindingProtocolGuid, DriverBinding, 708 &gEfiComponentNameProtocolGuid, ComponentName, 709 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 710 NULL 711 ); 712 } else { 713 Status = gBS->InstallMultipleProtocolInterfaces ( 714 &DriverBinding->DriverBindingHandle, 708 715 &gEfiDriverBindingProtocolGuid, DriverBinding, 709 716 &gEfiComponentNameProtocolGuid, ComponentName, … … 718 725 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 719 726 Status = gBS->InstallMultipleProtocolInterfaces ( 720 &DriverBinding Handle,721 &gEfiDriverBindingProtocolGuid, DriverBinding, 722 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 723 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 724 NULL 725 ); 726 } else { 727 Status = gBS->InstallMultipleProtocolInterfaces ( 728 &DriverBinding Handle,729 &gEfiDriverBindingProtocolGuid, DriverBinding, 730 &gEfiComponentName2ProtocolGuid, ComponentName2, 731 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 732 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 733 NULL 734 ); 735 } 736 } else { 737 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 738 Status = gBS->InstallMultipleProtocolInterfaces ( 739 &DriverBinding Handle,740 &gEfiDriverBindingProtocolGuid, DriverBinding, 741 &gEfiComponentNameProtocolGuid, ComponentName, 742 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 743 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 744 NULL 745 ); 746 } else { 747 Status = gBS->InstallMultipleProtocolInterfaces ( 748 &DriverBinding Handle,727 &DriverBinding->DriverBindingHandle, 728 &gEfiDriverBindingProtocolGuid, DriverBinding, 729 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 730 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 731 NULL 732 ); 733 } else { 734 Status = gBS->InstallMultipleProtocolInterfaces ( 735 &DriverBinding->DriverBindingHandle, 736 &gEfiDriverBindingProtocolGuid, DriverBinding, 737 &gEfiComponentName2ProtocolGuid, ComponentName2, 738 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 739 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 740 NULL 741 ); 742 } 743 } else { 744 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 745 Status = gBS->InstallMultipleProtocolInterfaces ( 746 &DriverBinding->DriverBindingHandle, 747 &gEfiDriverBindingProtocolGuid, DriverBinding, 748 &gEfiComponentNameProtocolGuid, ComponentName, 749 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 750 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 751 NULL 752 ); 753 } else { 754 Status = gBS->InstallMultipleProtocolInterfaces ( 755 &DriverBinding->DriverBindingHandle, 749 756 &gEfiDriverBindingProtocolGuid, DriverBinding, 750 757 &gEfiComponentNameProtocolGuid, ComponentName, … … 762 769 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 763 770 Status = gBS->InstallMultipleProtocolInterfaces ( 764 &DriverBinding Handle,765 &gEfiDriverBindingProtocolGuid, DriverBinding, 766 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 767 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 768 NULL 769 ); 770 } else { 771 Status = gBS->InstallMultipleProtocolInterfaces ( 772 &DriverBinding Handle,773 &gEfiDriverBindingProtocolGuid, DriverBinding, 774 &gEfiComponentName2ProtocolGuid, ComponentName2, 775 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 776 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 777 NULL 778 ); 779 } 780 } else { 781 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 782 Status = gBS->InstallMultipleProtocolInterfaces ( 783 &DriverBinding Handle,784 &gEfiDriverBindingProtocolGuid, DriverBinding, 785 &gEfiComponentNameProtocolGuid, ComponentName, 786 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 787 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 788 NULL 789 ); 790 } else { 791 Status = gBS->InstallMultipleProtocolInterfaces ( 792 &DriverBinding Handle,771 &DriverBinding->DriverBindingHandle, 772 &gEfiDriverBindingProtocolGuid, DriverBinding, 773 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 774 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 775 NULL 776 ); 777 } else { 778 Status = gBS->InstallMultipleProtocolInterfaces ( 779 &DriverBinding->DriverBindingHandle, 780 &gEfiDriverBindingProtocolGuid, DriverBinding, 781 &gEfiComponentName2ProtocolGuid, ComponentName2, 782 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 783 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 784 NULL 785 ); 786 } 787 } else { 788 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 789 Status = gBS->InstallMultipleProtocolInterfaces ( 790 &DriverBinding->DriverBindingHandle, 791 &gEfiDriverBindingProtocolGuid, DriverBinding, 792 &gEfiComponentNameProtocolGuid, ComponentName, 793 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 794 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 795 NULL 796 ); 797 } else { 798 Status = gBS->InstallMultipleProtocolInterfaces ( 799 &DriverBinding->DriverBindingHandle, 793 800 &gEfiDriverBindingProtocolGuid, DriverBinding, 794 801 &gEfiComponentNameProtocolGuid, ComponentName, … … 804 811 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 805 812 Status = gBS->InstallMultipleProtocolInterfaces ( 806 &DriverBinding Handle,807 &gEfiDriverBindingProtocolGuid, DriverBinding, 808 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 809 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 810 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 811 NULL 812 ); 813 } else { 814 Status = gBS->InstallMultipleProtocolInterfaces ( 815 &DriverBinding Handle,816 &gEfiDriverBindingProtocolGuid, DriverBinding, 817 &gEfiComponentName2ProtocolGuid, ComponentName2, 818 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 819 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 820 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 821 NULL 822 ); 823 } 824 } else { 825 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 826 Status = gBS->InstallMultipleProtocolInterfaces ( 827 &DriverBinding Handle,828 &gEfiDriverBindingProtocolGuid, DriverBinding, 829 &gEfiComponentNameProtocolGuid, ComponentName, 830 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 831 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 832 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 833 NULL 834 ); 835 } else { 836 Status = gBS->InstallMultipleProtocolInterfaces ( 837 &DriverBinding Handle,813 &DriverBinding->DriverBindingHandle, 814 &gEfiDriverBindingProtocolGuid, DriverBinding, 815 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 816 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 817 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 818 NULL 819 ); 820 } else { 821 Status = gBS->InstallMultipleProtocolInterfaces ( 822 &DriverBinding->DriverBindingHandle, 823 &gEfiDriverBindingProtocolGuid, DriverBinding, 824 &gEfiComponentName2ProtocolGuid, ComponentName2, 825 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 826 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 827 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 828 NULL 829 ); 830 } 831 } else { 832 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 833 Status = gBS->InstallMultipleProtocolInterfaces ( 834 &DriverBinding->DriverBindingHandle, 835 &gEfiDriverBindingProtocolGuid, DriverBinding, 836 &gEfiComponentNameProtocolGuid, ComponentName, 837 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 838 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 839 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 840 NULL 841 ); 842 } else { 843 Status = gBS->InstallMultipleProtocolInterfaces ( 844 &DriverBinding->DriverBindingHandle, 838 845 &gEfiDriverBindingProtocolGuid, DriverBinding, 839 846 &gEfiComponentNameProtocolGuid, ComponentName, … … 854 861 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 855 862 Status = gBS->InstallMultipleProtocolInterfaces ( 856 &DriverBinding Handle,857 &gEfiDriverBindingProtocolGuid, DriverBinding, 858 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 859 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 860 NULL 861 ); 862 } else { 863 Status = gBS->InstallMultipleProtocolInterfaces ( 864 &DriverBinding Handle,865 &gEfiDriverBindingProtocolGuid, DriverBinding, 866 &gEfiComponentName2ProtocolGuid, ComponentName2, 867 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 868 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 869 NULL 870 ); 871 } 872 } else { 873 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 874 Status = gBS->InstallMultipleProtocolInterfaces ( 875 &DriverBinding Handle,876 &gEfiDriverBindingProtocolGuid, DriverBinding, 877 &gEfiComponentNameProtocolGuid, ComponentName, 878 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 879 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 880 NULL 881 ); 882 } else { 883 Status = gBS->InstallMultipleProtocolInterfaces ( 884 &DriverBinding Handle,863 &DriverBinding->DriverBindingHandle, 864 &gEfiDriverBindingProtocolGuid, DriverBinding, 865 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 866 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 867 NULL 868 ); 869 } else { 870 Status = gBS->InstallMultipleProtocolInterfaces ( 871 &DriverBinding->DriverBindingHandle, 872 &gEfiDriverBindingProtocolGuid, DriverBinding, 873 &gEfiComponentName2ProtocolGuid, ComponentName2, 874 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 875 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 876 NULL 877 ); 878 } 879 } else { 880 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 881 Status = gBS->InstallMultipleProtocolInterfaces ( 882 &DriverBinding->DriverBindingHandle, 883 &gEfiDriverBindingProtocolGuid, DriverBinding, 884 &gEfiComponentNameProtocolGuid, ComponentName, 885 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 886 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 887 NULL 888 ); 889 } else { 890 Status = gBS->InstallMultipleProtocolInterfaces ( 891 &DriverBinding->DriverBindingHandle, 885 892 &gEfiDriverBindingProtocolGuid, DriverBinding, 886 893 &gEfiComponentNameProtocolGuid, ComponentName, … … 896 903 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 897 904 Status = gBS->InstallMultipleProtocolInterfaces ( 898 &DriverBinding Handle,899 &gEfiDriverBindingProtocolGuid, DriverBinding, 900 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 901 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 902 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 903 NULL 904 ); 905 } else { 906 Status = gBS->InstallMultipleProtocolInterfaces ( 907 &DriverBinding Handle,908 &gEfiDriverBindingProtocolGuid, DriverBinding, 909 &gEfiComponentName2ProtocolGuid, ComponentName2, 910 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 911 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 912 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 913 NULL 914 ); 915 } 916 } else { 917 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 918 Status = gBS->InstallMultipleProtocolInterfaces ( 919 &DriverBinding Handle,920 &gEfiDriverBindingProtocolGuid, DriverBinding, 921 &gEfiComponentNameProtocolGuid, ComponentName, 922 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 923 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 924 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 925 NULL 926 ); 927 } else { 928 Status = gBS->InstallMultipleProtocolInterfaces ( 929 &DriverBinding Handle,905 &DriverBinding->DriverBindingHandle, 906 &gEfiDriverBindingProtocolGuid, DriverBinding, 907 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 908 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 909 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 910 NULL 911 ); 912 } else { 913 Status = gBS->InstallMultipleProtocolInterfaces ( 914 &DriverBinding->DriverBindingHandle, 915 &gEfiDriverBindingProtocolGuid, DriverBinding, 916 &gEfiComponentName2ProtocolGuid, ComponentName2, 917 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 918 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 919 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 920 NULL 921 ); 922 } 923 } else { 924 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 925 Status = gBS->InstallMultipleProtocolInterfaces ( 926 &DriverBinding->DriverBindingHandle, 927 &gEfiDriverBindingProtocolGuid, DriverBinding, 928 &gEfiComponentNameProtocolGuid, ComponentName, 929 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 930 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 931 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 932 NULL 933 ); 934 } else { 935 Status = gBS->InstallMultipleProtocolInterfaces ( 936 &DriverBinding->DriverBindingHandle, 930 937 &gEfiDriverBindingProtocolGuid, DriverBinding, 931 938 &gEfiComponentNameProtocolGuid, ComponentName, … … 944 951 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 945 952 Status = gBS->InstallMultipleProtocolInterfaces ( 946 &DriverBinding Handle,947 &gEfiDriverBindingProtocolGuid, DriverBinding, 948 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 949 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 950 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 951 NULL 952 ); 953 } else { 954 Status = gBS->InstallMultipleProtocolInterfaces ( 955 &DriverBinding Handle,956 &gEfiDriverBindingProtocolGuid, DriverBinding, 957 &gEfiComponentName2ProtocolGuid, ComponentName2, 958 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 959 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 960 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 961 NULL 962 ); 963 } 964 } else { 965 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 966 Status = gBS->InstallMultipleProtocolInterfaces ( 967 &DriverBinding Handle,968 &gEfiDriverBindingProtocolGuid, DriverBinding, 969 &gEfiComponentNameProtocolGuid, ComponentName, 970 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 971 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 972 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 973 NULL 974 ); 975 } else { 976 Status = gBS->InstallMultipleProtocolInterfaces ( 977 &DriverBinding Handle,953 &DriverBinding->DriverBindingHandle, 954 &gEfiDriverBindingProtocolGuid, DriverBinding, 955 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 956 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 957 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 958 NULL 959 ); 960 } else { 961 Status = gBS->InstallMultipleProtocolInterfaces ( 962 &DriverBinding->DriverBindingHandle, 963 &gEfiDriverBindingProtocolGuid, DriverBinding, 964 &gEfiComponentName2ProtocolGuid, ComponentName2, 965 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 966 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 967 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 968 NULL 969 ); 970 } 971 } else { 972 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 973 Status = gBS->InstallMultipleProtocolInterfaces ( 974 &DriverBinding->DriverBindingHandle, 975 &gEfiDriverBindingProtocolGuid, DriverBinding, 976 &gEfiComponentNameProtocolGuid, ComponentName, 977 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 978 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 979 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 980 NULL 981 ); 982 } else { 983 Status = gBS->InstallMultipleProtocolInterfaces ( 984 &DriverBinding->DriverBindingHandle, 978 985 &gEfiDriverBindingProtocolGuid, DriverBinding, 979 986 &gEfiComponentNameProtocolGuid, ComponentName, … … 990 997 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 991 998 Status = gBS->InstallMultipleProtocolInterfaces ( 992 &DriverBinding Handle,993 &gEfiDriverBindingProtocolGuid, DriverBinding, 994 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 995 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 996 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 997 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 998 NULL 999 ); 1000 } else { 1001 Status = gBS->InstallMultipleProtocolInterfaces ( 1002 &DriverBinding Handle,1003 &gEfiDriverBindingProtocolGuid, DriverBinding, 1004 &gEfiComponentName2ProtocolGuid, ComponentName2, 1005 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 1006 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 1007 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 1008 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 1009 NULL 1010 ); 1011 } 1012 } else { 1013 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 1014 Status = gBS->InstallMultipleProtocolInterfaces ( 1015 &DriverBinding Handle,1016 &gEfiDriverBindingProtocolGuid, DriverBinding, 1017 &gEfiComponentNameProtocolGuid, ComponentName, 1018 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 1019 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 1020 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 1021 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 1022 NULL 1023 ); 1024 } else { 1025 Status = gBS->InstallMultipleProtocolInterfaces ( 1026 &DriverBinding Handle,999 &DriverBinding->DriverBindingHandle, 1000 &gEfiDriverBindingProtocolGuid, DriverBinding, 1001 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 1002 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 1003 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 1004 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 1005 NULL 1006 ); 1007 } else { 1008 Status = gBS->InstallMultipleProtocolInterfaces ( 1009 &DriverBinding->DriverBindingHandle, 1010 &gEfiDriverBindingProtocolGuid, DriverBinding, 1011 &gEfiComponentName2ProtocolGuid, ComponentName2, 1012 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 1013 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 1014 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 1015 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 1016 NULL 1017 ); 1018 } 1019 } else { 1020 if (ComponentName2 == NULL || FeaturePcdGet(PcdComponentName2Disable)) { 1021 Status = gBS->InstallMultipleProtocolInterfaces ( 1022 &DriverBinding->DriverBindingHandle, 1023 &gEfiDriverBindingProtocolGuid, DriverBinding, 1024 &gEfiComponentNameProtocolGuid, ComponentName, 1025 &gEfiDriverConfigurationProtocolGuid, DriverConfiguration, 1026 &gEfiDriverConfiguration2ProtocolGuid, DriverConfiguration2, 1027 &gEfiDriverDiagnosticsProtocolGuid, DriverDiagnostics, 1028 &gEfiDriverDiagnostics2ProtocolGuid, DriverDiagnostics2, 1029 NULL 1030 ); 1031 } else { 1032 Status = gBS->InstallMultipleProtocolInterfaces ( 1033 &DriverBinding->DriverBindingHandle, 1027 1034 &gEfiDriverBindingProtocolGuid, DriverBinding, 1028 1035 &gEfiComponentNameProtocolGuid, ComponentName, … … 1041 1048 } 1042 1049 1043 1044 1050 // 1045 1051 // ASSERT if the call to InstallMultipleProtocolInterfaces() failed 1046 1052 // 1047 1053 ASSERT_EFI_ERROR (Status); 1048 1049 //1050 // Update the ImageHandle and DriverBindingHandle fields of the Driver Binding Protocol1051 //1052 DriverBinding->ImageHandle = ImageHandle;1053 DriverBinding->DriverBindingHandle = DriverBindingHandle;1054 1054 1055 1055 return Status; 1056 1056 } 1057 1058 -
trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLibPrint.c
r48674 r58459 711 711 } 712 712 713 /** 714 Appends a formatted Unicode string to a Null-terminated Unicode string 715 716 This function appends a formatted Unicode string to the Null-terminated 717 Unicode string specified by String. String is optional and may be NULL. 718 Storage for the formatted Unicode string returned is allocated using 719 AllocatePool(). The pointer to the appended string is returned. The caller 720 is responsible for freeing the returned string. 721 722 If String is not NULL and not aligned on a 16-bit boundary, then ASSERT(). 723 If FormatString is NULL, then ASSERT(). 724 If FormatString is not aligned on a 16-bit boundary, then ASSERT(). 725 726 @param[in] String A Null-terminated Unicode string. 727 @param[in] FormatString A Null-terminated Unicode format string. 728 @param[in] Marker VA_LIST marker for the variable argument list. 729 730 @retval NULL There was not enough available memory. 731 @return Null-terminated Unicode string is that is the formatted 732 string appended to String. 733 **/ 734 CHAR16* 735 EFIAPI 736 CatVSPrint ( 737 IN CHAR16 *String, OPTIONAL 738 IN CONST CHAR16 *FormatString, 739 IN VA_LIST Marker 740 ) 741 { 742 UINTN CharactersRequired; 743 UINTN SizeRequired; 744 CHAR16 *BufferToReturn; 745 VA_LIST ExtraMarker; 746 747 VA_COPY (ExtraMarker, Marker); 748 CharactersRequired = SPrintLength(FormatString, ExtraMarker); 749 VA_END (ExtraMarker); 750 751 if (String != NULL) { 752 SizeRequired = StrSize(String) + (CharactersRequired * sizeof(CHAR16)); 753 } else { 754 SizeRequired = sizeof(CHAR16) + (CharactersRequired * sizeof(CHAR16)); 755 } 756 757 BufferToReturn = AllocateZeroPool(SizeRequired); 758 759 if (BufferToReturn == NULL) { 760 return NULL; 761 } 762 763 if (String != NULL) { 764 StrCpy(BufferToReturn, String); 765 } 766 767 UnicodeVSPrint(BufferToReturn + StrLen(BufferToReturn), (CharactersRequired+1) * sizeof(CHAR16), FormatString, Marker); 768 769 ASSERT(StrSize(BufferToReturn)==SizeRequired); 770 771 return (BufferToReturn); 772 } 773 774 /** 775 Appends a formatted Unicode string to a Null-terminated Unicode string 776 777 This function appends a formatted Unicode string to the Null-terminated 778 Unicode string specified by String. String is optional and may be NULL. 779 Storage for the formatted Unicode string returned is allocated using 780 AllocatePool(). The pointer to the appended string is returned. The caller 781 is responsible for freeing the returned string. 782 783 If String is not NULL and not aligned on a 16-bit boundary, then ASSERT(). 784 If FormatString is NULL, then ASSERT(). 785 If FormatString is not aligned on a 16-bit boundary, then ASSERT(). 786 787 @param[in] String A Null-terminated Unicode string. 788 @param[in] FormatString A Null-terminated Unicode format string. 789 @param[in] ... The variable argument list whose contents are 790 accessed based on the format string specified by 791 FormatString. 792 793 @retval NULL There was not enough available memory. 794 @return Null-terminated Unicode string is that is the formatted 795 string appended to String. 796 **/ 797 CHAR16 * 798 EFIAPI 799 CatSPrint ( 800 IN CHAR16 *String, OPTIONAL 801 IN CONST CHAR16 *FormatString, 802 ... 803 ) 804 { 805 VA_LIST Marker; 806 CHAR16 *NewString; 807 808 VA_START (Marker, FormatString); 809 NewString = CatVSPrint(String, FormatString, Marker); 810 VA_END (Marker); 811 return NewString; 812 } 813 -
trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkPkg/Library/PeiHobLibFramework/HobLib.c
r48674 r58459 6 6 to implement HobLib BuildCvHob() API. 7 7 8 Copyright (c) 2007 - 201 1, Intel Corporation. All rights reserved.<BR>8 Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR> 9 9 This program and the accompanying materials 10 10 are licensed and made available under the terms and conditions of the BSD License … … 306 306 307 307 /** 308 Builds a HOB that describes a chunk of system memory with Owner GUID. 309 310 This function builds a HOB that describes a chunk of system memory. 311 It can only be invoked during PEI phase; 312 for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase. 313 314 If there is no additional space for HOB creation, then ASSERT(). 315 316 @param ResourceType The type of resource described by this HOB. 317 @param ResourceAttribute The resource attributes of the memory described by this HOB. 318 @param PhysicalStart The 64 bit physical address of memory described by this HOB. 319 @param NumberOfBytes The length of the memory described by this HOB in bytes. 320 @param OwnerGUID GUID for the owner of this resource. 321 322 **/ 323 VOID 324 EFIAPI 325 BuildResourceDescriptorWithOwnerHob ( 326 IN EFI_RESOURCE_TYPE ResourceType, 327 IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute, 328 IN EFI_PHYSICAL_ADDRESS PhysicalStart, 329 IN UINT64 NumberOfBytes, 330 IN EFI_GUID *OwnerGUID 331 ) 332 { 333 EFI_HOB_RESOURCE_DESCRIPTOR *Hob; 334 335 Hob = InternalPeiCreateHob (EFI_HOB_TYPE_RESOURCE_DESCRIPTOR, (UINT16) sizeof (EFI_HOB_RESOURCE_DESCRIPTOR)); 336 if (Hob == NULL) { 337 return; 338 } 339 340 Hob->ResourceType = ResourceType; 341 Hob->ResourceAttribute = ResourceAttribute; 342 Hob->PhysicalStart = PhysicalStart; 343 Hob->ResourceLength = NumberOfBytes; 344 345 CopyGuid (&Hob->Owner, OwnerGUID); 346 } 347 348 /** 308 349 Builds a HOB that describes a chunk of system memory. 309 350 … … 340 381 Hob->PhysicalStart = PhysicalStart; 341 382 Hob->ResourceLength = NumberOfBytes; 383 ZeroMem (&(Hob->Owner), sizeof (EFI_GUID)); 342 384 } 343 385 -
trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkPkg/Library/PeiHobLibFramework/PeiHobLibFramework.inf
r48674 r58459 6 6 # to implement HobLib BuildCvHob() API. 7 7 # 8 # Copyright (c) 2006 - 201 0, Intel Corporation. All rights reserved.<BR>8 # Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR> 9 9 # 10 10 # This program and the accompanying materials … … 21 21 INF_VERSION = 0x00010005 22 22 BASE_NAME = PeiHobLib 23 MODULE_UNI_FILE = PeiHobLib.uni 23 24 FILE_GUID = B6684612-6F5D-425d-952C-F462792EC00B 24 25 MODULE_TYPE = PEIM … … 45 46 46 47 [Guids] 47 gEfiHobMemoryAllocStackGuid ## PRODUCES ## HOB48 gEfiHobMemoryAllocBspStoreGuid ## PRODUCES ## HOB49 gEfiHobMemoryAllocModuleGuid ## PRODUCES ## HOB48 gEfiHobMemoryAllocStackGuid ## SOMETIMES_PRODUCES ## HOB # MemoryAllocation StackHob 49 gEfiHobMemoryAllocBspStoreGuid ## SOMETIMES_PRODUCES ## HOB # MemoryAllocation BspStoreHob 50 gEfiHobMemoryAllocModuleGuid ## SOMETIMES_PRODUCES ## HOB # MemoryAllocation ModuleHob 50 51 51 52 # 52 53 # [Hob] 53 # RESOURCE_DESCRIPTOR ## PRODUCES 54 # MEMORY_ALLOCATION ## PRODUCES 55 # GUID_EXTENSION ## CONSUMES 56 # GUID_EXTENSION ## PRODUCES 57 # CPU ## PRODUCES 58 # FV2 ## PRODUCES 59 # FV ## PRODUCES 54 # MEMORY_ALLOCATION ## SOMETIMES_PRODUCES 55 # RESOURCE_DESCRIPTOR ## SOMETIMES_PRODUCES 56 # FIRMWARE_VOLUME ## SOMETIMES_PRODUCES 60 57 # 61 58 -
trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkPkg/Library/PeiSmbusLibSmbusPpi/PeiSmbusLibSmbusPpi.inf
r48674 r58459 1 1 ## @file 2 # Component description file for Pei Smbus Library.2 # SMBUS library that layers on top of the SMBUS PPI. 3 3 # 4 # SMBUS library that layers on top of the SMBUS PPI. 5 # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR> 4 # Copyright (c) 2006 - 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 = PeiSmbusLibSmbusPpi 19 MODULE_UNI_FILE = PeiSmbusLibSmbusPpi.uni 20 20 FILE_GUID = 51C4C059-67F0-4e3c-9A55-FF42A8291C8C 21 21 MODULE_TYPE = PEIM … … 48 48 49 49 [Ppis] 50 gEfiPeiSmbusPpiGuid # PPI ALWAYS_CONSUMED50 gEfiPeiSmbusPpiGuid ## CONSUMES 51 51 52 52 [Depex]
Note:
See TracChangeset
for help on using the changeset viewer.