]> git.proxmox.com Git - mirror_edk2.git/log
mirror_edk2.git
8 years agoMdePkg: Add BootManagerPolicy protocol definition.
Ruiyu Ni [Mon, 11 May 2015 06:34:18 +0000 (06:34 +0000)]
MdePkg: Add BootManagerPolicy protocol definition.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17404 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Process Sys Prep load options in BdsDxe driver.
Ruiyu Ni [Mon, 11 May 2015 06:33:45 +0000 (06:33 +0000)]
MdeModulePkg: Process Sys Prep load options in BdsDxe driver.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17403 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add Sys Prep string definition and macro definition.
Ruiyu Ni [Mon, 11 May 2015 06:32:51 +0000 (06:32 +0000)]
MdePkg: Add Sys Prep string definition and macro definition.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17402 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoSecurityPkg Variable: Make PK & SecureBootMode consistent
Chao Zhang [Mon, 11 May 2015 05:49:31 +0000 (05:49 +0000)]
SecurityPkg Variable: Make PK & SecureBootMode consistent

PK can be cleared in runtime. However SecureBootMode variable is not updated accordingly.  Add code in variable init to make them consistent.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17401 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg DxeCore: Add memory more reliable support.
Star Zeng [Mon, 11 May 2015 05:16:48 +0000 (05:16 +0000)]
MdeModulePkg DxeCore: Add memory more reliable support.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17400 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add memory more reliable definitions.
Star Zeng [Mon, 11 May 2015 05:16:02 +0000 (05:16 +0000)]
MdePkg: Add memory more reliable definitions.

PiHob.h: EFI_RESOURCE_ATTRIBUTE_MORE_RELIABLE resource attribute.
PiDxeCis: EfiGcdMemoryTypeMoreReliable GCD memory type.
UefiSpec.h: EFI_MEMORY_MORE_RELIABLE memory attribute.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17399 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Fix SortLib library class name typo.
Ruiyu Ni [Mon, 11 May 2015 04:51:38 +0000 (04:51 +0000)]
MdeModulePkg: Fix SortLib library class name typo.

BaseSortLib is the library instance name not the class name.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17398 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg DxeCore: Add read only memory support.
Star Zeng [Mon, 11 May 2015 03:33:44 +0000 (03:33 +0000)]
MdeModulePkg DxeCore: Add read only memory support.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17397 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add RO memory and resource HOB attribute definitions.
Star Zeng [Mon, 11 May 2015 03:32:48 +0000 (03:32 +0000)]
MdePkg: Add RO memory and resource HOB attribute definitions.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17396 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Update PeiMemoryAllocationLib to allocate EfiReservedMemoryType memory directly.
Star Zeng [Mon, 11 May 2015 03:12:51 +0000 (03:12 +0000)]
MdePkg: Update PeiMemoryAllocationLib to allocate EfiReservedMemoryType memory directly.

The old implementation was to allocate EfiBootServicesData memory first,
and then update the MemoryType of memory allocation hob to
EfiReservedMemoryType.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17395 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Update implementation of PeiAllocatePages() to allow EfiReservedMemoryType.
Star Zeng [Mon, 11 May 2015 03:12:21 +0000 (03:12 +0000)]
MdeModulePkg: Update implementation of PeiAllocatePages() to allow EfiReservedMemoryType.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17394 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Update comments of EFI_PEI_ALLOCATE_PAGES to allow EfiReservedMemoryType.
Star Zeng [Mon, 11 May 2015 03:11:31 +0000 (03:11 +0000)]
MdePkg: Update comments of EFI_PEI_ALLOCATE_PAGES to allow EfiReservedMemoryType.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17393 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoNt32Pkg: Enable new BDS in NT32 platform.
Ruiyu Ni [Mon, 11 May 2015 03:06:53 +0000 (03:06 +0000)]
Nt32Pkg: Enable new BDS in NT32 platform.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17392 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoNt32Pkg: Add PlatformBootManagerLib to Nt32 platform.
Ruiyu Ni [Mon, 11 May 2015 03:06:24 +0000 (03:06 +0000)]
Nt32Pkg: Add PlatformBootManagerLib to Nt32 platform.

