2007-06-08 13:31:52 +02:00
|
|
|
/** @file
|
|
|
|
Include file matches things in PI for multiple module types.
|
|
|
|
|
2008-09-08 09:55:40 +02:00
|
|
|
Copyright (c) 2006 - 2008, 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:
|
2008-10-28 14:04:40 +01:00
|
|
|
PI Version 1.0
|
2007-06-08 13:31:52 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __PI_MULTIPHASE_H__
|
|
|
|
#define __PI_MULTIPHASE_H__
|
|
|
|
|
|
|
|
#include <Uefi/UefiMultiPhase.h>
|
|
|
|
|
|
|
|
#include <Pi/PiFirmwareVolume.h>
|
|
|
|
#include <Pi/PiFirmwareFile.h>
|
|
|
|
#include <Pi/PiBootMode.h>
|
|
|
|
|
|
|
|
#include <Pi/PiHob.h>
|
|
|
|
#include <Pi/PiDependency.h>
|
|
|
|
|
2007-07-04 11:04:40 +02:00
|
|
|
|
|
|
|
#define EFI_NOT_AVAILABLE_YET EFIERR (32)
|
|
|
|
|
2008-06-24 06:37:24 +02:00
|
|
|
///
|
|
|
|
/// Status Code Type Definition
|
|
|
|
///
|
2007-06-18 22:28:02 +02:00
|
|
|
typedef UINT32 EFI_STATUS_CODE_TYPE;
|
2007-06-08 13:31:52 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// A Status Code Type is made up of the code type and severity
|
|
|
|
// All values masked by EFI_STATUS_CODE_RESERVED_MASK are
|
|
|
|
// reserved for use by this specification.
|
|
|
|
//
|
2007-06-18 22:28:02 +02:00
|
|
|
#define EFI_STATUS_CODE_TYPE_MASK 0x000000FF
|
2007-06-08 13:31:52 +02:00
|
|
|
#define EFI_STATUS_CODE_SEVERITY_MASK 0xFF000000
|
|
|
|
#define EFI_STATUS_CODE_RESERVED_MASK 0x00FFFF00
|
|
|
|
|
|
|
|
//
|
|
|
|
// Definition of code types, all other values masked by
|
|
|
|
// EFI_STATUS_CODE_TYPE_MASK are reserved for use by
|
|
|
|
// this specification.
|
|
|
|
//
|
2007-06-18 22:28:02 +02:00
|
|
|
#define EFI_PROGRESS_CODE 0x00000001
|
|
|
|
#define EFI_ERROR_CODE 0x00000002
|
|
|
|
#define EFI_DEBUG_CODE 0x00000003
|
2007-06-08 13:31:52 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Definitions of severities, all other values masked by
|
|
|
|
// EFI_STATUS_CODE_SEVERITY_MASK are reserved for use by
|
|
|
|
// this specification.
|
|
|
|
// Uncontained errors are major errors that could not contained
|
|
|
|
// to the specific component that is reporting the error
|
|
|
|
// For example, if a memory error was not detected early enough,
|
|
|
|
// the bad data could be consumed by other drivers.
|
|
|
|
//
|
2007-06-18 22:28:02 +02:00
|
|
|
#define EFI_ERROR_MINOR 0x40000000
|
|
|
|
#define EFI_ERROR_MAJOR 0x80000000
|
|
|
|
#define EFI_ERROR_UNRECOVERED 0x90000000
|
|
|
|
#define EFI_ERROR_UNCONTAINED 0xa0000000
|
2007-06-08 13:31:52 +02:00
|
|
|
|
2008-06-24 06:37:24 +02:00
|
|
|
///
|
|
|
|
/// Status Code Value Definition
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
typedef UINT32 EFI_STATUS_CODE_VALUE;
|
2008-06-24 06:37:24 +02:00
|
|
|
|
2007-06-08 13:31:52 +02:00
|
|
|
//
|
|
|
|
// A Status Code Value is made up of the class, subclass, and
|
|
|
|
// an operation.
|
|
|
|
//
|
2007-06-18 22:28:02 +02:00
|
|
|
#define EFI_STATUS_CODE_CLASS_MASK 0xFF000000
|
|
|
|
#define EFI_STATUS_CODE_SUBCLASS_MASK 0x00FF0000
|
|
|
|
#define EFI_STATUS_CODE_OPERATION_MASK 0x0000FFFF
|
2008-06-24 06:37:24 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
/// Definition of Status Code extended data header.
|
|
|
|
/// The data will follow HeaderSize bytes from the beginning of
|
|
|
|
/// the structure and is Size bytes long.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
typedef struct {
|
2007-06-18 22:28:02 +02:00
|
|
|
UINT16 HeaderSize;
|
|
|
|
UINT16 Size;
|
|
|
|
EFI_GUID Type;
|
2007-06-08 13:31:52 +02:00
|
|
|
} EFI_STATUS_CODE_DATA;
|
|
|
|
|
2007-07-03 20:34:24 +02:00
|
|
|
|
|
|
|
//
|
2008-09-08 09:55:40 +02:00
|
|
|
// Bit values for Authentication Status
|
2007-07-03 20:34:24 +02:00
|
|
|
//
|
|
|
|
#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
|
2007-12-10 04:47:56 +01:00
|
|
|
#define EFI_AUTH_STATUS_ALL 0x0f
|
2007-07-03 20:34:24 +02:00
|
|
|
|
2007-06-08 13:31:52 +02:00
|
|
|
#endif
|