/** @file\r
Floppy Peim to support Recovery function from Floppy device.\r
\r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
// Check Media\r
//\r
Status = DisketChanged (FdcBlkIoDev, Info);\r
- switch (Status) {\r
- case EFI_NO_MEDIA:\r
+ if (Status == EFI_NO_MEDIA) {\r
//\r
// No diskette in floppy.\r
//\r
- MediaInfo->MediaPresent = FALSE;\r
- break;\r
-\r
- case EFI_MEDIA_CHANGED:\r
- case EFI_SUCCESS:\r
- //\r
- // Diskette exists in floppy.\r
- //\r
- break;\r
-\r
- default:\r
+ MediaInfo->MediaPresent = FALSE; \r
+ } else if (Status != EFI_MEDIA_CHANGED && Status != EFI_SUCCESS) {\r
//\r
// EFI_DEVICE_ERROR\r
//\r
#\r
# This file is used to build all modules in IntelFrameworkModulePkg.\r
#\r
-#Copyright (c) 2007 - 2012, Intel Corporation. All rights reserved.<BR>\r
+#Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR>\r
#This program and the accompanying materials are licensed and made available under \r
#the terms and conditions of the BSD License that accompanies this distribution. \r
#The full text of the license may be found at\r
PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r
MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
\r
+[LibraryClasses.EBC.PEIM]\r
+ IoLib|MdePkg/Library/PeiIoLibCpuIo/PeiIoLibCpuIo.inf\r
+\r
[LibraryClasses.common.DXE_DRIVER]\r
LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf\r
\r
## @file\r
# EFI/PI Reference Module Package for All Architectures\r
#\r
-# Copyright (c) 2007 - 2012, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
#\r
NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf\r
\r
+[LibraryClasses.EBC]\r
+ LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf\r
\r
[PcdsFeatureFlag]\r
gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|TRUE\r
MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf\r
MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.inf\r
MdeModulePkg/Library/DxeDebugPrintErrorLevelLib/DxeDebugPrintErrorLevelLib.inf\r
- MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf\r
- MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf\r
MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf\r
MdeModulePkg/Library/PeiDebugPrintHobLib/PeiDebugPrintHobLib.inf\r
MdeModulePkg/Library/CpuExceptionHandlerLibNull/CpuExceptionHandlerLibNull.inf\r
MdeModulePkg/Library/SmmPerformanceLib/SmmPerformanceLib.inf\r
MdeModulePkg/Library/DxeSmmPerformanceLib/DxeSmmPerformanceLib.inf\r
MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf\r
+ MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf\r
+ MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf\r
MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf\r
MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf\r
MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf\r
for Firmware Basic Boot Performance Record and other boot performance records, \r
and install FPDT to ACPI table.\r
\r
- Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR>\r
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
EFI_ACPI_TABLE_PROTOCOL *AcpiTableProtocol;\r
EFI_PHYSICAL_ADDRESS Address;\r
UINTN Size;\r
- UINT8 SmmBootRecordCommBuffer[SMM_BOOT_RECORD_COMM_SIZE];\r
+ UINT8 *SmmBootRecordCommBuffer;\r
EFI_SMM_COMMUNICATE_HEADER *SmmCommBufferHeader;\r
SMM_BOOT_RECORD_COMMUNICATE *SmmCommData;\r
UINTN CommSize;\r
//\r
// Collect boot records from SMM drivers.\r
//\r
+ SmmBootRecordCommBuffer = AllocateZeroPool (SMM_BOOT_RECORD_COMM_SIZE);\r
+ ASSERT (SmmBootRecordCommBuffer != NULL);\r
SmmCommData = NULL;\r
Status = gBS->LocateProtocol (&gEfiSmmCommunicationProtocolGuid, NULL, (VOID **) &Communication);\r
if (!EFI_ERROR (Status)) {\r
ASSERT_EFI_ERROR(SmmCommData->ReturnStatus);\r
}\r
}\r
+ FreePool (SmmBootRecordCommBuffer);\r
\r
//\r
// Prepare memory for runtime Performance Record. \r
/** @file\r
The driver binding for IP4 CONFIG protocol.\r
\r
-Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
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<BR>\r
NULL,\r
NULL,\r
NULL,\r
- EFI_NOT_READY,\r
+ 0,\r
{\r
0,\r
0,\r
IN EFI_SYSTEM_TABLE *SystemTable\r
)\r
{\r
+ mIp4ConfigTemplate.Result = EFI_NOT_READY;\r
+\r
return EfiLibInstallDriverBindingComponentName2 (\r
ImageHandle,\r
SystemTable,\r
## @file\r
# UEFI 2.2 Network Module Package for All Architectures\r
#\r
-# Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
###################################################################################################\r
\r
[Components]\r
- NetworkPkg/IpSecDxe/IpSecDxe.inf\r
NetworkPkg/Ip6Dxe/Ip6Dxe.inf\r
NetworkPkg/TcpDxe/TcpDxe.inf\r
NetworkPkg/Udp6Dxe/Udp6Dxe.inf\r
NetworkPkg/Dhcp6Dxe/Dhcp6Dxe.inf\r
NetworkPkg/Mtftp6Dxe/Mtftp6Dxe.inf\r
\r
+ NetworkPkg/Application/IfConfig6/IfConfig6.inf\r
+ NetworkPkg/Application/IpsecConfig/IpSecConfig.inf\r
+ NetworkPkg/Application/VConfig/VConfig.inf\r
+\r
[Components.IA32, Components.X64, Components.IPF]\r
+ NetworkPkg/IpSecDxe/IpSecDxe.inf\r
NetworkPkg/IScsiDxe/IScsiDxe.inf\r
NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf\r
NetworkPkg/Application/Ping6/Ping6.inf\r
- NetworkPkg/Application/IfConfig6/IfConfig6.inf\r
- NetworkPkg/Application/IpsecConfig/IpSecConfig.inf\r
- NetworkPkg/Application/VConfig/VConfig.inf\r
# Option ROM image for all CPU architectures, including EBC target.\r
# A single driver can support mixes of EFI 1.1, UEFI 2.0 and UEFI 2.1.\r
#\r
-# Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf\r
OptionRomPkg/Library/GopBltLib/GopBltLib.inf\r
\r
- OptionRomPkg/Application/BltLibSample/BltLibSample.inf\r
-\r
OptionRomPkg/AtapiPassThruDxe/AtapiPassThruDxe.inf\r
OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430Dxe.inf\r
OptionRomPkg/UndiRuntimeDxe/UndiRuntimeDxe.inf\r
\r
+[Components.IA32, Components.X64, Components.IPF]\r
+ OptionRomPkg/Application/BltLibSample/BltLibSample.inf\r
## @file\r
# Build description file to generate Shell DP application.\r
#\r
-# Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>\r
# 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
PalLib|MdePkg/Library/UefiPalLib/UefiPalLib.inf\r
TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf\r
\r
+[LibraryClasses.EBC]\r
+ TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf\r
+\r
[Components.IA32, Components.X64]\r
PerformancePkg/Library/TscTimerLib/DxeTscTimerLib.inf\r
PerformancePkg/Library/TscTimerLib/PeiTscTimerLib.inf\r
## @file\r
# Security Module Package for All Architectures.\r
#\r
-# Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>\r
# 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
SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.inf\r
SecurityPkg/UserIdentification/UserIdentifyManagerDxe/UserIdentifyManagerDxe.inf\r
SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileManagerDxe.inf\r
- SecurityPkg/UserIdentification/PwdCredentialProviderDxe/PwdCredentialProviderDxe.inf\r
- SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProviderDxe.inf\r
\r
#\r
# Application\r
# TPM\r
#\r
SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf\r
- SecurityPkg/Tcg/TcgPei/TcgPei.inf\r
- SecurityPkg/Tcg/TcgDxe/TcgDxe.inf\r
+ SecurityPkg/Library/TpmCommLib/TpmCommLib.inf\r
+\r
SecurityPkg/Tcg/PhysicalPresencePei/PhysicalPresencePei.inf\r
SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.inf\r
+ \r
+[Components.IA32, Components.X64, Components.IPF]\r
+ SecurityPkg/UserIdentification/PwdCredentialProviderDxe/PwdCredentialProviderDxe.inf\r
+ SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProviderDxe.inf\r
+ SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf\r
+ SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableRuntimeDxe.inf\r
+\r
+ #\r
+ # TPM\r
+ #\r
+ SecurityPkg/Tcg/TcgPei/TcgPei.inf\r
+ SecurityPkg/Tcg/TcgDxe/TcgDxe.inf\r
SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDxe.inf {\r
<LibraryClasses>\r
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
}\r
- SecurityPkg/Tcg/TcgSmm/TcgSmm.inf\r
- SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf\r
- \r
+\r
[Components.IA32, Components.X64]\r
- SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableRuntimeDxe.inf\r
SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableSmm.inf\r
SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableSmmRuntimeDxe.inf\r
+ SecurityPkg/Tcg/TcgSmm/TcgSmm.inf\r
\r
[Components.IPF]\r
SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/EsalVariableDxeSal.inf \r
\r
-[Components.EBC]\r
-# Build only\r
- SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableRuntimeDxe.inf \r
-\r
[BuildOptions]\r
MSFT:*_*_IA32_DLINK_FLAGS = /ALIGN:256\r
INTEL:*_*_IA32_DLINK_FLAGS = /ALIGN:256\r
/** @file\r
Main file for map shell level 2 command.\r
\r
- Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>\r
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
if (SName != NULL) {\r
Status = PerformMappingDelete(SName);\r
if (EFI_ERROR(Status)) {\r
- switch (Status) {\r
- case EFI_ACCESS_DENIED:\r
- ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_AD), gShellLevel2HiiHandle);\r
- ShellStatus = SHELL_ACCESS_DENIED;\r
- break;\r
- case EFI_NOT_FOUND:\r
- ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_MAP_NF), gShellLevel2HiiHandle, SName);\r
- ShellStatus = SHELL_INVALID_PARAMETER;\r
- break;\r
- default:\r
- ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_UK), gShellLevel2HiiHandle, Status);\r
- ShellStatus = SHELL_UNSUPPORTED;\r
+ if (Status == EFI_ACCESS_DENIED) {\r
+ ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_AD), gShellLevel2HiiHandle);\r
+ ShellStatus = SHELL_ACCESS_DENIED;\r
+ } else if (Status == EFI_NOT_FOUND) {\r
+ ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_MAP_NF), gShellLevel2HiiHandle, SName);\r
+ ShellStatus = SHELL_INVALID_PARAMETER;\r
+ } else {\r
+ ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_UK), gShellLevel2HiiHandle, Status);\r
+ ShellStatus = SHELL_UNSUPPORTED;\r
}\r
}\r
} else {\r
/** @file\r
Main file for mv shell level 2 function.\r
\r
- Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>\r
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
if (EFI_ERROR(Status)) {\r
ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_UK), gShellLevel2HiiHandle, Status);\r
- //\r
- // move failed\r
- //\r
- switch(Status){\r
- default:\r
- ShellStatus = SHELL_INVALID_PARAMETER;\r
- case EFI_SECURITY_VIOLATION:\r
- ShellStatus = SHELL_SECURITY_VIOLATION;\r
- case EFI_WRITE_PROTECTED:\r
- ShellStatus = SHELL_WRITE_PROTECTED;\r
- case EFI_OUT_OF_RESOURCES:\r
- ShellStatus = SHELL_OUT_OF_RESOURCES;\r
- case EFI_DEVICE_ERROR:\r
- ShellStatus = SHELL_DEVICE_ERROR;\r
- case EFI_ACCESS_DENIED:\r
- ShellStatus = SHELL_ACCESS_DENIED;\r
- } // switch\r
+ ShellStatus = SHELL_INVALID_PARAMETER;\r
+ if (Status == EFI_SECURITY_VIOLATION) {\r
+ ShellStatus = SHELL_SECURITY_VIOLATION;\r
+ } else if (Status == EFI_WRITE_PROTECTED) {\r
+ ShellStatus = SHELL_WRITE_PROTECTED;\r
+ } else if (Status == EFI_OUT_OF_RESOURCES) {\r
+ ShellStatus = SHELL_OUT_OF_RESOURCES;\r
+ } else if (Status == EFI_DEVICE_ERROR) {\r
+ ShellStatus = SHELL_DEVICE_ERROR;\r
+ } else if (Status == EFI_ACCESS_DENIED) {\r
+ ShellStatus = SHELL_ACCESS_DENIED;\r
+ }\r
} else {\r
ShellPrintEx(-1, -1, L"%s", HiiResultOk);\r
}\r
/** @file\r
Main file for GetMtc shell level 3 function.\r
\r
- Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved. <BR>\r
+ Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved. <BR>\r
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
// Get the monotonic counter count\r
//\r
Status = gBS->GetNextMonotonicCount(&Mtc);\r
- switch(Status) {\r
- case EFI_DEVICE_ERROR:\r
- ShellStatus = SHELL_DEVICE_ERROR;\r
- break;\r
- case EFI_SECURITY_VIOLATION:\r
- ShellStatus = SHELL_SECURITY_VIOLATION;\r
- break;\r
- default:\r
- if (EFI_ERROR(Status)) {\r
- ShellStatus = SHELL_DEVICE_ERROR;\r
- }\r
+ if (Status == EFI_DEVICE_ERROR) {\r
+ ShellStatus = SHELL_DEVICE_ERROR;\r
+ } else if (Status == EFI_SECURITY_VIOLATION) {\r
+ ShellStatus = SHELL_SECURITY_VIOLATION;\r
+ } else if (EFI_ERROR(Status)) {\r
+ ShellStatus = SHELL_DEVICE_ERROR;\r
}\r
\r
//\r