This library will co-work with UefiBootManagerLib and BdsDxe driver in MdeModulePkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17391 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add EFI_LOAD_OPTION definition.
Ruiyu Ni [Mon, 11 May 2015 02:24:30 +0000 (02:24 +0000)]
MdePkg: Add EFI_LOAD_OPTION definition.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Felix Poludov <Felixp@ami.com>
Reviewed-by: Kinney Michael <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17390 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Add Reset2 ppi support in PEI CORE.
Star Zeng [Mon, 11 May 2015 02:06:51 +0000 (02:06 +0000)]
MdeModulePkg: Add Reset2 ppi support in PEI CORE.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17389 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add Reset2 ppi definition.
Star Zeng [Mon, 11 May 2015 02:05:52 +0000 (02:05 +0000)]
MdePkg: Add Reset2 ppi definition.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17388 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: Fix buffer overflow issue in 'map' command.
Qiu Shumin [Mon, 11 May 2015 01:44:35 +0000 (01:44 +0000)]
ShellPkg: Fix buffer overflow issue in 'map' command.

This patch replace 'StrnCat' with 'StrnCatS' to avoid the buffer overflow in 'map.c'.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17387 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Move gEfiSmbios3TableGuid to UEFI2.5 section in MdePkg.dec.
Star Zeng [Mon, 11 May 2015 01:35:29 +0000 (01:35 +0000)]
MdePkg: Move gEfiSmbios3TableGuid to UEFI2.5 section in MdePkg.dec.

Also enhance the comments in MdePkg/Include/Guid/Smbios.h.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17386 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOvmfPkg: QemuBootOrderLib: parse OFW device path nodes of PCI bridges
Laszlo Ersek [Fri, 8 May 2015 18:12:44 +0000 (18:12 +0000)]
OvmfPkg: QemuBootOrderLib: parse OFW device path nodes of PCI bridges

When the Q35 machine type(s) of QEMU are used with libvirt, libvirt tends
to place some devices behind PCI bridges. This is then reflected in the
"bootorder" fw_cfg file. For example:

  /pci@i0cf8/pci-bridge@1e/pci-bridge@1/scsi@5/disk@0,0
  /pci@i0cf8/pci-bridge@1e/pci-bridge@1/scsi@3/channel@0/disk@0,0

As yet QemuBootOrderLib doesn't support such OFW device paths.

Add code that translates a sequence of pci-bridge nodes.

In practice libvirt seems to insert two such nodes (*), hence increment
EXAMINED_OFW_NODES with the same number.

(* Background, paraphrasing Laine Stump's words:

When the machine type is Q35, we create a dmi-to-pci bridge coming off of
the pcie root controller, and a pci-to-pci bridge coming off of that, then
attach most devices to the pci-to-pci bridge. This is done because you
can't hotplug into pcie-root, can't (or at least shouldn't) plug a
pci-to-pci bridge into pcie-root (so the next one has to be
dmi-to-pci-bridge), and can't hotplug into dmi-to-pci-bridge (so you need
to have a pci-to-pci bridge).)

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17385 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Update Usb2Hc Isochronous related functions' description
Feng Tian [Fri, 8 May 2015 14:19:04 +0000 (14:19 +0000)]
MdePkg: Update Usb2Hc Isochronous related functions' description

IsochronousTransfer/AsyncIsochronousTransfer() interface
descriptions get updated to follow UEFI2.5 spec.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17384 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add UEFI 2.5 SD (Secure Digital) Device Path Definitions
Feng Tian [Fri, 8 May 2015 14:18:42 +0000 (14:18 +0000)]
MdePkg: Add UEFI 2.5 SD (Secure Digital) Device Path Definitions

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17383 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmVExpressPkg: restrict ArmVExpressSysConfigLib to SEC and DXE_DRIVER
Ard Biesheuvel [Fri, 8 May 2015 12:08:24 +0000 (12:08 +0000)]
ArmVExpressPkg: restrict ArmVExpressSysConfigLib to SEC and DXE_DRIVER

Since ArmVExpressSysConfigLib cannot be supported at runtime, restrict
its use to the types of modules that are currently using it legally.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17382 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmVExpressPkg: avoid the use of ArmVExpressSysConfigLib at runtime
Ard Biesheuvel [Fri, 8 May 2015 12:07:20 +0000 (12:07 +0000)]
ArmVExpressPkg: avoid the use of ArmVExpressSysConfigLib at runtime

The ArmVExpressSysConfigLib library does not (and cannot) runtime
remap its MMIO registers, so use a NULL implementation of the
ArmPlatformSysConfigLib library class for DXE_RUNTIME_DRIVER
type modules.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17381 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmVExpressPkg: use PSCI for system reset at runtime
Ard Biesheuvel [Fri, 8 May 2015 12:06:09 +0000 (12:06 +0000)]
ArmVExpressPkg: use PSCI for system reset at runtime

