2007-06-08 13:31:52 +02:00
|
|
|
/** @file
|
|
|
|
Include file matches things in PI for multiple module types.
|
|
|
|
|
2009-05-18 11:13:49 +02:00
|
|
|
Copyright (c) 2006 - 2009, Intel Corporation
|
2007-06-08 13:31:52 +02:00
|
|
|
All rights reserved. This program and the accompanying materials
|
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
|
|
|
|
@par Revision Reference:
|
2009-07-24 05:26:30 +02:00
|
|
|
These elements are defined in UEFI Platform Initialization Specification 1.2
|
2007-06-08 13:31:52 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __PI_MULTIPHASE_H__
|
|
|
|
#define __PI_MULTIPHASE_H__
|
|
|
|
|
|
|
|
#include <Pi/PiFirmwareVolume.h>
|
|
|
|
#include <Pi/PiFirmwareFile.h>
|
|
|
|
#include <Pi/PiBootMode.h>
|
|
|
|
#include <Pi/PiHob.h>
|
|
|
|
#include <Pi/PiDependency.h>
|
2009-05-18 11:13:49 +02:00
|
|
|
#include <Pi/PiStatusCode.h>
|
2007-07-04 11:04:40 +02:00
|
|
|
|
2009-07-24 05:26:30 +02:00
|
|
|
/**
|
|
|
|
Produces an error code in the range reserved for use by the Platform Initialization
|
|
|
|
Architecture Specification.
|
|
|
|
|
|
|
|
The supported 32-bit range is 0xA0000000-0xBFFFFFFF
|
|
|
|
The supported 64-bit range is 0xA000000000000000-0xBFFFFFFFFFFFFFFF
|
|
|
|
|
|
|
|
@param StatusCode The status code value to convert into a warning code.
|
|
|
|
StatusCode must be in the range 0x00000000..0x1FFFFFFF.
|
|
|
|
|
|
|
|
@return The value specified by StatusCode in the PI reserved range.
|
|
|
|
|
|
|
|
**/
|
|
|
|
#define DXE_ERROR(StatusCode) (MAX_BIT | (MAX_BIT >> 2) | StatusCode)
|
|
|
|
|
|
|
|
///
|
|
|
|
/// If this value is returned by an EFI image, then the image should be unloaded.
|
|
|
|
///
|
|
|
|
#define EFI_REQUEST_UNLOAD_IMAGE DXE_ERROR (1)
|
|
|
|
|
|
|
|
///
|
|
|
|
/// If this value is returned by an API, it means the capability is not yet
|
|
|
|
/// installed/available/ready to use.
|
|
|
|
///
|
|
|
|
#define EFI_NOT_AVAILABLE_YET DXE_ERROR (2)
|
|
|
|
|
|
|
|
///
|
|
|
|
/// Bitmask of values for Authentication Status.
|
|
|
|
/// Authentication Status is returned from EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL
|
|
|
|
/// and the EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI
|
|
|
|
///
|
|
|
|
/// xx00 Image was not signed.
|
|
|
|
/// xxx1 Platform security policy override. Assumes same meaning as 0010 (the image was signed, the
|
|
|
|
/// signature was tested, and the signature passed authentication test).
|
|
|
|
/// 0010 Image was signed, the signature was tested, and the signature passed authentication test.
|
|
|
|
/// 0110 Image was signed and the signature was not tested.
|
|
|
|
/// 1010 Image was signed, the signature was tested, and the signature failed the authentication test.
|
|
|
|
///
|
|
|
|
///@{
|
|
|
|
#define EFI_AUTH_STATUS_PLATFORM_OVERRIDE 0x01
|
|
|
|
#define EFI_AUTH_STATUS_IMAGE_SIGNED 0x02
|
|
|
|
#define EFI_AUTH_STATUS_NOT_TESTED 0x04
|
|
|
|
#define EFI_AUTH_STATUS_TEST_FAILED 0x08
|
|
|
|
#define EFI_AUTH_STATUS_ALL 0x0f
|
|
|
|
///@}
|
2007-07-04 11:04:40 +02:00
|
|
|
|
2007-06-08 13:31:52 +02:00
|
|
|
#endif
|