diff options
Diffstat (limited to 'EDK/Foundation/Guid')
62 files changed, 2228 insertions, 0 deletions
diff --git a/EDK/Foundation/Guid/AlternateFvBlock/AlternateFvBlock.c b/EDK/Foundation/Guid/AlternateFvBlock/AlternateFvBlock.c new file mode 100644 index 0000000..1be59cc --- /dev/null +++ b/EDK/Foundation/Guid/AlternateFvBlock/AlternateFvBlock.c @@ -0,0 +1,28 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + AlternateFvBlock.c + +Abstract: + + Tiano Guid used to define the Alternate Firmware Volume Block Guid. + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION (AlternateFvBlock) + +EFI_GUID gEfiAlternateFvBlockGuid = EFI_ALTERNATE_FV_BLOCK_GUID; + +EFI_GUID_STRING + (&gEfiAlternateFvBlockGuid, "Alternate Firmware Volume Block GUID", "Alternate Firmware Volume Block GUID"); diff --git a/EDK/Foundation/Guid/AlternateFvBlock/AlternateFvBlock.h b/EDK/Foundation/Guid/AlternateFvBlock/AlternateFvBlock.h new file mode 100644 index 0000000..20f3977 --- /dev/null +++ b/EDK/Foundation/Guid/AlternateFvBlock/AlternateFvBlock.h @@ -0,0 +1,32 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + AlternateFvBlock.h + +Abstract: + + Tiano Guid used to define the Alternate Firmware Volume Block Guid. + +--*/ + +#ifndef _ALT_FVB_GUID_H +#define _ALT_FVB_GUID_H + +#define EFI_ALTERNATE_FV_BLOCK_GUID \ + { \ + 0xf496922d, 0x172f, 0x4bbc, 0xa1, 0xeb, 0xe, 0xeb, 0x94, 0x9c, 0x34, 0x86 \ + } + +extern EFI_GUID gEfiAlternateFvBlockGuid; + +#endif diff --git a/EDK/Foundation/Guid/Bmp/Bmp.c b/EDK/Foundation/Guid/Bmp/Bmp.c new file mode 100644 index 0000000..0a17246 --- /dev/null +++ b/EDK/Foundation/Guid/Bmp/Bmp.c @@ -0,0 +1,29 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + Bmp.c + .c + +Abstract: + + GUID used as a filename for the BMP logo + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION (Bmp) + +EFI_GUID gEfiDefaultBmpLogoGuid = EFI_DEFAULT_BMP_LOGO_GUID; + +EFI_GUID_STRING (&gEfiDefaultBmpLogoGuid, "Guid for BMP logo", "Guid for BMP logo"); + diff --git a/EDK/Foundation/Guid/Bmp/Bmp.h b/EDK/Foundation/Guid/Bmp/Bmp.h new file mode 100644 index 0000000..17f8b62 --- /dev/null +++ b/EDK/Foundation/Guid/Bmp/Bmp.h @@ -0,0 +1,62 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + Bmp.h + +Abstract: + +--*/ + +#ifndef _BMP_GUID_H_ +#define _BMP_GUID_H_ + + +// +// Definitions for BMP files +// +#pragma pack(1) + +typedef struct { + UINT8 Blue; + UINT8 Green; + UINT8 Red; + UINT8 Reserved; +} BMP_COLOR_MAP; + +typedef struct { + CHAR8 CharB; + CHAR8 CharM; + UINT32 Size; + UINT16 Reserved[2]; + UINT32 ImageOffset; + UINT32 HeaderSize; + UINT32 PixelWidth; + UINT32 PixelHeight; + UINT16 Planes; // Must be 1 + UINT16 BitPerPixel; // 1, 4, 8, or 24 + UINT32 CompressionType; + UINT32 ImageSize; // Compressed image size in bytes + UINT32 XPixelsPerMeter; + UINT32 YPixelsPerMeter; + UINT32 NumberOfColors; + UINT32 ImportantColors; +} BMP_IMAGE_HEADER; + +#pragma pack() + +#define EFI_DEFAULT_BMP_LOGO_GUID \ + {0x7BB28B99,0x61BB,0x11d5,0x9A,0x5D,0x00,0x90,0x27,0x3F,0xC1,0x4D} + +extern EFI_GUID gEfiDefaultBmpLogoGuid; + +#endif diff --git a/EDK/Foundation/Guid/BootState/BootState.c b/EDK/Foundation/Guid/BootState/BootState.c new file mode 100644 index 0000000..b12ed44 --- /dev/null +++ b/EDK/Foundation/Guid/BootState/BootState.c @@ -0,0 +1,30 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + BootState.c + +Abstract: + + GUID for use conveying the boot-state to PEI + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION (BootState) + +EFI_GUID gEfiBootStateGuid = EFI_BOOT_STATE_VARIABLE_GUID; + +// +// GUID for frequency selection HOB +// +EFI_GUID_STRING(&gEfiBootStateGuid, "Boot State", "Boot State"); diff --git a/EDK/Foundation/Guid/BootState/BootState.h b/EDK/Foundation/Guid/BootState/BootState.h new file mode 100644 index 0000000..42eed61 --- /dev/null +++ b/EDK/Foundation/Guid/BootState/BootState.h @@ -0,0 +1,38 @@ +/*++ + +Copyright (c) 2004 - 2005, Intel Corporation +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. + +Module Name: + + BootState.h + +Abstract: + + Constants and declarations that are common accross PEI and DXE. +--*/ + +#ifndef _BOOT_STATE_H_ +#define _BOOT_STATE_H_ + +#include "Tiano.h" + +// +// BOOT STATE +// + +typedef UINT32 EFI_BOOT_STATE; + +#define BOOT_STATE_VARIABLE_NAME L"BootState" + +#define EFI_BOOT_STATE_VARIABLE_GUID \ + {0x60b5e939, 0xfcf, 0x4227, 0xba, 0x83, 0x6b, 0xbe, 0xd4, 0x5b, 0xc0, 0xe3} + +extern EFI_GUID gEfiBootStateGuid; +#endif diff --git a/EDK/Foundation/Guid/Capsule/Capsule.c b/EDK/Foundation/Guid/Capsule/Capsule.c new file mode 100644 index 0000000..71bdbac --- /dev/null +++ b/EDK/Foundation/Guid/Capsule/Capsule.c @@ -0,0 +1,29 @@ +/*++ + +Copyright (c) 2006, Intel Corporation +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. + +Module Name: + + Capsule.c + +Abstract: + + EFI Capsule update Guid data declarations. + +--*/ + +#include "Tiano.h" + +#include EFI_GUID_DEFINITION(Capsule) + +EFI_GUID gEfiCapsuleVendorGuid = EFI_CAPSULE_VENDOR_GUID; + +EFI_GUID_STRING(&gEfiCapsuleVendorGuid, "EFI", "Efi Capsule GUID") + diff --git a/EDK/Foundation/Guid/Capsule/Capsule.h b/EDK/Foundation/Guid/Capsule/Capsule.h new file mode 100644 index 0000000..6688874 --- /dev/null +++ b/EDK/Foundation/Guid/Capsule/Capsule.h @@ -0,0 +1,40 @@ +/*++ + +Copyright (c) 2006 - 2011, Intel Corporation +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. + +Module Name: + + Capsule.h + +Abstract: + + Capsule update Guid definitions + +--*/ + +#ifndef _EFI_CAPSULE_VENDOR_GUID_H_ +#define _EFI_CAPSULE_VENDOR_GUID_H_ + +// +// Note -- This guid is used as a vendor GUID (depending on implementation) +// for the capsule variable if the capsule pointer is passes through reset +// via a variable. +// +#define EFI_CAPSULE_VENDOR_GUID \ + { 0x711C703F, 0xC285, 0x4B10, 0xA3, 0xB0, 0x36, 0xEC, 0xBD, 0x3C, 0x8B, 0xE2 } + +// +// Name of capsule variable. +// +#define EFI_CAPSULE_VARIABLE_NAME L"CapsuleUpdateData" + +extern EFI_GUID gEfiCapsuleVendorGuid; + +#endif // #ifndef _EFI_CAPSULE_VENDOR_GUID_H_ diff --git a/EDK/Foundation/Guid/CompatibleMemoryTested/CompatibleMemoryTested.c b/EDK/Foundation/Guid/CompatibleMemoryTested/CompatibleMemoryTested.c new file mode 100644 index 0000000..c4a43bb --- /dev/null +++ b/EDK/Foundation/Guid/CompatibleMemoryTested/CompatibleMemoryTested.c @@ -0,0 +1,28 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + CompatibleMemoryTested.c + +Abstract: + + Tiano Guid used for all Compatible Memory Range Tested GUID. + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION (CompatibleMemoryTested) + +EFI_GUID gEfiCompatibleMemoryTestedGuid = EFI_COMPATIBLE_MEMORY_TESTED_PROTOCOL_GUID; + +EFI_GUID_STRING + (&gEfiCompatibleMemoryTestedGuid, "CompatibleMemoryTested Protocol", "Tiano Generic Memory Test Protocol"); diff --git a/EDK/Foundation/Guid/CompatibleMemoryTested/CompatibleMemoryTested.h b/EDK/Foundation/Guid/CompatibleMemoryTested/CompatibleMemoryTested.h new file mode 100644 index 0000000..5eef353 --- /dev/null +++ b/EDK/Foundation/Guid/CompatibleMemoryTested/CompatibleMemoryTested.h @@ -0,0 +1,32 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + CompatibleMemoryTested.h + +Abstract: + + Tiano Guid used for all Compatible Memory Range Tested GUID. + +--*/ + +#ifndef _COMPATIBLE_MEMORY_TESTED_GUID_H_ +#define _COMPATIBLE_MEMORY_TESTED_GUID_H_ + +#define EFI_COMPATIBLE_MEMORY_TESTED_PROTOCOL_GUID \ + { \ + 0x64c475ef, 0x344b, 0x492c, 0x93, 0xad, 0xab, 0x9e, 0xb4, 0x39, 0x50, 0x4 \ + } + +extern EFI_GUID gEfiCompatibleMemoryTestedGuid; + +#endif diff --git a/EDK/Foundation/Guid/ConsoleInDevice/ConsoleInDevice.c b/EDK/Foundation/Guid/ConsoleInDevice/ConsoleInDevice.c new file mode 100644 index 0000000..6c40491 --- /dev/null +++ b/EDK/Foundation/Guid/ConsoleInDevice/ConsoleInDevice.c @@ -0,0 +1,27 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + ConsoleInDevice.c + +Abstract: + + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION(ConsoleInDevice) + + +EFI_GUID gEfiConsoleInDeviceGuid = EFI_CONSOLE_IN_DEVICE_GUID; + +EFI_GUID_STRING(&gEfiConsoleInDeviceGuid, "Console In Device Guid", "EFI Conosle In Device Guid"); diff --git a/EDK/Foundation/Guid/ConsoleInDevice/ConsoleInDevice.h b/EDK/Foundation/Guid/ConsoleInDevice/ConsoleInDevice.h new file mode 100644 index 0000000..893a0b2 --- /dev/null +++ b/EDK/Foundation/Guid/ConsoleInDevice/ConsoleInDevice.h @@ -0,0 +1,29 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + ConsoleInDevice.h + +Abstract: + + +--*/ + +#ifndef _CONSOLE_IN_DEVICE_H_ +#define _CONSOLE_IN_DEVICE_H_ + +#define EFI_CONSOLE_IN_DEVICE_GUID \ + { 0xd3b36f2b, 0xd551, 0x11d4, 0x9a, 0x46, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } + +extern EFI_GUID gEfiConsoleInDeviceGuid; + +#endif diff --git a/EDK/Foundation/Guid/ConsoleOutDevice/ConsoleOutDevice.c b/EDK/Foundation/Guid/ConsoleOutDevice/ConsoleOutDevice.c new file mode 100644 index 0000000..0cee45a --- /dev/null +++ b/EDK/Foundation/Guid/ConsoleOutDevice/ConsoleOutDevice.c @@ -0,0 +1,27 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + ConsoleOutDevice.c + +Abstract: + + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION(ConsoleOutDevice) + + +EFI_GUID gEfiConsoleOutDeviceGuid = EFI_CONSOLE_OUT_DEVICE_GUID; + +EFI_GUID_STRING(&gEfiConsoleOutDeviceGuid, "Console Out Device Guid", "EFI Console Out Device Guid"); diff --git a/EDK/Foundation/Guid/ConsoleOutDevice/ConsoleOutDevice.h b/EDK/Foundation/Guid/ConsoleOutDevice/ConsoleOutDevice.h new file mode 100644 index 0000000..1bf910f --- /dev/null +++ b/EDK/Foundation/Guid/ConsoleOutDevice/ConsoleOutDevice.h @@ -0,0 +1,29 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + ConsoleOutDevice.h + +Abstract: + + +--*/ + +#ifndef _CONSOLE_OUT_DEVICE_H_ +#define _CONSOLE_OUT_DEVICE_H_ + +#define EFI_CONSOLE_OUT_DEVICE_GUID \ + { 0xd3b36f2c, 0xd551, 0x11d4, 0x9a, 0x46, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } + +extern EFI_GUID gEfiConsoleOutDeviceGuid; + +#endif diff --git a/EDK/Foundation/Guid/EdkGuidLib.cif b/EDK/Foundation/Guid/EdkGuidLib.cif new file mode 100644 index 0000000..37e5d87 --- /dev/null +++ b/EDK/Foundation/Guid/EdkGuidLib.cif @@ -0,0 +1,68 @@ +<component> + name = "EdkGuidLib" + category = ModulePart + LocalRoot = "Edk\Foundation\Guid\" + RefName = "EdkGuidLib" +[files] +"EdkGuidLib.sdl" +"EdkGuidLib.mak" +"AlternateFvBlock\AlternateFvBlock.h" +"AlternateFvBlock\AlternateFvBlock.c" +"Bmp\Bmp.h" +"Bmp\Bmp.c" +"BootState\BootState.h" +"BootState\BootState.c" +"Capsule\Capsule.h" +"Capsule\Capsule.c" +"CompatibleMemoryTested\CompatibleMemoryTested.h" +"CompatibleMemoryTested\CompatibleMemoryTested.c" +"ConsoleInDevice\ConsoleInDevice.h" +"ConsoleInDevice\ConsoleInDevice.c" +"ConsoleOutDevice\ConsoleOutDevice.h" +"ConsoleOutDevice\ConsoleOutDevice.c" +"EfiShell\EfiShell.h" +"EfiShell\EfiShell.c" +"FlashMapHob\FlashMapHob.h" +"FlashMapHob\FlashMapHob.c" +"HotPlugDevice\HotPlugDevice.h" +"HotPlugDevice\HotPlugDevice.c" +"IoBaseHob\IoBaseHob.h" +"IoBaseHob\IoBaseHob.c" +"MemoryTypeInformation\MemoryTypeInformation.h" +"MemoryTypeInformation\MemoryTypeInformation.c" +"PciHotPlugDevice\PciHotplugDevice.h" +"PciHotPlugDevice\PciHotplugDevice.c" +"PciOptionRomTable\PciOptionRomTable.h" +"PciOptionRomTable\PciOptionRomTable.c" +"PciExpressBaseAddress\PciExpressBaseAddress.h" +"PciExpressBaseAddress\PciExpressBaseAddress.c" +"PeiFlushInstructionCache\PeiFlushInstructionCache.h" +"PeiFlushInstructionCache\PeiFlushInstructionCache.c" +"PeiPeCoffLoader\PeiPeCoffLoader.h" +"PeiPeCoffLoader\PeiPeCoffLoader.c" +"PeiPerformanceHob\PeiPerformanceHob.h" +"PeiPerformanceHob\PeiPerformanceHob.c" +"PeiTransferControl\PeiTransferControl.h" +"PeiTransferControl\PeiTransferControl.c" +"PrimaryConsoleInDevice\PrimaryConsoleInDevice.h" +"PrimaryConsoleInDevice\PrimaryConsoleInDevice.c" +"PrimaryConsoleOutDevice\PrimaryConsoleOutDevice.h" +"PrimaryConsoleOutDevice\PrimaryConsoleOutDevice.c" +"PrimaryStandardErrorDevice\PrimaryStandardErrorDevice.h" +"PrimaryStandardErrorDevice\PrimaryStandardErrorDevice.c" +"StandardErrorDevice\StandardErrorDevice.h" +"StandardErrorDevice\StandardErrorDevice.c" +"StatusCode\StatusCode.h" +"StatusCode\StatusCode.c" +"StatusCodeCallerId\StatusCodeCallerId.h" +"StatusCodeCallerId\StatusCodeCallerId.c" +"SystemNvDataGuid\SystemNvDataGuid.h" +"SystemNvDataGuid\SystemNvDataGuid.c" +"EventLegacyBios\EventLegacyBios.h" +"EventLegacyBios\EventLegacyBios.c" +"GenericVariable\GenericVariable.h" +"GenericVariable\GenericVariable.c" +"EdkGuidLib.inf" +"FastBootExceptionInfo\FastBootExceptionInfo.c" +"FastBootExceptionInfo\FastBootExceptionInfo.h" +<endComponent> diff --git a/EDK/Foundation/Guid/EdkGuidLib.inf b/EDK/Foundation/Guid/EdkGuidLib.inf new file mode 100644 index 0000000..fc47f75 --- /dev/null +++ b/EDK/Foundation/Guid/EdkGuidLib.inf @@ -0,0 +1,98 @@ +#/*++ +# +# Copyright (c) 2004 - 2006, Intel Corporation +# 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. +# +# Module Name: +# +# EdkGuidLib.inf +# +# Abstract: +# +# Component description file for the Edk Guid library. +# +#--*/ +[defines] +BASE_NAME= EdkGuidLib +COMPONENT_TYPE= LIBRARY + +[includes.common] + $(EDK_SOURCE)\Foundation + $(EDK_SOURCE)\Foundation\Framework + $(EDK_SOURCE)\Foundation\Efi + $(EDK_SOURCE)\Foundation\Include + $(EDK_SOURCE)\Foundation\Efi\Include + $(EDK_SOURCE)\Foundation\Framework\Include + $(EDK_SOURCE)\Foundation\Include\IndustryStandard + $(EDK_SOURCE) + $(EDK_SOURCE)\Foundation\Core\Dxe + $(EDK_SOURCE)\Foundation\Include\Pei + $(EDK_SOURCE)\Foundation\Library\Pei\Include + +[nmake.common] +C_STD_INCLUDE= +[sources.common] + AlternateFvBlock\AlternateFvBlock.h + AlternateFvBlock\AlternateFvBlock.c + Bmp\Bmp.h + Bmp\Bmp.c + BootState\BootState.h + BootState\BootState.c + Capsule\Capsule.h + Capsule\Capsule.c + CompatibleMemoryTested\CompatibleMemoryTested.h + CompatibleMemoryTested\CompatibleMemoryTested.c + ConsoleInDevice\ConsoleInDevice.h + ConsoleInDevice\ConsoleInDevice.c + ConsoleOutDevice\ConsoleOutDevice.h + ConsoleOutDevice\ConsoleOutDevice.c + EfiShell\EfiShell.h + EfiShell\EfiShell.c + FlashMapHob\FlashMapHob.h + FlashMapHob\FlashMapHob.c + HotPlugDevice\HotPlugDevice.h + HotPlugDevice\HotPlugDevice.c + IoBaseHob\IoBaseHob.h + IoBaseHob\IoBaseHob.c + MemoryTypeInformation\MemoryTypeInformation.h + MemoryTypeInformation\MemoryTypeInformation.c + PciHotPlugDevice\PciHotPlugDevice.h + PciHotPlugDevice\PciHotPlugDevice.c + PciOptionRomTable\PciOptionRomTable.h + PciOptionRomTable\PciOptionRomTable.c + PciExpressBaseAddress\PciExpressBaseAddress.h + PciExpressBaseAddress\PciExpressBaseAddress.c + PeiFlushInstructionCache\PeiFlushInstructionCache.h + PeiFlushInstructionCache\PeiFlushInstructionCache.c + PeiPeCoffLoader\PeiPeCoffLoader.h + PeiPeCoffLoader\PeiPeCoffLoader.c + PeiPerformanceHob\PeiPerformanceHob.h + PeiPerformanceHob\PeiPerformanceHob.c + PeiTransferControl\PeiTransferControl.h + PeiTransferControl\PeiTransferControl.c + PrimaryConsoleInDevice\PrimaryConsoleInDevice.h + PrimaryConsoleInDevice\PrimaryConsoleInDevice.c + PrimaryConsoleOutDevice\PrimaryConsoleOutDevice.h + PrimaryConsoleOutDevice\PrimaryConsoleOutDevice.c + PrimaryStandardErrorDevice\PrimaryStandardErrorDevice.h + PrimaryStandardErrorDevice\PrimaryStandardErrorDevice.c + StandardErrorDevice\StandardErrorDevice.h + StandardErrorDevice\StandardErrorDevice.c + StatusCode\StatusCode.h + StatusCode\StatusCode.c + StatusCodeCallerId\StatusCodeCallerId.h + StatusCodeCallerId\StatusCodeCallerId.c + SystemNvDataGuid\SystemNvDataGuid.h + SystemNvDataGuid\SystemNvDataGuid.c + EventLegacyBios\EventLegacyBios.h + EventLegacyBios\EventLegacyBios.c + GenericVariable\GenericVariable.h + GenericVariable\GenericVariable.c + FastBootExceptionInfo\FastBootExceptionInfo.h + FastBootExceptionInfo\FastBootExceptionInfo.c diff --git a/EDK/Foundation/Guid/EdkGuidLib.mak b/EDK/Foundation/Guid/EdkGuidLib.mak new file mode 100644 index 0000000..74a330c --- /dev/null +++ b/EDK/Foundation/Guid/EdkGuidLib.mak @@ -0,0 +1,73 @@ +#********************************************************************** +#********************************************************************** +#** ** +#** (C)Copyright 1985-2009, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#********************************************************************** +#********************************************************************** + +#********************************************************************** +# $Header: /Alaska/SOURCE/Modules/SharkBayRefCodes/IntelEDK/EdkGuidLib/EdkGuidLib.mak 1 1/20/12 4:04a Jeffch $ +# +# $Revision: 1 $ +# +# $Date: 1/20/12 4:04a $ +#********************************************************************** +# Revision History +# ---------------- +# $Log: /Alaska/SOURCE/Modules/SharkBayRefCodes/IntelEDK/EdkGuidLib/EdkGuidLib.mak $ +# +# 1 1/20/12 4:04a Jeffch +# Create Intel EDK 1117 Patch 7. +# +# 1 9/27/11 6:28a Wesleychen +# Intel EDK initially releases. +# +# 2 9/02/09 3:22a Iminglin +# EIP24919 +# +#********************************************************************** +#<AMI_FHDR_START> +# +# Name: EdkGuidLib.mak +# +# Description: +# +#<AMI_FHDR_END> +#********************************************************************** + +$(EDKGUIDLIB) : EdkGuidLib + +EdkGuidLib : $(BUILD_DIR)\EdkGuidLib.mak EdkGuidLibBin + +$(BUILD_DIR)\EdkGuidLib.mak : $(EdkGuidLib_DIR)\$(@B).cif $(EdkGuidLib_DIR)\$(@B).mak $(BUILD_RULES) + $(CIF2MAK) $(EdkGuidLib_DIR)\$(@B).cif $(CIF2MAK_DEFAULTS) + +EdkGuidLibBin : + $(MAKE) /$(MAKEFLAGS) $(EDK_DEFAULTS)\ + /f $(BUILD_DIR)\EdkGuidLib.mak all\ + TYPE=LIBRARY +!IF "$(x64_BUILD)"=="1" + $(MAKE) /$(MAKEFLAGS) $(EDK_DEFAULTS) BUILD_DIR=$(BUILD_DIR)\IA32\ + /f $(BUILD_DIR)\EdkGuidLib.mak all\ + TYPE=PEI_LIBRARY +!ENDIF +#********************************************************************** +#********************************************************************** +#** ** +#** (C)Copyright 1985-2009, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#********************************************************************** +#**********************************************************************
\ No newline at end of file diff --git a/EDK/Foundation/Guid/EdkGuidLib.sdl b/EDK/Foundation/Guid/EdkGuidLib.sdl new file mode 100644 index 0000000..e5dddb6 --- /dev/null +++ b/EDK/Foundation/Guid/EdkGuidLib.sdl @@ -0,0 +1,26 @@ +TOKEN + Name = "EdkGuidLib_SUPPORT" + Value = "1" + Help = "Main switch to enable EdkGuidLib support in Project" + TokenType = Boolean + TargetEQU = Yes + TargetMAK = Yes + Master = Yes +End + +TOKEN + Name = "EDKGUIDLIB" + Value = "$$(LIB_BUILD_DIR)\EdkGuidLib.lib" + TokenType = Expression + TargetMAK = Yes +End + +PATH + Name = "EdkGuidLib_DIR" +End + +MODULE + Help = "Includes EdkGuidLib.mak to Project" + File = "EdkGuidLib.mak" +End + diff --git a/EDK/Foundation/Guid/EfiShell/EfiShell.c b/EDK/Foundation/Guid/EfiShell/EfiShell.c new file mode 100644 index 0000000..29d46bc --- /dev/null +++ b/EDK/Foundation/Guid/EfiShell/EfiShell.c @@ -0,0 +1,31 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + EfiShell.c + +Abstract: + + FFS Filename for EFI Shell + +--*/ + +#include "Tiano.h" + +#include EFI_GUID_DEFINITION (EfiShell) + +EFI_GUID gEfiShellFileGuid = EFI_SHELL_FILE_GUID; +EFI_GUID gEfiMiniShellFileGuid = EFI_MINI_SHELL_FILE_GUID; + +EFI_GUID_STRING (&gEfiShellFileGuid, "EfiShell", "Efi Shell FFS file name GUID") +EFI_GUID_STRING (&gEfiMiniShellFileGuid, "EfiMiniShell", "Efi Mini-Shell FFS file name GUID") + diff --git a/EDK/Foundation/Guid/EfiShell/EfiShell.h b/EDK/Foundation/Guid/EfiShell/EfiShell.h new file mode 100644 index 0000000..3e7030b --- /dev/null +++ b/EDK/Foundation/Guid/EfiShell/EfiShell.h @@ -0,0 +1,34 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + EfiShell.h + +Abstract: + + FFS Filename for EFI Shell + +--*/ + +#ifndef _EFI_SHELL_H_ +#define _EFI_SHELL_H_ + +#define EFI_SHELL_FILE_GUID \ + { 0xc57ad6b7, 0x0515, 0x40a8, 0x9d, 0x21, 0x55, 0x16, 0x52, 0x85, 0x4e, 0x37 } + +#define EFI_MINI_SHELL_FILE_GUID \ + { 0x86ad232b, 0xd33a, 0x465c, 0xbf, 0x5f, 0x41, 0x37, 0xb, 0xa9, 0x2f, 0xe2 } + +extern EFI_GUID gEfiShellFileGuid; +extern EFI_GUID gEfiMiniShellFileGuid; + +#endif diff --git a/EDK/Foundation/Guid/EventLegacyBios/EventLegacyBios.c b/EDK/Foundation/Guid/EventLegacyBios/EventLegacyBios.c new file mode 100644 index 0000000..b1e754d --- /dev/null +++ b/EDK/Foundation/Guid/EventLegacyBios/EventLegacyBios.c @@ -0,0 +1,23 @@ +/*++ + +Copyright (c) 2006, Intel Corporation +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. + +Module Name: + + EfiLegacyBios.c + +--*/ +#include "Tiano.h" + +#include EFI_GUID_DEFINITION (EventLegacyBios) + +EFI_GUID gEfiEventLegacyBootGuid = EFI_EVENT_LEGACY_BOOT_GUID; + +EFI_GUID_STRING (&gEfiEventLegacyBootGuid, "EventLegacyBoot", "Event Legacy Boot GUID") diff --git a/EDK/Foundation/Guid/EventLegacyBios/EventLegacyBios.h b/EDK/Foundation/Guid/EventLegacyBios/EventLegacyBios.h new file mode 100644 index 0000000..13737df --- /dev/null +++ b/EDK/Foundation/Guid/EventLegacyBios/EventLegacyBios.h @@ -0,0 +1,28 @@ +/** @file + GUID is the name of events used with CreateEventEx in order to be notified when the EFI boot manager is about to boot a legacy boot option. Events of this type are notificated just before Int19h is invoked. + + Copyright (c) 2006, Intel Corporation + 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. + + Module Name: EventLegacyBios.h + + @par Revision Reference: + GUIDs defined in DXE CIS 0.91b. + +**/ + +#ifndef __EVENT_LEGACY_BIOS_GUID_H__ +#define __EVENT_LEGACY_BIOS_GUID_H__ + +#define EFI_EVENT_LEGACY_BOOT_GUID \ + { 0x2a571201, 0x4966, 0x47f6, 0x8b, 0x86, 0xf3, 0x1e, 0x41, 0xf3, 0x2f, 0x10 } + +extern EFI_GUID gEfiEventLegacyBootGuid; + +#endif diff --git a/EDK/Foundation/Guid/FastBootExceptionInfo/FastBootExceptionInfo.c b/EDK/Foundation/Guid/FastBootExceptionInfo/FastBootExceptionInfo.c new file mode 100644 index 0000000..44347a6 --- /dev/null +++ b/EDK/Foundation/Guid/FastBootExceptionInfo/FastBootExceptionInfo.c @@ -0,0 +1,27 @@ +/*++ + +Copyright (c) 1999 - 2011 Intel Corporation. All rights reserved +This software and associated documentation (if any) is furnished +under a license and may only be used or copied in accordance +with the terms of the license. Except as permitted by such +license, no part of this software or documentation may be +reproduced, stored in a retrieval system, or transmitted in any +form or by any means without the express written consent of +Intel Corporation. + +Module Name: + + FastBootExceptionInfo.c + +Abstract: + + +--*/ + +#include "Tiano.h" + +#include EFI_GUID_DEFINITION (FastBootExceptionInfo) + +EFI_GUID gFastBootExceptionInfoHobGuid = FAST_BOOT_EXCEPTION_INFO_HOB_GUID; + +EFI_GUID_STRING(&gFastBootExceptionInfoHobGuid, "FastBootExceptionInfoHob", "Fast Boot Exception Info HOB"); diff --git a/EDK/Foundation/Guid/FastBootExceptionInfo/FastBootExceptionInfo.h b/EDK/Foundation/Guid/FastBootExceptionInfo/FastBootExceptionInfo.h new file mode 100644 index 0000000..4d11816 --- /dev/null +++ b/EDK/Foundation/Guid/FastBootExceptionInfo/FastBootExceptionInfo.h @@ -0,0 +1,44 @@ +/*++ + +Copyright (c) 1999 - 2011 Intel Corporation. All rights reserved +This software and associated documentation (if any) is furnished +under a license and may only be used or copied in accordance +with the terms of the license. Except as permitted by such +license, no part of this software or documentation may be +reproduced, stored in a retrieval system, or transmitted in any +form or by any means without the express written consent of +Intel Corporation. + +Module Name: + + FastBootExceptionInfo.h + +Abstract: + + This file defines the HOB data structure recording an Fast Boot exception + occurrence in PEI phase, which will be used/referenced by some DXE phase drivers. + +--*/ + +#ifndef _FAST_BOOT_EXCEPTION_INFO_HOB_GUID_H_ +#define _FAST_BOOT_EXCEPTION_INFO_HOB_GUID_H_ + +#include <PeiHob.h> +#include <FastBootDataDef.h> + +#define FAST_BOOT_EXCEPTION_INFO_HOB_GUID \ + { 0x4ed88276, 0xd4df, 0x4d03, 0x86, 0x61, 0x29, 0x58, 0x1, 0xb2, 0xda, 0x58 } + +EFI_FORWARD_DECLARATION (FAST_BOOT_EXCEPTION_INFO_HOB); + +typedef struct _FAST_BOOT_EXCEPTION_INFO_HOB { + EFI_HOB_GUID_TYPE Header; + EFI_GUID GuidName; + FAST_BOOT_EXCEPTION_TYPE FbExceptionType; + FAST_BOOT_EXCEPTION_CATEGORY FbExceptionCategory; +}; + +extern EFI_GUID gFastBootExceptionInfoHobGuid; + +#endif + diff --git a/EDK/Foundation/Guid/FlashMapHob/FlashMapHob.c b/EDK/Foundation/Guid/FlashMapHob/FlashMapHob.c new file mode 100644 index 0000000..7e093e8 --- /dev/null +++ b/EDK/Foundation/Guid/FlashMapHob/FlashMapHob.c @@ -0,0 +1,29 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + FlashMapHob.c + +Abstract: + + GUIDs used for Flash Map HOB entries in the in the HOB list. + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION (FlashMapHob) + + +EFI_GUID gEfiFlashMapHobGuid = EFI_FLASH_MAP_HOB_GUID; + +EFI_GUID_STRING (&gEfiFlashMapHobGuid, "Flash Map HOB", "Flash Map HOB GUID for HOB list"); + diff --git a/EDK/Foundation/Guid/FlashMapHob/FlashMapHob.h b/EDK/Foundation/Guid/FlashMapHob/FlashMapHob.h new file mode 100644 index 0000000..247441b --- /dev/null +++ b/EDK/Foundation/Guid/FlashMapHob/FlashMapHob.h @@ -0,0 +1,33 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + FlashMapHob.h + +Abstract: + + GUID used for Flash Map HOB entries in the HOB list. + +--*/ + +#ifndef _FLASH_MAP_HOB_GUID_H_ +#define _FLASH_MAP_HOB_GUID_H_ + +// +// Definitions for Flash Map +// +#define EFI_FLASH_MAP_HOB_GUID \ + { 0xb091e7d2, 0x5a0, 0x4198, 0x94, 0xf0, 0x74, 0xb7, 0xb8, 0xc5, 0x54, 0x59 } + +extern EFI_GUID gEfiFlashMapHobGuid; + +#endif // _FLASH_MAP_HOB_GUID_H_ diff --git a/EDK/Foundation/Guid/GenericVariable/GenericVariable.c b/EDK/Foundation/Guid/GenericVariable/GenericVariable.c new file mode 100644 index 0000000..9079610 --- /dev/null +++ b/EDK/Foundation/Guid/GenericVariable/GenericVariable.c @@ -0,0 +1,27 @@ +/*++ + +Copyright (c) 2007, Intel Corporation +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. + +Module Name: + + GenericVariable.c + +Abstract: + + The variable space Guid to pair with a Unicode string name to tag an EFI variable + +--*/ + +#include "EfiSpec.h" +#include EFI_GUID_DEFINITION (GenericVariable) + +EFI_GUID gEfiGenericVariableGuid = EFI_GENERIC_VARIABLE_GUID; + +EFI_GUID_STRING(&gEfiGenericVariableGuid, "GenericVariable", "Generic Variable GUID"); diff --git a/EDK/Foundation/Guid/GenericVariable/GenericVariable.h b/EDK/Foundation/Guid/GenericVariable/GenericVariable.h new file mode 100644 index 0000000..416a1a5 --- /dev/null +++ b/EDK/Foundation/Guid/GenericVariable/GenericVariable.h @@ -0,0 +1,32 @@ +/*++ + +Copyright (c) 2007, Intel Corporation +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. + +Module Name: + + GenericVariable.h + +Abstract: + + The variable space Guid to pair with a Unicode string name to tag an EFI variable + +--*/ + +#ifndef _GENERIC_VARIABLE_H_ +#define _GENERIC_VARIABLE_H_ + +#define EFI_GENERIC_VARIABLE_GUID \ + { \ + 0x59d1c24f, 0x50f1, 0x401a, 0xb1, 0x01, 0xf3, 0x3e, 0x0d, 0xae, 0xd4, 0x43 \ + } + +extern EFI_GUID gEfiGenericVariableGuid; + +#endif diff --git a/EDK/Foundation/Guid/HotPlugDevice/HotPlugDevice.c b/EDK/Foundation/Guid/HotPlugDevice/HotPlugDevice.c new file mode 100644 index 0000000..e0df677 --- /dev/null +++ b/EDK/Foundation/Guid/HotPlugDevice/HotPlugDevice.c @@ -0,0 +1,27 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + HotPlugDevice.c + +Abstract: + + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION(HotPlugDevice) + + +EFI_GUID gEfiHotPlugDeviceGuid = HOT_PLUG_DEVICE_GUID; + +EFI_GUID_STRING(&gEfiHotPlugDeviceGuid, "Hot Plug Device Guid", "Hot Plug Device Guid"); diff --git a/EDK/Foundation/Guid/HotPlugDevice/HotPlugDevice.h b/EDK/Foundation/Guid/HotPlugDevice/HotPlugDevice.h new file mode 100644 index 0000000..01e9ce3 --- /dev/null +++ b/EDK/Foundation/Guid/HotPlugDevice/HotPlugDevice.h @@ -0,0 +1,28 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + HotPlugDevice.h + +Abstract: + + +--*/ + +#ifndef _HOT_PLUG_DEVICE_H_ +#define _HOT_PLUG_DEVICE_H_ + +#define HOT_PLUG_DEVICE_GUID \ + { 0x220ac432, 0x1d43, 0x49e5, 0xa7, 0x4f, 0x4c, 0x9d, 0xa6, 0x7a, 0xd2, 0x3b } + +extern EFI_GUID gEfiHotPlugDeviceGuid; +#endif diff --git a/EDK/Foundation/Guid/IoBaseHob/IoBaseHob.c b/EDK/Foundation/Guid/IoBaseHob/IoBaseHob.c new file mode 100644 index 0000000..d34e843 --- /dev/null +++ b/EDK/Foundation/Guid/IoBaseHob/IoBaseHob.c @@ -0,0 +1,29 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + IoBaseHob.c + +Abstract: + + GUIDs used for IoBase HOB entries in the in the HOB list. + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION(IoBaseHob) + + +EFI_GUID gEfiIoBaseHobGuid = EFI_IOBASE_HOB_GUID; + +EFI_GUID_STRING(&gEfiIoBaseHobGuid, "IOBASE HOB", "IOBASE HOB GUID for HOB list."); + diff --git a/EDK/Foundation/Guid/IoBaseHob/IoBaseHob.h b/EDK/Foundation/Guid/IoBaseHob/IoBaseHob.h new file mode 100644 index 0000000..81ef1dc --- /dev/null +++ b/EDK/Foundation/Guid/IoBaseHob/IoBaseHob.h @@ -0,0 +1,30 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + IoBaseHob.h + +Abstract: + + GUID used for IoBase HOB entries in the HOB list. + +--*/ + +#ifndef _IOBASE_GUID_H_ +#define _IOBASE_GUID_H_ + +#define EFI_IOBASE_HOB_GUID \ +{ 0xd4a28a3e, 0xdcf2, 0x43cf, 0xa2, 0xb7, 0xf3, 0x57, 0x2a, 0x7c, 0xab, 0x9 } + +extern EFI_GUID gEfiIoBaseHobGuid; + +#endif diff --git a/EDK/Foundation/Guid/MemoryTypeInformation/MemoryTypeInformation.c b/EDK/Foundation/Guid/MemoryTypeInformation/MemoryTypeInformation.c new file mode 100644 index 0000000..c1a5cb1 --- /dev/null +++ b/EDK/Foundation/Guid/MemoryTypeInformation/MemoryTypeInformation.c @@ -0,0 +1,29 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + MemoryTypeInformation.c + +Abstract: + + GUID used for Memory Type Information entries in the HOB list. + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION(MemoryTypeInformation) + +EFI_GUID gEfiMemoryTypeInformationGuid = EFI_MEMORY_TYPE_INFORMATION_GUID; + +EFI_GUID_STRING(&gEfiMemoryTypeInformationGuid, "Memory Type Information", + "Memory Type Information HOB GUID for HOB list."); + diff --git a/EDK/Foundation/Guid/MemoryTypeInformation/MemoryTypeInformation.h b/EDK/Foundation/Guid/MemoryTypeInformation/MemoryTypeInformation.h new file mode 100644 index 0000000..79f02b0 --- /dev/null +++ b/EDK/Foundation/Guid/MemoryTypeInformation/MemoryTypeInformation.h @@ -0,0 +1,37 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + MemoryTypeInformation.h + +Abstract: + + GUID used for Memory Type Information entries in the HOB list. + +--*/ + +#ifndef _MEMORY_TYPE_INFORMATION_GUID_H_ +#define _MEMORY_TYPE_INFORMATION_GUID_H_ + +#define EFI_MEMORY_TYPE_INFORMATION_GUID \ + { 0x4c19049f,0x4137,0x4dd3,0x9c,0x10,0x8b,0x97,0xa8,0x3f,0xfd,0xfa } + +#define EFI_MEMORY_TYPE_INFORMATION_VARIABLE_NAME L"MemoryTypeInformation" + +extern EFI_GUID gEfiMemoryTypeInformationGuid; + +typedef struct { + UINT32 Type; + UINT32 NumberOfPages; +} EFI_MEMORY_TYPE_INFORMATION; + +#endif diff --git a/EDK/Foundation/Guid/PciExpressBaseAddress/PciExpressBaseAddress.c b/EDK/Foundation/Guid/PciExpressBaseAddress/PciExpressBaseAddress.c new file mode 100644 index 0000000..4e0a95b --- /dev/null +++ b/EDK/Foundation/Guid/PciExpressBaseAddress/PciExpressBaseAddress.c @@ -0,0 +1,28 @@ +/*++ + +Copyright (c) 2006, Intel Corporation +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. + +Module Name: + + PciExpressBaseAddress.c + +Abstract: + + + GUIDs used for PciExpress Base Address + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION (PciExpressBaseAddress) + +EFI_GUID gEfiPciExpressBaseAddressGuid = EFI_PCI_EXPRESS_BASE_ADDRESS_GUID; + +EFI_GUID_STRING(&gEfiPciExpressBaseAddressGuid, "PCI Express Base Address", "PCI Express Base Address GUID"); diff --git a/EDK/Foundation/Guid/PciExpressBaseAddress/PciExpressBaseAddress.h b/EDK/Foundation/Guid/PciExpressBaseAddress/PciExpressBaseAddress.h new file mode 100644 index 0000000..ca0b4b6 --- /dev/null +++ b/EDK/Foundation/Guid/PciExpressBaseAddress/PciExpressBaseAddress.h @@ -0,0 +1,46 @@ +/*++ + +Copyright (c) 2006, Intel Corporation +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. + +Module Name: + + PciExpressBaseAddress.h + +Abstract: + + + GUIDs used for PciExpress Base Address + +--*/ + +#ifndef _EFI_PCI_EXPRESS_BASE_ADDRESS_H_ +#define _EFI_PCI_EXPRESS_BASE_ADDRESS_H_ + +#define EFI_PCI_EXPRESS_BASE_ADDRESS_GUID \ + { \ + 0x3677d529, 0x326f, 0x4603, 0xa9, 0x26, 0xea, 0xac, 0xe0, 0x1d, 0xcb, 0xb0 \ + } + +// +// Following structure defines PCI Express Base Address information. +// This information is platform specific, and built into hob in PEI phase. +// It can be consumed by PEI PCI driver and DXE PCI driver. +// +#pragma pack(1) +typedef struct _EFI_PCI_EXPRESS_BASE_ADDRESS_INFORMATION { + UINT32 HostBridgeNumber; + UINT32 RootBridgeNumber; + UINT64 PciExpressBaseAddress; +} EFI_PCI_EXPRESS_BASE_ADDRESS_INFORMATION; +#pragma pack() + +extern EFI_GUID gEfiPciExpressBaseAddressGuid; + +#endif diff --git a/EDK/Foundation/Guid/PciHotPlugDevice/PciHotplugDevice.c b/EDK/Foundation/Guid/PciHotPlugDevice/PciHotplugDevice.c new file mode 100644 index 0000000..6af4025 --- /dev/null +++ b/EDK/Foundation/Guid/PciHotPlugDevice/PciHotplugDevice.c @@ -0,0 +1,29 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + PciHotplugDevice.c + +Abstract: + + + GUIDs used to indicate the device is Pccard hotplug device + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION(PciHotplugDevice) + + +EFI_GUID gEfiPciHotplugDeviceGuid = EFI_PCI_HOTPLUG_DEVICE_GUID; + +EFI_GUID_STRING(&gEfiPciHotplugDeviceGuid, "PCI Hotplug Device", "PCI Hotplug Device GUID in EFI System Table"); diff --git a/EDK/Foundation/Guid/PciHotPlugDevice/PciHotplugDevice.h b/EDK/Foundation/Guid/PciHotPlugDevice/PciHotplugDevice.h new file mode 100644 index 0000000..f036696 --- /dev/null +++ b/EDK/Foundation/Guid/PciHotPlugDevice/PciHotplugDevice.h @@ -0,0 +1,30 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + PciHotplugDevice.h + +Abstract: + + GUIDs used to indicate the device is Pccard hotplug device + +--*/ + +#ifndef _PCI_HOTPLUG_DEVICE_GUID_H_ +#define _PCI_HOTPLUG_DEVICE_GUID_H_ + +#define EFI_PCI_HOTPLUG_DEVICE_GUID \ + { 0x0b280816, 0x52e7, 0x4e51, 0xaa, 0x57, 0x11, 0xbd, 0x41, 0xcb, 0xef, 0xc3 } + +extern EFI_GUID gEfiPciHotplugDeviceGuid; + +#endif diff --git a/EDK/Foundation/Guid/PciOptionRomTable/PciOptionRomTable.c b/EDK/Foundation/Guid/PciOptionRomTable/PciOptionRomTable.c new file mode 100644 index 0000000..72f7063 --- /dev/null +++ b/EDK/Foundation/Guid/PciOptionRomTable/PciOptionRomTable.c @@ -0,0 +1,27 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + PciOptionRomTable.c + +Abstract: + + GUID and data structure used to describe the list of PCI Option ROMs present in a system. + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION(PciOptionRomTable) + +EFI_GUID gEfiPciOptionRomTableGuid = EFI_PCI_OPTION_ROM_TABLE_GUID; + +EFI_GUID_STRING(&gEfiPciOptionRomTableGuid, "PCI Option ROM Table", "PCI Option ROM Table GUID in EFI System Table"); diff --git a/EDK/Foundation/Guid/PciOptionRomTable/PciOptionRomTable.h b/EDK/Foundation/Guid/PciOptionRomTable/PciOptionRomTable.h new file mode 100644 index 0000000..81f1816 --- /dev/null +++ b/EDK/Foundation/Guid/PciOptionRomTable/PciOptionRomTable.h @@ -0,0 +1,48 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + PciOptionRomTable.h + +Abstract: + + GUID and data structure used to describe the list of PCI Option ROMs present in a system. + +--*/ + +#ifndef _PCI_OPTION_ROM_TABLE_GUID_H_ +#define _PCI_OPTION_ROM_TABLE_GUID_H_ //;;## ...AMI_OVERRIDE... fixed Build error. + + +#define EFI_PCI_OPTION_ROM_TABLE_GUID \ + { 0x7462660f, 0x1cbd, 0x48da, 0xad, 0x11, 0x91, 0x71, 0x79, 0x13, 0x83, 0x1c } + +extern EFI_GUID gEfiPciOptionRomTableGuid; + +typedef struct { + EFI_PHYSICAL_ADDRESS RomAddress; + EFI_MEMORY_TYPE MemoryType; + UINT32 RomLength; + UINT32 Seg; + UINT8 Bus; + UINT8 Dev; + UINT8 Func; + BOOLEAN ExecutedLegacyBiosImage; + BOOLEAN DontLoadEfiRom; +} EFI_PCI_OPTION_ROM_DESCRIPTOR; + +typedef struct { + UINT64 PciOptionRomCount; + EFI_PCI_OPTION_ROM_DESCRIPTOR *PciOptionRomDescriptors; +} EFI_PCI_OPTION_ROM_TABLE; + +#endif diff --git a/EDK/Foundation/Guid/PeiFlushInstructionCache/PeiFlushInstructionCache.c b/EDK/Foundation/Guid/PeiFlushInstructionCache/PeiFlushInstructionCache.c new file mode 100644 index 0000000..da9dd92 --- /dev/null +++ b/EDK/Foundation/Guid/PeiFlushInstructionCache/PeiFlushInstructionCache.c @@ -0,0 +1,29 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + PeiFlushInstructionCache.c + +Abstract: + + GUID for the Instruction Cache Flushing APIs shared between PEI and DXE + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION(PeiFlushInstructionCache) + +EFI_GUID gEfiPeiFlushInstructionCacheGuid = EFI_PEI_FLUSH_INSTRUCTION_CACHE_GUID; + +EFI_GUID_STRING(&gEfiPeiFlushInstructionCacheGuid, "PEI Flush Instruction Cache", + "Flush Instruction Cache APIs from PEI"); + diff --git a/EDK/Foundation/Guid/PeiFlushInstructionCache/PeiFlushInstructionCache.h b/EDK/Foundation/Guid/PeiFlushInstructionCache/PeiFlushInstructionCache.h new file mode 100644 index 0000000..a9d1308 --- /dev/null +++ b/EDK/Foundation/Guid/PeiFlushInstructionCache/PeiFlushInstructionCache.h @@ -0,0 +1,44 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + PeiFlushInstructionCache.h + +Abstract: + + GUID for the Instruction Cache Flushing APIs shared between PEI and DXE + +--*/ + +#ifndef _PEI_FLUSH_INSTRUCTION_CACHE_GUID_H_ +#define _PEI_FLUSH_INSTRUCTION_CACHE_GUID_H_ + +#define EFI_PEI_FLUSH_INSTRUCTION_CACHE_GUID \ + { 0xd8117cfc, 0x94a6, 0x11d4, 0x9a, 0x3a, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } + +EFI_FORWARD_DECLARATION (EFI_PEI_FLUSH_INSTRUCTION_CACHE_PROTOCOL); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_FLUSH_INSTRUCTION_CACHE_FLUSH) ( + IN EFI_PEI_FLUSH_INSTRUCTION_CACHE_PROTOCOL *This, + IN EFI_PHYSICAL_ADDRESS Start, + IN UINT64 Length + ); + +typedef struct _EFI_PEI_FLUSH_INSTRUCTION_CACHE_PROTOCOL { + EFI_PEI_FLUSH_INSTRUCTION_CACHE_FLUSH Flush; +} EFI_PEI_FLUSH_INSTRUCTION_CACHE_PROTOCOL; + +extern EFI_GUID gEfiPeiFlushInstructionCacheGuid; + +#endif diff --git a/EDK/Foundation/Guid/PeiPeCoffLoader/PeiPeCoffLoader.c b/EDK/Foundation/Guid/PeiPeCoffLoader/PeiPeCoffLoader.c new file mode 100644 index 0000000..3777dbf --- /dev/null +++ b/EDK/Foundation/Guid/PeiPeCoffLoader/PeiPeCoffLoader.c @@ -0,0 +1,28 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + PeiPeCoffLoader.c + +Abstract: + + GUID for the PE/COFF Loader APIs shared between PEI and DXE + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION(PeiPeCoffLoader) + +EFI_GUID gEfiPeiPeCoffLoaderGuid = EFI_PEI_PE_COFF_LOADER_GUID; + +EFI_GUID_STRING(&gEfiPeiPeCoffLoaderGuid, "PE/COFF Loader", "PE/COFF Loader APIs from PEI"); + diff --git a/EDK/Foundation/Guid/PeiPeCoffLoader/PeiPeCoffLoader.h b/EDK/Foundation/Guid/PeiPeCoffLoader/PeiPeCoffLoader.h new file mode 100644 index 0000000..7c2010f --- /dev/null +++ b/EDK/Foundation/Guid/PeiPeCoffLoader/PeiPeCoffLoader.h @@ -0,0 +1,119 @@ +/*++ + +Copyright (c) 2005 - 2008, Intel Corporation +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. + +Module Name: + + PeiPeCoffLoader.h + +Abstract: + + GUID for the PE/COFF Loader APIs shared between PEI and DXE + +--*/ + +#ifndef _PEI_PE_COFF_LOADER_H_ +#define _PEI_PE_COFF_LOADER_H_ + +#include "EfiImage.h" + +#define EFI_PEI_PE_COFF_LOADER_GUID \ + { 0xd8117cff, 0x94a6, 0x11d4, 0x9a, 0x3a, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } + +EFI_FORWARD_DECLARATION (EFI_PEI_PE_COFF_LOADER_PROTOCOL); + +#define EFI_IMAGE_ERROR_SUCCESS 0 +#define EFI_IMAGE_ERROR_IMAGE_READ 1 +#define EFI_IMAGE_ERROR_INVALID_PE_HEADER_SIGNATURE 2 +#define EFI_IMAGE_ERROR_INVALID_MACHINE_TYPE 3 +#define EFI_IMAGE_ERROR_INVALID_SUBSYSTEM 4 +#define EFI_IMAGE_ERROR_INVALID_IMAGE_ADDRESS 5 +#define EFI_IMAGE_ERROR_INVALID_IMAGE_SIZE 6 +#define EFI_IMAGE_ERROR_INVALID_SECTION_ALIGNMENT 7 +#define EFI_IMAGE_ERROR_SECTION_NOT_LOADED 8 +#define EFI_IMAGE_ERROR_FAILED_RELOCATION 9 +#define EFI_IMAGE_ERROR_FAILED_ICACHE_FLUSH 10 + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_PE_COFF_LOADER_READ_FILE) ( + IN VOID *FileHandle, + IN UINTN FileOffset, + IN OUT UINTN *ReadSize, + OUT VOID *Buffer + ); + +typedef struct { + EFI_PHYSICAL_ADDRESS ImageAddress; + UINT64 ImageSize; + EFI_PHYSICAL_ADDRESS DestinationAddress; + EFI_PHYSICAL_ADDRESS EntryPoint; + EFI_PEI_PE_COFF_LOADER_READ_FILE ImageRead; + VOID *Handle; + VOID *FixupData; + UINT32 SectionAlignment; + UINT32 PeCoffHeaderOffset; + UINT32 DebugDirectoryEntryRva; + VOID *CodeView; + CHAR8 *PdbPointer; + UINTN SizeOfHeaders; + UINT32 ImageCodeMemoryType; + UINT32 ImageDataMemoryType; + UINT32 ImageError; + UINTN FixupDataSize; + UINT16 Machine; + UINT16 ImageType; + BOOLEAN RelocationsStripped; + BOOLEAN IsTeImage; +#ifdef EFI_NT_EMULATOR + VOID **ModHandle; +#endif +#if (EFI_SPECIFICATION_VERSION >= 0x0002000A) + EFI_PHYSICAL_ADDRESS HiiResourceData; +#endif +} EFI_PEI_PE_COFF_LOADER_IMAGE_CONTEXT; + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_PE_COFF_LOADER_GET_IMAGE_INFO) ( + IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This, + IN OUT EFI_PEI_PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_PE_COFF_LOADER_LOAD_IMAGE) ( + IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This, + IN OUT EFI_PEI_PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_PE_COFF_LOADER_RELOCATE_IMAGE) ( + IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This, + IN OUT EFI_PEI_PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_PE_COFF_LOADER_UNLOAD_IMAGE) ( + IN EFI_PEI_PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext + ); + +typedef struct _EFI_PEI_PE_COFF_LOADER_PROTOCOL { + EFI_PEI_PE_COFF_LOADER_GET_IMAGE_INFO GetImageInfo; + EFI_PEI_PE_COFF_LOADER_LOAD_IMAGE LoadImage; + EFI_PEI_PE_COFF_LOADER_RELOCATE_IMAGE RelocateImage; + EFI_PEI_PE_COFF_LOADER_UNLOAD_IMAGE UnloadImage; +} EFI_PEI_PE_COFF_LOADER_PROTOCOL; + +extern EFI_GUID gEfiPeiPeCoffLoaderGuid; + +#endif diff --git a/EDK/Foundation/Guid/PeiPerformanceHob/PeiPerformanceHob.c b/EDK/Foundation/Guid/PeiPerformanceHob/PeiPerformanceHob.c new file mode 100644 index 0000000..9a0d18c --- /dev/null +++ b/EDK/Foundation/Guid/PeiPerformanceHob/PeiPerformanceHob.c @@ -0,0 +1,28 @@ +/*++ + +Copyright (c) 2004 - 2011, Intel Corporation +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. + +Module Name: + + PeiPerformanceHob.c + +Abstract: + + The GUID of the GUIDed HOB that represents the Pei Firmware Performance Hob. + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION (PeiPerformanceHob) + +EFI_GUID gPeiFirmwarePerformanceGuid = PEI_FIRMWARE_PERFORMANCE_GUID; + +EFI_GUID_STRING (&gPeiFirmwarePerformanceGuid, "PEI Firmware Performance HOB", + "Guid for PEI Firmware Performance HOB"); diff --git a/EDK/Foundation/Guid/PeiPerformanceHob/PeiPerformanceHob.h b/EDK/Foundation/Guid/PeiPerformanceHob/PeiPerformanceHob.h new file mode 100644 index 0000000..f98f35e --- /dev/null +++ b/EDK/Foundation/Guid/PeiPerformanceHob/PeiPerformanceHob.h @@ -0,0 +1,55 @@ +/*++ + +Copyright (c) 2004 - 2012, Intel Corporation +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. + +Module Name: + + PeiPerformanceHob.h + +Abstract: + The PEI Firmware performance HOB definition. + +--*/ + +#ifndef _PEI_PERFORMANCE_HOB_GUID_H_ +#define _PEI_PERFORMANCE_HOB_GUID_H_ + +#define PEI_FIRMWARE_PERFORMANCE_GUID \ + { \ + 0x55765e8f, 0x21a, 0x41f9, 0x93, 0x2d, 0x4c, 0x49, 0xc5, 0xb7, 0xef, 0x5d \ + } + +#pragma pack(push, 1) +typedef struct _PEI_GUID_EVENT_REC { + UINT16 ProgressID; + EFI_GUID Guid; + UINT32 ApicID; + UINT64 Timestamp; +} PEI_GUID_EVENT_REC; +#pragma pack(pop) + +typedef struct { + UINT32 NumberOfEntries; + UINT32 Reserved; + PEI_GUID_EVENT_REC GuidEventRecord[1]; +} PEI_FIRMWARE_PERFORMANCE_HOB; + +#define PEIM_START_ID 0x1 +#define PEIM_END_ID 0x2 +#define PREMEM_START_ID 0x20 +#define PREMEM_END_ID 0x21 +#define DISMEM_START_ID 0x30 +#define DISMEM_END_ID 0x31 +#define POSTMEM_START_ID 0x40 +#define POSTMEM_END_ID 0x41 + +extern EFI_GUID gPeiFirmwarePerformanceGuid; + +#endif
\ No newline at end of file diff --git a/EDK/Foundation/Guid/PeiTransferControl/PeiTransferControl.c b/EDK/Foundation/Guid/PeiTransferControl/PeiTransferControl.c new file mode 100644 index 0000000..06662bf --- /dev/null +++ b/EDK/Foundation/Guid/PeiTransferControl/PeiTransferControl.c @@ -0,0 +1,28 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + PeiTransferControl.c + +Abstract: + + GUID for the SetJump()/LongJump() APIs shared between PEI and DXE + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION(PeiTransferControl) + +EFI_GUID gEfiPeiTransferControlGuid = EFI_PEI_TRANSFER_CONTROL_GUID; + +EFI_GUID_STRING(&gEfiPeiTransferControlGuid, "Transfer Control", "Transfer Control APIs from PEI"); + diff --git a/EDK/Foundation/Guid/PeiTransferControl/PeiTransferControl.h b/EDK/Foundation/Guid/PeiTransferControl/PeiTransferControl.h new file mode 100644 index 0000000..fbf5c35 --- /dev/null +++ b/EDK/Foundation/Guid/PeiTransferControl/PeiTransferControl.h @@ -0,0 +1,53 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + PeiTransferControl.h + +Abstract: + + GUID for the SetJump()/LongJump() APIs shared between PEI and DXE + +--*/ + +#ifndef _PEI_TRANSFER_CONTROL_H_ +#define _PEI_TRANSFER_CONTROL_H_ + +#define EFI_PEI_TRANSFER_CONTROL_GUID \ + { 0xd8117d02, 0x94a6, 0x11d4, 0x9a, 0x3a, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } + + +EFI_FORWARD_DECLARATION (EFI_PEI_TRANSFER_CONTROL_PROTOCOL); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_TRANSFER_CONTROL_SET_JUMP) ( + IN EFI_PEI_TRANSFER_CONTROL_PROTOCOL *This, + OUT VOID *Context + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_TRANSFER_CONTROL_LONG_JUMP) ( + IN EFI_PEI_TRANSFER_CONTROL_PROTOCOL *This, + IN VOID *Context + ); + +typedef struct _EFI_PEI_TRANSFER_CONTROL_PROTOCOL { + EFI_PEI_TRANSFER_CONTROL_LONG_JUMP SetJump; + EFI_PEI_TRANSFER_CONTROL_LONG_JUMP LongJump; + UINT32 JumpContextSize; +} EFI_PEI_TRANSFER_CONTROL_PROTOCOL; + +extern EFI_GUID gEfiPeiTransferControlGuid; + +#endif diff --git a/EDK/Foundation/Guid/PrimaryConsoleInDevice/PrimaryConsoleInDevice.c b/EDK/Foundation/Guid/PrimaryConsoleInDevice/PrimaryConsoleInDevice.c new file mode 100644 index 0000000..a85cf80 --- /dev/null +++ b/EDK/Foundation/Guid/PrimaryConsoleInDevice/PrimaryConsoleInDevice.c @@ -0,0 +1,28 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + PrimaryConsoleInDevice.c + +Abstract: + + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION(PrimaryConsoleInDevice) + + +EFI_GUID gEfiPrimaryConsoleInDeviceGuid = EFI_PRIMARY_CONSOLE_IN_DEVICE_GUID; + +EFI_GUID_STRING(&gEfiPrimaryConsoleInDeviceGuid, "Primary Console In Device Guid", + "EFI Primary Conosle In Device Guid"); diff --git a/EDK/Foundation/Guid/PrimaryConsoleInDevice/PrimaryConsoleInDevice.h b/EDK/Foundation/Guid/PrimaryConsoleInDevice/PrimaryConsoleInDevice.h new file mode 100644 index 0000000..1793080 --- /dev/null +++ b/EDK/Foundation/Guid/PrimaryConsoleInDevice/PrimaryConsoleInDevice.h @@ -0,0 +1,29 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + PrimaryConsoleInDevice.h + +Abstract: + + +--*/ + +#ifndef _PRIMARY_CONSOLE_IN_DEVICE_H_ +#define _PRIMARY_CONSOLE_IN_DEVICE_H_ + +#define EFI_PRIMARY_CONSOLE_IN_DEVICE_GUID \ + { 0xe451dcbe, 0x96a1, 0x4729, 0xa5, 0xcf, 0x6b, 0x9c, 0x2c, 0xff, 0x47, 0xfd } + +extern EFI_GUID gEfiPrimaryConsoleInDeviceGuid; + +#endif diff --git a/EDK/Foundation/Guid/PrimaryConsoleOutDevice/PrimaryConsoleOutDevice.c b/EDK/Foundation/Guid/PrimaryConsoleOutDevice/PrimaryConsoleOutDevice.c new file mode 100644 index 0000000..15dc463 --- /dev/null +++ b/EDK/Foundation/Guid/PrimaryConsoleOutDevice/PrimaryConsoleOutDevice.c @@ -0,0 +1,26 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + PrimaryConsoleOutDevice.c + +Abstract: + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION(PrimaryConsoleOutDevice) + +EFI_GUID gEfiPrimaryConsoleOutDeviceGuid = EFI_PRIMARY_CONSOLE_OUT_DEVICE_GUID; + +EFI_GUID_STRING(&gEfiPrimaryConsoleOutDeviceGuid, "Primary Console Out Device Guid", + "EFI Primary Console Out Device Guid"); diff --git a/EDK/Foundation/Guid/PrimaryConsoleOutDevice/PrimaryConsoleOutDevice.h b/EDK/Foundation/Guid/PrimaryConsoleOutDevice/PrimaryConsoleOutDevice.h new file mode 100644 index 0000000..df776d9 --- /dev/null +++ b/EDK/Foundation/Guid/PrimaryConsoleOutDevice/PrimaryConsoleOutDevice.h @@ -0,0 +1,28 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + PrimaryConsoleOutDevice.h + +Abstract: + +--*/ + +#ifndef _PRIMARY_CONSOLE_OUT_DEVICE_H_ +#define _PRIMARY_CONSOLE_OUT_DEVICE_H_ + +#define EFI_PRIMARY_CONSOLE_OUT_DEVICE_GUID \ + { 0x62bdf38a, 0xe3d5, 0x492c, 0x95, 0xc, 0x23, 0xa7, 0xf6, 0x6e, 0x67, 0x2e } + +extern EFI_GUID gEfiPrimaryConsoleOutDeviceGuid; + +#endif diff --git a/EDK/Foundation/Guid/PrimaryStandardErrorDevice/PrimaryStandardErrorDevice.c b/EDK/Foundation/Guid/PrimaryStandardErrorDevice/PrimaryStandardErrorDevice.c new file mode 100644 index 0000000..f84e528 --- /dev/null +++ b/EDK/Foundation/Guid/PrimaryStandardErrorDevice/PrimaryStandardErrorDevice.c @@ -0,0 +1,26 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + PrimaryStandardErrorDevice.c + +Abstract: + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION(PrimaryStandardErrorDevice) + +EFI_GUID gEfiPrimaryStandardErrorDeviceGuid = EFI_PRIMARY_STANDARD_ERROR_DEVICE_GUID; + +EFI_GUID_STRING(&gEfiPrimaryStandardErrorDeviceGuid, "Primary Standard Error Device Guid", + "EFI Primary Standard Error Device Guid"); diff --git a/EDK/Foundation/Guid/PrimaryStandardErrorDevice/PrimaryStandardErrorDevice.h b/EDK/Foundation/Guid/PrimaryStandardErrorDevice/PrimaryStandardErrorDevice.h new file mode 100644 index 0000000..1984c36 --- /dev/null +++ b/EDK/Foundation/Guid/PrimaryStandardErrorDevice/PrimaryStandardErrorDevice.h @@ -0,0 +1,28 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + PrimaryStandardErrorDevice.h + +Abstract: + +--*/ + +#ifndef _PRIMARY_STANDARD_ERROR_DEVICE_H_ +#define _PRIMARY_STANDARD_ERROR_DEVICE_H_ + +#define EFI_PRIMARY_STANDARD_ERROR_DEVICE_GUID \ + { 0x5a68191b, 0x9b97, 0x4752, 0x99, 0x46, 0xe3, 0x6a, 0x5d, 0xa9, 0x42, 0xb1 } + +extern EFI_GUID gEfiPrimaryStandardErrorDeviceGuid; + +#endif diff --git a/EDK/Foundation/Guid/StandardErrorDevice/StandardErrorDevice.c b/EDK/Foundation/Guid/StandardErrorDevice/StandardErrorDevice.c new file mode 100644 index 0000000..f10828d --- /dev/null +++ b/EDK/Foundation/Guid/StandardErrorDevice/StandardErrorDevice.c @@ -0,0 +1,27 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + StandardErrorDevice.c + +Abstract: + + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION(StandardErrorDevice) + + +EFI_GUID gEfiStandardErrorDeviceGuid = EFI_STANDARD_ERROR_DEVICE_GUID; + +EFI_GUID_STRING(&gEfiStandardErrorDeviceGuid, "Standard Error Device Guid", "EFI Standard Error Device Guid"); diff --git a/EDK/Foundation/Guid/StandardErrorDevice/StandardErrorDevice.h b/EDK/Foundation/Guid/StandardErrorDevice/StandardErrorDevice.h new file mode 100644 index 0000000..35f3278 --- /dev/null +++ b/EDK/Foundation/Guid/StandardErrorDevice/StandardErrorDevice.h @@ -0,0 +1,29 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + StandardErrorDevice.h + +Abstract: + + +--*/ + +#ifndef _STANDARD_ERROR_DEVICE_H_ +#define _STANDARD_ERROR_DEVICE_H_ + +#define EFI_STANDARD_ERROR_DEVICE_GUID \ + { 0xd3b36f2d, 0xd551, 0x11d4, 0x9a, 0x46, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } + +extern EFI_GUID gEfiStandardErrorDeviceGuid; + +#endif diff --git a/EDK/Foundation/Guid/StatusCode/StatusCode.c b/EDK/Foundation/Guid/StatusCode/StatusCode.c new file mode 100644 index 0000000..bc2f48c --- /dev/null +++ b/EDK/Foundation/Guid/StatusCode/StatusCode.c @@ -0,0 +1,28 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + StatusCode.c + +Abstract: + + GUIDs used to identify Data Hub records that originate from the Tiano + ReportStatusCode API. + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION (StatusCode) + +EFI_GUID gEfiStatusCodeGuid = EFI_STATUS_CODE_GUID; + +EFI_GUID_STRING(&gEfiStatusCodeGuid, "Status Code", "Data Hub record for Tiano ReportStatusCode API"); diff --git a/EDK/Foundation/Guid/StatusCode/StatusCode.h b/EDK/Foundation/Guid/StatusCode/StatusCode.h new file mode 100644 index 0000000..e3da307 --- /dev/null +++ b/EDK/Foundation/Guid/StatusCode/StatusCode.h @@ -0,0 +1,33 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + StatusCode.h + +Abstract: + + GUID used to identify Data Hub records that originate from the Tiano + ReportStatusCode API. + +--*/ + +#ifndef _STATUS_CODE_H__ +#define _STATUS_CODE_H__ + +#define EFI_STATUS_CODE_GUID \ + { \ + 0xd083e94c, 0x6560, 0x42e4, 0xb6, 0xd4, 0x2d, 0xf7, 0x5a, 0xdf, 0x6a, 0x2a \ + } + +extern EFI_GUID gEfiStatusCodeGuid; + +#endif diff --git a/EDK/Foundation/Guid/StatusCodeCallerId/StatusCodeCallerId.c b/EDK/Foundation/Guid/StatusCodeCallerId/StatusCodeCallerId.c new file mode 100644 index 0000000..ae03aac --- /dev/null +++ b/EDK/Foundation/Guid/StatusCodeCallerId/StatusCodeCallerId.c @@ -0,0 +1,27 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + StatusCodeCallerId.c + +Abstract: + + GUID used to identify id for the caller who is initiating the Status Code. + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION (StatusCodeCallerId) + +EFI_GUID gEfiCallerIdGuid = EFI_STANDARD_CALLER_ID_GUID; + +EFI_GUID_STRING(&gEfiCallerIdGuid, "Status Code Caller Id", "Caller Id for Tiano ReportStatusCode API"); diff --git a/EDK/Foundation/Guid/StatusCodeCallerId/StatusCodeCallerId.h b/EDK/Foundation/Guid/StatusCodeCallerId/StatusCodeCallerId.h new file mode 100644 index 0000000..2af50b4 --- /dev/null +++ b/EDK/Foundation/Guid/StatusCodeCallerId/StatusCodeCallerId.h @@ -0,0 +1,37 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + StatusCodeCallerId.h + +Abstract: + + GUID used to identify id for the caller who is initiating the Status Code. + +--*/ + +#ifndef _STATUS_CODE_CALLER_ID_H__ +#define _STATUS_CODE_CALLER_ID_H__ + +#include "EfiStatusCode.h" + +#ifndef EFI_STANDARD_CALLER_ID_GUID + +#define EFI_STANDARD_CALLER_ID_GUID \ + {0xC9DCF469, 0xA7C4, 0x11D5, 0x87, 0xDA, 0x00, 0x06, 0x29, 0x45, 0xC3, 0xB9} + +#endif + +extern EFI_GUID gEfiCallerIdGuid; + + +#endif diff --git a/EDK/Foundation/Guid/SystemNvDataGuid/SystemNvDataGuid.c b/EDK/Foundation/Guid/SystemNvDataGuid/SystemNvDataGuid.c new file mode 100644 index 0000000..43140a6 --- /dev/null +++ b/EDK/Foundation/Guid/SystemNvDataGuid/SystemNvDataGuid.c @@ -0,0 +1,32 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + SystemNvDataGuid.c + +Abstract: + + GUIDs used for System Non Volatile HOB entries in the in the HOB list and FV Guids carrying + the System specific information. + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION(SystemNvDataGuid) + + +EFI_GUID gEfiSystemNvDataHobGuid = EFI_SYSTEM_NV_DATA_HOB_GUID; +EFI_GUID gEfiSystemNvDataFvGuid = EFI_SYSTEM_NV_DATA_FV_GUID; + +EFI_GUID_STRING(&gEfiSystemNvDataHobGuid, "SYSTEM NV DATA HOB", "SYSTEM NV DATA HOB GUID for HOB list."); +EFI_GUID_STRING(&gEfiSystemNvDataFvGuid, "SYSTEM NV DATA FV", "SYSTEM NV DATA FV GUID"); + diff --git a/EDK/Foundation/Guid/SystemNvDataGuid/SystemNvDataGuid.h b/EDK/Foundation/Guid/SystemNvDataGuid/SystemNvDataGuid.h new file mode 100644 index 0000000..f7550bb --- /dev/null +++ b/EDK/Foundation/Guid/SystemNvDataGuid/SystemNvDataGuid.h @@ -0,0 +1,45 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +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. + +Module Name: + + SystemNvDataGuid.h + +Abstract: + + GUIDs used for System Non Volatile HOB entries in the in the HOB list and FV Guids carrying + the System specific information. + +--*/ + +#ifndef _SYSTEM_NV_DATA_GUID_H_ +#define _SYSTEM_NV_DATA_GUID_H_ + +#define EFI_SYSTEM_NV_DATA_FV_GUID \ + {0xfff12b8d, 0x7696, 0x4c8b, 0xa9, 0x85, 0x27, 0x47, 0x7, 0x5b, 0x4f, 0x50} + +#define EFI_SYSTEM_NV_DATA_HOB_GUID \ + {0xd6e5092d, 0xc7b2, 0x4872, 0xaf, 0x66, 0xfd, 0xc0, 0xe6, 0xf9, 0x5e, 0x78} + +typedef struct { + EFI_GUID SystemNvDataHobGuid; + EFI_GUID SystemNvDataFvGuid; + EFI_LBA StartLba; + UINTN StartLbaOffset; + EFI_LBA EndLba; + UINTN EndLbaOffset; + UINT32 DataTypeSignature; +} NV_SYSTEM_DATA_GUID_TYPE; + +extern EFI_GUID gEfiSystemNvDataHobGuid; +extern EFI_GUID gEfiSystemNvDataFvGuid; + +#endif |