Since the default EfiResetSystemLib for VExpress cannot be used at
runtime (due to the fact that its MMIO registers need to be owned
by the OS and so cannot be runtime remapped), instead use PSCI calls
into EL3 at runtime.

Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17380 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add missing GUID variables in SmartCardEdge.h
Feng Tian [Fri, 8 May 2015 07:50:00 +0000 (07:50 +0000)]
MdePkg: Add missing GUID variables in SmartCardEdge.h

Declares some extern EFI_GUID variables which correspond to
guid macros in SmartCardEdge.h for C code use.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Qin Long <qin.long@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17379 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add missing GUID variables in BlockIoCrypto.h
Feng Tian [Fri, 8 May 2015 07:49:07 +0000 (07:49 +0000)]
MdePkg: Add missing GUID variables in BlockIoCrypto.h

Declares some extern EFI_GUID variables which correspond to
guid macros in BlockIoCrypto.h for C code use.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17378 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Update FirmwarePerformanceDataTableDxe for LegacyBoot
Liming Gao [Fri, 8 May 2015 07:44:59 +0000 (07:44 +0000)]
MdeModulePkg: Update FirmwarePerformanceDataTableDxe for LegacyBoot

Change the code to listen EFI_SW_DXE_BS_PC_LEGACY_BOOT_EVENT instead of the Legacy Boot event to provide more precise performance data.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Ruyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17377 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoIntelFspWrapperPkg: Update PeiFspHobProcessLibSample to consume PI CapsulePpi
Liming Gao [Fri, 8 May 2015 07:44:30 +0000 (07:44 +0000)]
IntelFspWrapperPkg: Update PeiFspHobProcessLibSample to consume PI CapsulePpi

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17376 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Remove CapsulePpi definition
Liming Gao [Fri, 8 May 2015 07:44:01 +0000 (07:44 +0000)]
MdeModulePkg: Remove CapsulePpi definition

PI1.4 Capsule.h has been added.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17375 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Update CapsulePei to consume PI1.4 CapsulePpi
Liming Gao [Fri, 8 May 2015 07:43:35 +0000 (07:43 +0000)]
MdeModulePkg: Update CapsulePei to consume PI1.4 CapsulePpi

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17374 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Update comments for DriverSupportedEfiVersion.FirmwareVersion
Ruiyu Ni [Fri, 8 May 2015 07:42:52 +0000 (07:42 +0000)]
MdePkg: Update comments for DriverSupportedEfiVersion.FirmwareVersion

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed: Liming Gao <liming.gao@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17373 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add PI1.4 CapsulePpi definition
Liming Gao [Fri, 8 May 2015 07:42:50 +0000 (07:42 +0000)]
MdePkg: Add PI1.4 CapsulePpi definition

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17372 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Comment Signature field in image execution info table
Liming Gao [Fri, 8 May 2015 07:42:01 +0000 (07:42 +0000)]
MdePkg: Comment Signature field in image execution info table

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17371 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add ToText/FromText support for URI device path node
Ruiyu Ni [Fri, 8 May 2015 07:31:39 +0000 (07:31 +0000)]
MdePkg: Add ToText/FromText support for URI device path node

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17370 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add URI_DEVICE_PATH definition.
Ruiyu Ni [Fri, 8 May 2015 07:31:12 +0000 (07:31 +0000)]
MdePkg: Add URI_DEVICE_PATH definition.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17369 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg, MdeModulePkg: Remove EFI_ABORTED from I2C protocols per PI spec 1.4.
Ruiyu Ni [Fri, 8 May 2015 07:30:45 +0000 (07:30 +0000)]
MdePkg, MdeModulePkg: Remove EFI_ABORTED from I2C protocols per PI spec 1.4.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jie Lin <jie.lin@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17368 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg, MdeModulePkg: Remove EFI_NOT_FOUND from I2C IO protocol
Ruiyu Ni [Fri, 8 May 2015 07:30:03 +0000 (07:30 +0000)]
MdePkg, MdeModulePkg: Remove EFI_NOT_FOUND from I2C IO protocol

It's to follow the PI spec 1.4.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jie Lin <jie.lin@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17367 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Refine EFI_DARKGRAY definition and comments for EFI_TEXT_ATTR
Ruiyu Ni [Fri, 8 May 2015 07:29:18 +0000 (07:29 +0000)]
MdePkg: Refine EFI_DARKGRAY definition and comments for EFI_TEXT_ATTR

