]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Pi/PiMultiPhase.h
Update BdsDxe to use HiiLib and UefiHiiServicesLib APIs to eliminate the symbol colli...
[mirror_edk2.git] / MdePkg / Include / Pi / PiMultiPhase.h
CommitLineData
959ccb23 1/** @file\r
2 Include file matches things in PI for multiple module types.\r
3\r
d7dfd027 4 Copyright (c) 2006 - 2009, Intel Corporation \r
959ccb23 5 All rights reserved. This program and the accompanying materials \r
6 are licensed and made available under the terms and conditions of the BSD License \r
7 which accompanies this distribution. The full text of the license may be found at \r
8 http://opensource.org/licenses/bsd-license.php \r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
12\r
959ccb23 13 @par Revision Reference:\r
b205f267 14 These elements are defined in UEFI Platform Initialization Specification 1.2 \r
959ccb23 15\r
16**/\r
17\r
18#ifndef __PI_MULTIPHASE_H__\r
19#define __PI_MULTIPHASE_H__\r
20\r
959ccb23 21#include <Pi/PiFirmwareVolume.h>\r
22#include <Pi/PiFirmwareFile.h>\r
23#include <Pi/PiBootMode.h>\r
959ccb23 24#include <Pi/PiHob.h>\r
25#include <Pi/PiDependency.h>\r
d7dfd027 26#include <Pi/PiStatusCode.h>\r
211a2649 27\r
b205f267 28/**\r
29 Produces an error code in the range reserved for use by the Platform Initialization\r
30 Architecture Specification.\r
31\r
32 The supported 32-bit range is 0xA0000000-0xBFFFFFFF \r
33 The supported 64-bit range is 0xA000000000000000-0xBFFFFFFFFFFFFFFF \r
34\r
35 @param StatusCode The status code value to convert into a warning code. \r
36 StatusCode must be in the range 0x00000000..0x1FFFFFFF.\r
37\r
38 @return The value specified by StatusCode in the PI reserved range.\r
39\r
40**/\r
41#define DXE_ERROR(StatusCode) (MAX_BIT | (MAX_BIT >> 2) | StatusCode)\r
42\r
43///\r
44/// If this value is returned by an EFI image, then the image should be unloaded.\r
45///\r
46#define EFI_REQUEST_UNLOAD_IMAGE DXE_ERROR (1)\r
47\r
48///\r
49/// If this value is returned by an API, it means the capability is not yet \r
50/// installed/available/ready to use.\r
51///\r
52#define EFI_NOT_AVAILABLE_YET DXE_ERROR (2)\r
53\r
54///\r
55/// Bitmask of values for Authentication Status.\r
56/// Authentication Status is returned from EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL \r
57/// and the EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI\r
58///\r
59/// xx00 Image was not signed.\r
60/// xxx1 Platform security policy override. Assumes same meaning as 0010 (the image was signed, the\r
61/// signature was tested, and the signature passed authentication test).\r
62/// 0010 Image was signed, the signature was tested, and the signature passed authentication test.\r
63/// 0110 Image was signed and the signature was not tested.\r
64/// 1010 Image was signed, the signature was tested, and the signature failed the authentication test.\r
65///\r
66///@{\r
67#define EFI_AUTH_STATUS_PLATFORM_OVERRIDE 0x01\r
68#define EFI_AUTH_STATUS_IMAGE_SIGNED 0x02\r
69#define EFI_AUTH_STATUS_NOT_TESTED 0x04\r
70#define EFI_AUTH_STATUS_TEST_FAILED 0x08\r
71#define EFI_AUTH_STATUS_ALL 0x0f\r
72///@}\r
211a2649 73\r
959ccb23 74#endif\r