It's to follow UEFI spec 2.5.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Jin <eric.jin@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17366 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoHash2 driver to [Components.IA32, Components.X64, Components.IPF] section.
Yao, Jiewen [Fri, 8 May 2015 07:25:06 +0000 (07:25 +0000)]
Hash2 driver to [Components.IA32, Components.X64, Components.IPF] section.

Because Hash2 need CryptoLib/Openssl, while latter does not support EBC build.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17365 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoCoding style change in UefiPxeBcDxe.inf
jiaxinwu [Fri, 8 May 2015 05:59:35 +0000 (05:59 +0000)]
Coding style change in UefiPxeBcDxe.inf

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: jiaxinwu <jiaxin.wu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17364 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoSync the branch changes to trunk.
Tim He [Fri, 8 May 2015 03:13:37 +0000 (03:13 +0000)]
Sync the branch changes to trunk.

Support fTPM feature, and update the BiosID to 0.80.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Tim He <tim.he@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17362 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg/Include: Add support for flexible array members
Michael Kinney [Thu, 7 May 2015 17:19:11 +0000 (17:19 +0000)]
MdePkg/Include: Add support for flexible array members

Use pragma to disable warning 4200 for all VS* and DDK* tool chains to support
data structure declarations where the last field of the data structure is a
flexible array member.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: lhauch <larry.hauch@intel.com>
Tested-by: Chao Zhang <chao.b.zhang@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17361 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmVExpressPkg: add support for embedding DTBs for AArch64 variants
Ard Biesheuvel [Thu, 7 May 2015 15:40:31 +0000 (15:40 +0000)]
ArmVExpressPkg: add support for embedding DTBs for AArch64 variants

If DTB_DIR=<path> is set during the build, incorporate DTBs from
that path for all AArch64 FVP platform variants so that they can
be loaded straight from the firmware image instead of from a file
system. This relieves a user of having to keep a DTB file with the
right name in the working directory of the model.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17360 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg: add support for FV embedded device tree blobs
Ard Biesheuvel [Thu, 7 May 2015 15:39:23 +0000 (15:39 +0000)]
ArmPlatformPkg: add support for FV embedded device tree blobs

This adds support to the ArmVExpressPkg platforms to load their
device tree binary from a Firmware Volume if one is found that
matches the current platform. If none is found, the existing
logic to find a FDT by name from a file system is retained as
a fallback.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17359 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmVExpressPkg: use named GUIDs for all VExpress variants
Ard Biesheuvel [Thu, 7 May 2015 15:38:25 +0000 (15:38 +0000)]
ArmVExpressPkg: use named GUIDs for all VExpress variants

Instead of using open coded GUIDs, define them only once, and refer
to them by name everywhere else.

Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17358 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPkg: fix pointer indirection bug in BdsFirmwareVolumeLoadImage()
Ard Biesheuvel [Thu, 7 May 2015 15:37:10 +0000 (15:37 +0000)]
ArmPkg: fix pointer indirection bug in BdsFirmwareVolumeLoadImage()

The EFI_FIRMWARE_VOLUME2_PROTOCOL::EFI_FV_READ_SECTION prototype
takes a pointer to a pointer to an output buffer, so we should
not dereference Image (which is a pointer to pointer type itself)
but pass its value directly.

Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17357 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmVirtualizationPkg: Enable secure boot for ArmVirtualizationQemu
Ard Biesheuvel [Thu, 7 May 2015 15:22:31 +0000 (15:22 +0000)]
ArmVirtualizationPkg: Enable secure boot for ArmVirtualizationQemu

This adds all the required modules and library dependencies so that
the ArmVirtualizationQemu platform can be built with support for
UEFI Secure Boot. This support consists of the OpenSSL crypto
library (whose source needs to be downloaded separately), the
authenticated variable store, and authentication of executables
before launching them.

Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17356 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg: enable use of authenticated variables in NorFlashDxe
Ard Biesheuvel [Thu, 7 May 2015 15:18:14 +0000 (15:18 +0000)]
ArmPlatformPkg: enable use of authenticated variables in NorFlashDxe

The NorFlashDxe uses an explicit 'BEFORE xxx' Depex declaration to
ensure that it is dispatched before VariableRuntimeDxe, and uses the
file GUID of the latter as 'xxx' explicitly to accomplish that.

However, when enabling UEFI Secure Boot, this breaks down since the
authenticated VariableRuntimeDxe is a completely separate driver, with
a different GUID. Also, the hardcoded dependency on gEfiVariableGuid,
which is not used under UEFI Secure Boot, needs to be factored out in
order to allow this driver to be used.

So clone NorFlashDxe.inf into NorFlashAuthenticatedDxe.inf, and fix
up the dependencies so they refer to gEfiAuthenticatedVariableGuid and
SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableRuntimeDxe.inf
instead.

Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17355 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoSecurityPkg: remove unused variables
Ard Biesheuvel [Thu, 7 May 2015 15:16:23 +0000 (15:16 +0000)]
SecurityPkg: remove unused variables

This removes various unused variables from SecurityPkg whose presence
is causing failed builds.

Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17354 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Avoid using same TokenValue for two PCDs.
Ruiyu Ni [Thu, 7 May 2015 02:36:51 +0000 (02:36 +0000)]
MdeModulePkg: Avoid using same TokenValue for two PCDs.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17351 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg/SmmGipDispatch2.h: SMM GpiNum meaning clarification
Jeff Fan [Thu, 7 May 2015 02:31:30 +0000 (02:31 +0000)]
MdePkg/SmmGipDispatch2.h: SMM GpiNum meaning clarification

To support GPI number > 64, PI 1.4 clarified SMM GpiNum meaning as below:
typedef struct {
  UINT64 GpiNum;
} EFI_SMM_GPI_REGISTER_CONTEXT;
Instead of the bit mask of 64 possible GPIs, GpiNum is one of 2^64 possible
GPIs that can generate an SMI. A 0 corresponds to logical GPI[00],
1 corresponds to logical GPI[1], and so on, and GpiNum of N corresponds to
GPI[N], where N can span from 0 to 2^64-1.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17350 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg/SmmCore: SMM register protocol notify function clarify
Jeff Fan [Thu, 7 May 2015 02:29:52 +0000 (02:29 +0000)]
MdeModulePkg/SmmCore: SMM register protocol notify function clarify

PI 1.4 clarified SMM register protocol notify function return status as below:
EFI_SUCCESS           Successfully returned the registration record that has
                      been added or unhooked
EFI_INVALID_PARAMETER Protocol is NULL or Registration is NULL
The implementation of SmmRegisterProtocolNotify() already followed this new
rule, needn't to be updated.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17349 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg/PiSmmCis.h: SMM register protocol notify function clarify
Jeff Fan [Thu, 7 May 2015 02:28:56 +0000 (02:28 +0000)]
MdePkg/PiSmmCis.h: SMM register protocol notify function clarify

PI 1.4 clarified SMM register protocol notify function return status as below:
EFI_SUCCESS           Successfully returned the registration record that has
                      been added or unhooked
EFI_INVALID_PARAMETER Protocol is NULL or Registration is NULL

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17348 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add longer term new CPER memory section definition.
Qiu Shumin [Thu, 7 May 2015 01:22:13 +0000 (01:22 +0000)]
MdePkg: Add longer term new CPER memory section definition.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17347 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoBaseTools: Fix build fail issue.
Eric Dong [Wed, 6 May 2015 12:52:16 +0000 (12:52 +0000)]
BaseTools: Fix build fail issue.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17346 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Enhance the check for numeric opcode with EFI_IFR_DISPLAY_INT_DEC attri...
Eric Dong [Wed, 6 May 2015 12:30:13 +0000 (12:30 +0000)]
MdeModulePkg: Enhance the check for numeric opcode with EFI_IFR_DISPLAY_INT_DEC attribute.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17345 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoBaseTools: Enhance the check for numeric opcode with EFI_IFR_DISPLAY_INT_DEC attribute.
Eric Dong [Wed, 6 May 2015 12:29:33 +0000 (12:29 +0000)]
BaseTools: Enhance the check for numeric opcode with EFI_IFR_DISPLAY_INT_DEC attribute.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Aaron Pop <Aaron.Pop@congatec.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17344 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoEmbeddedPkg: Remove dependency on TimerLib
Olivier Martin [Wed, 6 May 2015 11:15:44 +0000 (11:15 +0000)]
EmbeddedPkg: Remove dependency on TimerLib

UEFI drivers should not depend on TimerLib. They should
use BS.Stall() instead.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17343 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg/ArmJunoDxe: Use different UID for PCI Emulation
Olivier Martin [Wed, 6 May 2015 11:14:28 +0000 (11:14 +0000)]
ArmPlatformPkg/ArmJunoDxe: Use different UID for PCI Emulation

We keep UID=0 for the 'real' PCI root complex on the Juno board.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17342 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: BaseSortLib and UefiBootManagerLib support DXE_RUNTIME_DRIVER.
Ruiyu Ni [Wed, 6 May 2015 10:41:05 +0000 (10:41 +0000)]
MdeModulePkg: BaseSortLib and UefiBootManagerLib support DXE_RUNTIME_DRIVER.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17341 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Add match2 opcode support in SetupBrowserDxe and sample code in DriverS...
Eric Dong [Wed, 6 May 2015 10:40:53 +0000 (10:40 +0000)]
MdeModulePkg: Add match2 opcode support in SetupBrowserDxe and sample code in DriverSampleDxe

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@hp.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17340 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add Regular Expression Protocol and match2 opcode definition.
Eric Dong [Wed, 6 May 2015 10:39:26 +0000 (10:39 +0000)]
MdePkg: Add Regular Expression Protocol and match2 opcode definition.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@hp.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17339 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoBaseTools: Enable Match2 Opcode.
Eric Dong [Wed, 6 May 2015 10:38:04 +0000 (10:38 +0000)]
BaseTools: Enable Match2 Opcode.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@hp.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17338 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: update comments for question.
Eric Dong [Wed, 6 May 2015 10:12:53 +0000 (10:12 +0000)]
MdeModulePkg: update comments for question.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17337 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Enable buffer type value for default and oneofoption opcode.
Eric Dong [Wed, 6 May 2015 09:36:40 +0000 (09:36 +0000)]
MdeModulePkg: Enable buffer type value for default and oneofoption opcode.

In order to support default value for orderedlist opcode, support buffer type value for default/oneofoption opcode.
If oneofoption used as a default value, it will not be added to normal option list.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17336 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoBaseTools: Enable buffer type value for default and oneofoption opcode.
Eric Dong [Wed, 6 May 2015 09:35:14 +0000 (09:35 +0000)]
BaseTools: Enable buffer type value for default and oneofoption opcode.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17335 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModluePkg: Enable refresh opcode to refresh the entire form.
Eric Dong [Wed, 6 May 2015 09:29:39 +0000 (09:29 +0000)]
MdeModluePkg: Enable refresh opcode to refresh the entire form.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17334 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoBaseTool: Add refresh form opcode in vfrcompiler.
Eric Dong [Wed, 6 May 2015 09:27:07 +0000 (09:27 +0000)]
BaseTool: Add refresh form opcode in vfrcompiler.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17333 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoRemove obsolete PCDs (new ones are moved to MdePkg and MdeModulePkg)
Ruiyu Ni [Wed, 6 May 2015 04:51:19 +0000 (04:51 +0000)]
Remove obsolete PCDs (new ones are moved to MdePkg and MdeModulePkg)

Including:
  PcdHardwareErrorRecordLevel, PcdPlatformBootTimeout
  PcdSetupConOutColumn, PcdSetupConOutRow, PcdSetupVideoHorizontalResolution, PcdSetupVideoVerticalResolution

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17332 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Add DriverHealthManagerDxe driver.
Ruiyu Ni [Wed, 6 May 2015 04:50:56 +0000 (04:50 +0000)]
MdeModulePkg: Add DriverHealthManagerDxe driver.

DriverHealthManagerDxe provides a driver health management VFR form
which will be sent by UefiBootManagerLib when booting a boot option.
It also provides another driver health management VFR form which will
be included by certain boot manager menu through the VFR class GUID.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17331 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoIntelFrameworkModulePkg: Add LegacyBootManagerLib.
Ruiyu Ni [Wed, 6 May 2015 04:50:23 +0000 (04:50 +0000)]
IntelFrameworkModulePkg: Add LegacyBootManagerLib.

LegacyBootManagerLib is a NULL class library to work with UefiBootManagerLib
providing legacy boot support.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17330 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Add BootManagerMenuApp.
Ruiyu Ni [Wed, 6 May 2015 04:49:30 +0000 (04:49 +0000)]
MdeModulePkg: Add BootManagerMenuApp.

BootManagerMenuApp only provides a very simple UI showing all the boot options
recorded by "BootOrder" and user can select any of them to boot.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17329 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Add BdsDxe driver and PlatformBootManagerNull library.
Ruiyu Ni [Wed, 6 May 2015 04:48:56 +0000 (04:48 +0000)]
MdeModulePkg: Add BdsDxe driver and PlatformBootManagerNull library.

BdsDxe driver links to UefiBootManagerLib and PlatformBootManager to
provide a pure UEFI boot manager conforming to the UEFI spec.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17328 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Add UefiBootManagerLib
Ruiyu Ni [Wed, 6 May 2015 04:47:02 +0000 (04:47 +0000)]
MdeModulePkg: Add UefiBootManagerLib

UefiBootManagerLib provides:
 load option library functions;
 hot key library functions;
 boot library functions;
 connect and disconnect library functions;
 driver health library functions.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17327 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoVlv2TbltDevicePkg: Use the new PCDs defined in MdePkg and MdeModulePkg.
Ruiyu Ni [Wed, 6 May 2015 04:45:53 +0000 (04:45 +0000)]
Vlv2TbltDevicePkg: Use the new PCDs defined in MdePkg and MdeModulePkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17326 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoCorebootPayloadPkg: Use the new PCDs defined in MdePkg.
Ruiyu Ni [Wed, 6 May 2015 04:45:08 +0000 (04:45 +0000)]
CorebootPayloadPkg: Use the new PCDs defined in MdePkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17325 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg: Use the new PCDs defined in MdePkg and MdeModulePkg.
Ruiyu Ni [Wed, 6 May 2015 04:44:43 +0000 (04:44 +0000)]
ArmPlatformPkg: Use the new PCDs defined in MdePkg and MdeModulePkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Olivier Martin <Olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17324 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Remove GetBootMode() at FirmwarePerformancePeiEntryPoint
Hao Wu [Wed, 6 May 2015 03:31:28 +0000 (03:31 +0000)]
MdeModulePkg: Remove GetBootMode() at FirmwarePerformancePeiEntryPoint

Boot mode maybe changed at any point during the PEI phase, therefore, boot
mode should be checked later rather at entry point.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17323 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Modify specification number encoding
Hao Wu [Wed, 6 May 2015 03:30:52 +0000 (03:30 +0000)]
MdePkg: Modify specification number encoding

Change the PEI, DXE, and SMM service table revisions to 1.4.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17322 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: EFI_FIRMWARE_MANAGEMENT_PROTOCOL.CheckImage() Description Update
Hao Wu [Wed, 6 May 2015 03:30:27 +0000 (03:30 +0000)]
MdePkg: EFI_FIRMWARE_MANAGEMENT_PROTOCOL.CheckImage() Description Update

Update description comments for IMAGE_UPDATABLE_VALID.
Add new definition IMAGE_UPDATABLE_VALID_WITH_VENDOR_CODE to FMP
CheckImage.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17321 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Update the UEFI version to reflect new revision
Hao Wu [Wed, 6 May 2015 03:30:04 +0000 (03:30 +0000)]
MdePkg: Update the UEFI version to reflect new revision

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17320 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoEmulatorPkg: Use the new PCDs defined in MdePkg.
Ruiyu Ni [Wed, 6 May 2015 03:28:12 +0000 (03:28 +0000)]
EmulatorPkg: Use the new PCDs defined in MdePkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17319 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOvmfPkg: Use the new PCDs defined in MdePkg and MdeModulePkg.
Ruiyu Ni [Wed, 6 May 2015 03:27:42 +0000 (03:27 +0000)]
OvmfPkg: Use the new PCDs defined in MdePkg and MdeModulePkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17318 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoDuetPkg: Use the new PCDs defined in MdePkg.
Ruiyu Ni [Wed, 6 May 2015 03:26:49 +0000 (03:26 +0000)]
DuetPkg: Use the new PCDs defined in MdePkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17317 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoEdkCompatibilityPkg: Use the new PCDs defined in MdePkg.
Ruiyu Ni [Wed, 6 May 2015 03:24:35 +0000 (03:24 +0000)]
EdkCompatibilityPkg: Use the new PCDs defined in MdePkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17316 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoNt32Pkg: Use the new PCDs defined in MdePkg and MdeModulePkg.
Ruiyu Ni [Wed, 6 May 2015 03:23:58 +0000 (03:23 +0000)]
Nt32Pkg: Use the new PCDs defined in MdePkg and MdeModulePkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Shumin Qiu <shumin.qiu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17315 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoIntelFrameworkModulePkg: Change BdsDxe to use new PCDs defined in MdePkg and MdeModul...
Ruiyu Ni [Wed, 6 May 2015 03:23:06 +0000 (03:23 +0000)]
IntelFrameworkModulePkg: Change BdsDxe to use new PCDs defined in MdePkg and MdeModulePkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17314 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoCopy PCD from IntelFrameworkModulePkg to MdePkg and MdeModulePkg
Ruiyu Ni [Wed, 6 May 2015 03:22:26 +0000 (03:22 +0000)]
Copy PCD from IntelFrameworkModulePkg to MdePkg and MdeModulePkg

to MdePkg: PcdHardwareErrorRecordLevel, PcdPlatformBootTimeout
to MdeModulePkg: PcdSetupConOutColumn, PcdSetupConOutRow, PcdSetupVideoHorizontalResolution, PcdSetupVideoVerticalResolution

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17313 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add bluetooth devicepath handling in device path library.
Qiu Shumin [Wed, 6 May 2015 02:41:37 +0000 (02:41 +0000)]
MdePkg: Add bluetooth devicepath handling in device path library.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17312 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add UEFI2.5 bluetooth protocol/devicepath definition in MdePkg.
Qiu Shumin [Wed, 6 May 2015 02:21:48 +0000 (02:21 +0000)]
MdePkg: Add UEFI2.5 bluetooth protocol/devicepath definition in MdePkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17311 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoAdd ASSERT comment for SafeString API in BaseLib for MdePkg.
Yao, Jiewen [Wed, 6 May 2015 00:46:51 +0000 (00:46 +0000)]
Add ASSERT comment for SafeString API in BaseLib for MdePkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
Reviewed-by: "Carsey, Jaben" <jaben.carsey@intel.com>
Reviewed-by: "Justen, Jordan L" <jordan.l.justen@intel.com>
Reviewed-by: "Gao, Liming" <Liming.Gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17310 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoEmbeddedPkg: do not ASSERT() on valid external input
Ard Biesheuvel [Tue, 5 May 2015 15:51:44 +0000 (15:51 +0000)]
EmbeddedPkg: do not ASSERT() on valid external input

Since ASSERT()s are enabled even on all ArmPlatformPkg RELEASE
builds, ASSERT()ing on a valid FDT header will crash the firmware
if the user selects an incorrect file. Since ASSERT() is meant to
catch internal inconsistencies in the firmware, its use here is
inappropriate.

Instead, handle it as a normal error condition.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17309 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoEmbeddedPkg/PrePiLib: Ensure the FFS files are always 8-byte aligned
Olivier Martin [Tue, 5 May 2015 15:48:59 +0000 (15:48 +0000)]
EmbeddedPkg/PrePiLib: Ensure the FFS files are always 8-byte aligned

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17308 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoEmbeddedPkg/FdtPlatformDxe: Changed the driver from DXE to UEFI driver
Olivier Martin [Tue, 5 May 2015 15:47:07 +0000 (15:47 +0000)]
EmbeddedPkg/FdtPlatformDxe: Changed the driver from DXE to UEFI driver

The driver does not really require to be a DXE driver.
By moving it as a UEFI driver it also implies it is dispatcged after
the DXE drivers at boot time.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17307 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg: Removed duplicate PCD settings
Olivier Martin [Tue, 5 May 2015 15:45:20 +0000 (15:45 +0000)]
ArmPlatformPkg: Removed duplicate PCD settings

PcdOverridePlatformFdt was set with its default value.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17306 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg: Move the FDT platform driver at the end of the driver list
Olivier Martin [Tue, 5 May 2015 15:43:48 +0000 (15:43 +0000)]
ArmPlatformPkg: Move the FDT platform driver at the end of the driver list

The Fdt platform driver has been moved at the end of the list
of the DXE/UEFI drivers to ensure the device drivers have been
dispatched prior to load the FDT platform driver.

For instance, if we want to load FDT from TFTP we must have
the ethernet driver to be already loaded.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17305 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoEmbeddedPkg/FdtPlatformDxe: Update the uni file
Ronald Cron [Tue, 5 May 2015 15:40:46 +0000 (15:40 +0000)]
EmbeddedPkg/FdtPlatformDxe: Update the uni file

The updated uni file reflects the latest EFI shell command updates.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ronald Cron <Ronald.Cron@arm.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17304 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoEmbeddedPkg/FdtPlatformDxe: Introduce EFI Shell command 'dumfdt'
Olivier Martin [Tue, 5 May 2015 15:31:11 +0000 (15:31 +0000)]
EmbeddedPkg/FdtPlatformDxe: Introduce EFI Shell command 'dumfdt'

This command dumps the Flat Device Tree currently installed
in the EFI Configuration Table.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17303 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoEmbeddedPkg/FdtPlatformDxe: Move 'setfdt' Shell command into a separate file
Olivier Martin [Tue, 5 May 2015 15:27:41 +0000 (15:27 +0000)]
EmbeddedPkg/FdtPlatformDxe: Move 'setfdt' Shell command into a separate file

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17302 6f19259b-4bc3-4df7-8a09-765794883524