Code scrube for MdeModule Definitions.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5428 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4 2008-07-08 13:29:42 +00:00
parent 78c2ffb5a7
commit 5f597758e2
56 changed files with 549 additions and 933 deletions

View File

@ -45,7 +45,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Guid/DxeServices.h> #include <Guid/DxeServices.h>
#include <Guid/MemoryAllocationHob.h> #include <Guid/MemoryAllocationHob.h>
#include <Protocol/StatusCode.h> #include <Protocol/StatusCode.h>
#include <Protocol/CustomizedDecompress.h>
#include <Protocol/Decompress.h> #include <Protocol/Decompress.h>
#include <Protocol/LoadPe32Image.h> #include <Protocol/LoadPe32Image.h>
#include <Protocol/FirmwareVolumeDispatch.h> #include <Protocol/FirmwareVolumeDispatch.h>
@ -53,7 +52,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Protocol/Ebc.h> #include <Protocol/Ebc.h>
#include <Guid/EventLegacyBios.h> #include <Guid/EventLegacyBios.h>
#include <Protocol/Reset.h> #include <Protocol/Reset.h>
#include <Protocol/EdkDecompress.h>
#include <Protocol/Cpu.h> #include <Protocol/Cpu.h>
#include <Guid/EventGroup.h> #include <Guid/EventGroup.h>
#include <Protocol/Metronome.h> #include <Protocol/Metronome.h>

View File

@ -106,8 +106,6 @@
[Protocols] [Protocols]
gEfiStatusCodeRuntimeProtocolGuid # PROTOCOL SOMETIMES_CONSUMED gEfiStatusCodeRuntimeProtocolGuid # PROTOCOL SOMETIMES_CONSUMED
gEfiCapsuleArchProtocolGuid # PROTOCOL ALWAYS_CONSUMED gEfiCapsuleArchProtocolGuid # PROTOCOL ALWAYS_CONSUMED
gEfiTianoDecompressProtocolGuid # PROTOCOL ALWAYS_CONSUMED
gEfiCustomizedDecompressProtocolGuid # PROTOCOL ALWAYS_CONSUMED
gEfiDecompressProtocolGuid # PROTOCOL ALWAYS_CONSUMED gEfiDecompressProtocolGuid # PROTOCOL ALWAYS_CONSUMED
gEfiLoadPeImageProtocolGuid # PROTOCOL ALWAYS_PRODUCED gEfiLoadPeImageProtocolGuid # PROTOCOL ALWAYS_PRODUCED
gEfiSimpleFileSystemProtocolGuid # PROTOCOL ALWAYS_CONSUMED gEfiSimpleFileSystemProtocolGuid # PROTOCOL ALWAYS_CONSUMED

View File

@ -18,10 +18,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <PiPei.h> #include <PiPei.h>
#include <Ppi/DxeIpl.h> #include <Ppi/DxeIpl.h>
#include <Protocol/EdkDecompress.h>
#include <Ppi/EndOfPeiPhase.h> #include <Ppi/EndOfPeiPhase.h>
#include <Protocol/CustomizedDecompress.h>
#include <Protocol/Decompress.h>
#include <Ppi/MemoryDiscovered.h> #include <Ppi/MemoryDiscovered.h>
#include <Ppi/ReadOnlyVariable2.h> #include <Ppi/ReadOnlyVariable2.h>
#include <Guid/MemoryTypeInformation.h> #include <Guid/MemoryTypeInformation.h>

View File

@ -1,6 +1,7 @@
/** @file /** @file
Tiano Guid used to define the Alternate Firmware Volume Block Guid. This file defines the Alternate Firmware Volume Block Guid, which is
used to specify that the additional FVB protocol is installed into FVB handle.
Copyright (c) 2006 - 2008, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials

View File

@ -1,6 +1,6 @@
/** @file /** @file
This file defines header data structures for BMP file and default This file defines header data structures for BMP file and default
BMP file GUID. GUID for BMP logo file.
Copyright (c) 2006 - 2008, Intel Corporation. <BR> Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials

View File

@ -1,6 +1,7 @@
/** @file /** @file
Capsule update Guid definitions for capsule varialbe and capsule hob. This file defines capsule update guid, capsule variable name and
capsule guid hob data strucutre, which are required by capsule update feature.
Copyright (c) 2006 - 2008, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
@ -17,7 +18,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#define __EFI_CAPSULE_VENDOR_GUID_H__ #define __EFI_CAPSULE_VENDOR_GUID_H__
// //
// Note -- This guid is used as a vendor GUID (depending on implementation) // Note -- This guid is used as a variable GUID (depending on implementation)
// for the capsule variable if the capsule pointer is passes through reset // for the capsule variable if the capsule pointer is passes through reset
// via a variable. // via a variable.
// //

View File

@ -1,6 +1,9 @@
/*++ /** @file
This guid is used to specifiy the device is the console in device.
If the device is the console in device, this guid as the protocol guid
will be installed into this device handle.
Copyright (c) 2006 - 2007, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -9,14 +12,7 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: **/
ConsoleInDevice.h
Abstract:
--*/
#ifndef __CONSOLE_IN_DEVICE_H__ #ifndef __CONSOLE_IN_DEVICE_H__
#define __CONSOLE_IN_DEVICE_H__ #define __CONSOLE_IN_DEVICE_H__

View File

@ -1,6 +1,9 @@
/*++ /** @file
This guid is used to specifiy the device is the console out device.
If the device is the console out device, this guid as the protocol guid
will be installed into this device handle.
Copyright (c) 2006 - 2007, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -9,14 +12,7 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: **/
ConsoleOutDevice.h
Abstract:
--*/
#ifndef __CONSOLE_OUT_DEVICE_H__ #ifndef __CONSOLE_OUT_DEVICE_H__
#define __CONSOLE_OUT_DEVICE_H__ #define __CONSOLE_OUT_DEVICE_H__

View File

@ -1,5 +1,7 @@
/** @file /** @file
The variable space Guid to pair with a Unicode string name to tag an EFI variable. This file defines the genenic platform guid for EFI variable.
Common drivers can use this generic guid with its variable name to specify
its EFI variable without defining another new guid.
Copyright (c) 2006 - 2008, Intel Corporation. <BR> Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
@ -15,6 +17,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#ifndef __GENERIC_PLATFORM_VARIABLE_H__ #ifndef __GENERIC_PLATFORM_VARIABLE_H__
#define __GENERIC_PLATFORM_VARIABLE_H__ #define __GENERIC_PLATFORM_VARIABLE_H__
#define EFI_GENERIC_PLATFORM_VARIABLE_GUID \
{ 0x59d1c24f, 0x50f1, 0x401a, { 0xb1, 0x01, 0xf3, 0x3e, 0x0d, 0xae, 0xd4, 0x43 }}
extern EFI_GUID gEfiGenericPlatformVariableGuid; extern EFI_GUID gEfiGenericPlatformVariableGuid;
#endif #endif

View File

@ -1,6 +1,9 @@
/*++ /** @file
This guid is used to specifiy the device is the hot plug device.
If the device is the hot plug device, this guid as the protocol guid
will be installed into this device handle.
Copyright (c) 2006, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -9,14 +12,7 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: **/
HotPlugDevice.h
Abstract:
--*/
#ifndef __HOT_PLUG_DEVICE_H__ #ifndef __HOT_PLUG_DEVICE_H__
#define __HOT_PLUG_DEVICE_H__ #define __HOT_PLUG_DEVICE_H__

View File

@ -1,5 +1,6 @@
/** @file /** @file
GUID used for Memory Type Information entries in the HOB list. This file defines the memory type information guid, variable name and guid hob structure.
This guid is used for Memory Type Information entries in the HOB list and EFI variable.
Copyright (c) 2006 - 2008, Intel Corporation. <BR> Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials

View File

@ -1,4 +1,5 @@
/*++ /** @file
This guid is used for Platform Override Variable named L"PlatDriOver".
Copyright (c) 2008, Intel Corporation Copyright (c) 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
@ -9,15 +10,7 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: **/
OverrideVariable.h
Abstract:
Platform Override Variable Guid definitions
--*/
#ifndef __EFI_OVERRIDE_VARIABLE_GUID_H__ #ifndef __EFI_OVERRIDE_VARIABLE_GUID_H__
#define __EFI_OVERRIDE_VARIABLE_GUID_H__ #define __EFI_OVERRIDE_VARIABLE_GUID_H__

View File

@ -1,6 +1,6 @@
/** @file /** @file
This file defines PeCoffLoader guid for PeCoffLoader entry in the HOB list.
GUID for the PE/COFF Loader APIs shared between SEC, PEI and DXE It also defines PE/COFF Loader APIs in PeCoffLoader Hob entry shared between SEC, PEI and DXE
Copyright (c) 2006 - 2008, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
@ -128,7 +128,7 @@ RETURN_STATUS
typedef typedef
RETURN_STATUS RETURN_STATUS
(EFIAPI *EFI_PEI_PE_COFF_LOADER_UNLOAD_IMAGE) ( (EFIAPI *EFI_PEI_PE_COFF_LOADER_UNLOAD_IMAGE) (
IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This, IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This,
IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
); );

View File

@ -1,5 +1,6 @@
/** @file /** @file
GUIDs used for PEI Performance HOB data structures This file defines performance guid for the performance entry in the HOB list,
and define the PEI Performance HOB data structures.
Copyright (c) 2006 - 2008, Intel Corporation. <BR> Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials

View File

@ -1,6 +1,8 @@
/*++ /** @file
This guid is used to specify the primary console in device.
It will be installed into the virtual device handle for ConIn Splitter.
Copyright (c) 2006, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -9,14 +11,7 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: **/
PrimaryConsoleInDevice.h
Abstract:
--*/
#ifndef __PRIMARY_CONSOLE_IN_DEVICE_H__ #ifndef __PRIMARY_CONSOLE_IN_DEVICE_H__
#define __PRIMARY_CONSOLE_IN_DEVICE_H__ #define __PRIMARY_CONSOLE_IN_DEVICE_H__

View File

@ -1,6 +1,8 @@
/*++ /** @file
This guid is used to specify the primary console out device.
It will be installed into the virtual device handle for ConOut Splitter.
Copyright (c) 2006, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -9,13 +11,7 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: **/
PrimaryConsoleOutDevice.h
Abstract:
--*/
#ifndef __PRIMARY_CONSOLE_OUT_DEVICE_H__ #ifndef __PRIMARY_CONSOLE_OUT_DEVICE_H__
#define __PRIMARY_CONSOLE_OUT_DEVICE_H__ #define __PRIMARY_CONSOLE_OUT_DEVICE_H__

View File

@ -1,6 +1,8 @@
/*++ /** @file
This guid is used to specify the primary StdErr device.
It will be installed into the virtual device handle for StdErr Splitter.
Copyright (c) 2006, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -9,13 +11,7 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: **/
PrimaryStandardErrorDevice.h
Abstract:
--*/
#ifndef __PRIMARY_STANDARD_ERROR_DEVICE_H__ #ifndef __PRIMARY_STANDARD_ERROR_DEVICE_H__
#define __PRIMARY_STANDARD_ERROR_DEVICE_H__ #define __PRIMARY_STANDARD_ERROR_DEVICE_H__

View File

@ -1,6 +1,9 @@
/*++ /** @file
This guid is used to specifiy the device is the StdErr device.
If the device is the StdErr device, this guid as the protocol guid
will be installed into this device handle.
Copyright (c) 2006, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -9,14 +12,7 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: **/
StandardErrorDevice.h
Abstract:
--*/
#ifndef __STANDARD_ERROR_DEVICE_H__ #ifndef __STANDARD_ERROR_DEVICE_H__
#define __STANDARD_ERROR_DEVICE_H__ #define __STANDARD_ERROR_DEVICE_H__

View File

@ -1,7 +1,6 @@
/** @file /** @file
This file defines GUIDs used for System Non Volatile HOB entries in the HOB list,
GUIDs used for System Non Volatile HOB entries in the in the HOB list and FV Guids carrying and FV Guids that carrying the System specific information.
the System specific information.
Copyright (c) 2006 - 2008, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials

View File

@ -1,6 +1,5 @@
/** @file /** @file
This file defines GUIDs used for variable list entries put in the EFI system table.
GUIDs used for variable list entries put in the EFI system table.
Copyright (c) 2006 - 2008, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials

View File

@ -1,6 +1,6 @@
/** @file /** @file
This library includes the APIs that is specific to EDK II's implementation. This library includes two extended HII functions to
It extended the UEFI Specification to define GUIDed device path. create and destory Hii Package by create the virtual Driver Handle.
Copyright (c) 2008, Intel Corporation. <BR> Copyright (c) 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials

View File

@ -31,6 +31,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
CreateBannerOpCode ( CreateBannerOpCode (
IN EFI_STRING_ID Title, IN EFI_STRING_ID Title,
IN UINT16 LineNumber, IN UINT16 LineNumber,
@ -62,6 +63,7 @@ CreateBannerOpCode (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
IfrLibUpdateForm ( IfrLibUpdateForm (
IN EFI_HII_HANDLE Handle, IN EFI_HII_HANDLE Handle,
IN EFI_GUID *FormSetGuid, OPTIONAL IN EFI_GUID *FormSetGuid, OPTIONAL
@ -92,6 +94,7 @@ IfrLibUpdateForm (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
IfrLibExtractClassFromHiiHandle ( IfrLibExtractClassFromHiiHandle (
IN EFI_HII_HANDLE Handle, IN EFI_HII_HANDLE Handle,
OUT UINT16 *Class, OUT UINT16 *Class,
@ -106,7 +109,8 @@ IfrLibExtractClassFromHiiHandle (
@param Buffer the start address of buffer. @param Buffer the start address of buffer.
@param BufferSize the size of buffer. @param BufferSize the size of buffer.
@param Number the number of the strings. @param Number the number of the ConfigBody strings.
@param ... the ConfigBody strings
@retval EFI_BUFFER_TOO_SMALL the BufferSize is too small to operate. @retval EFI_BUFFER_TOO_SMALL the BufferSize is too small to operate.
@retval EFI_INVALID_PARAMETER Buffer is NULL or BufferSize is 0. @retval EFI_INVALID_PARAMETER Buffer is NULL or BufferSize is 0.

View File

@ -1,5 +1,5 @@
/** @file /** @file
Generic BDS library definition, include the file and data structure Generic BDS library definition, include the data structure and function.
Copyright (c) 2004 - 2008, Intel Corporation. <BR> Copyright (c) 2004 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
@ -25,7 +25,7 @@ extern EFI_HANDLE mBdsImageHandle;
// //
// Constants which are variable names used to access variables // Constants which are variable names used to access variables
// //
#define VarLegacyDevOrder L"LegacyDevOrder" #define VAR_LEGACY_DEV_ORDER L"LegacyDevOrder"
// //
// Data structures and defines // Data structures and defines
@ -105,10 +105,10 @@ typedef struct {
// //
// //
// Bds boot relate lib functions // Bds boot related lib functions
// //
/** /**
Boot from the EFI1.1 spec defined "BootNext" variable Boot from the UEFI spec defined "BootNext" variable.
**/ **/
VOID VOID
@ -118,17 +118,17 @@ BdsLibBootNext (
); );
/** /**
Process the boot option follow the EFI 1.1 specification and Process the boot option follow the UEFI specification and
special treat the legacy boot option with BBS_DEVICE_PATH. special treat the legacy boot option with BBS_DEVICE_PATH.
@param Option The boot option need to be processed @param Option The boot option need to be processed
@param DevicePath The device path which describe where to load the @param DevicePath The device path which describe where to load the
boot image or the legcy BBS device path to boot boot image or the legcy BBS device path to boot
the legacy OS the legacy OS
@param ExitDataSize Returned directly from gBS->StartImage () @param ExitDataSize The size of exit data.
@param ExitData Returned directly from gBS->StartImage () @param ExitData Data returned when Boot image failed.
@retval EFI_SUCCESS Status from gBS->StartImage () @retval EFI_SUCCESS Boot from the input boot option successfully.
@retval EFI_NOT_FOUND If the Device Path is not found in the system @retval EFI_NOT_FOUND If the Device Path is not found in the system
**/ **/
@ -166,8 +166,7 @@ BdsLibEnumerateAllBootOption (
boot option boot option
@param BdsBootOptionList The header of the link list which indexed all @param BdsBootOptionList The header of the link list which indexed all
current boot options current boot options
@param String The description of the boot option.
@return VOID
**/ **/
VOID VOID
@ -180,15 +179,13 @@ BdsLibBuildOptionFromHandle (
/** /**
Build the on flash shell boot option with the handle parsed in Build the on flash shell boot option with the handle parsed in.
@param Handle The handle which present the device path to create @param Handle The handle which present the device path to create
on flash shell boot option on flash shell boot option
@param BdsBootOptionList The header of the link list which indexed all @param BdsBootOptionList The header of the link list which indexed all
current boot options current boot options
@return None
**/ **/
VOID VOID
EFIAPI EFIAPI
@ -270,8 +267,8 @@ BdsLibBuildOptionFromVar (
@param VendorGuid GUID part of EFI variable name @param VendorGuid GUID part of EFI variable name
@param VariableSize Returns the size of the EFI variable that was read @param VariableSize Returns the size of the EFI variable that was read
@return Dynamically allocated memory that contains a copy of the EFI variable. @return Dynamically allocated memory that contains a copy of the EFI variable
@return Caller is responsible freeing the buffer. Caller is responsible freeing the buffer.
@retval NULL Variable was not read @retval NULL Variable was not read
**/ **/
@ -304,7 +301,7 @@ BdsLibOutputStrings (
/** /**
Build the boot#### or driver#### option from the VariableName, the Build the boot#### or driver#### option from the VariableName, the
build boot#### or driver#### will also be linked to BdsCommonOptionList build boot#### or driver#### will also be linked to BdsCommonOptionList.
@param BdsCommonOptionList The header of the boot#### or driver#### option @param BdsCommonOptionList The header of the boot#### or driver#### option
link list link list
@ -430,7 +427,7 @@ BdsLibDisconnectAllEfi (
); );
// //
// Bds console relate lib functions // Bds console related lib functions
// //
/** /**
This function will search every simpletxt devive in current system, This function will search every simpletxt devive in current system,
@ -450,8 +447,7 @@ BdsLibConnectAllConsoles (
@retval EFI_SUCCESS At least one of the ConIn and ConOut device have @retval EFI_SUCCESS At least one of the ConIn and ConOut device have
been connected success. been connected success.
@retval EFI_STATUS Return the status of @retval EFI_STATUS Return the status of BdsLibConnectConsoleVariable ().
BdsLibConnectConsoleVariable ().
**/ **/
EFI_STATUS EFI_STATUS
@ -473,7 +469,7 @@ BdsLibConnectAllDefaultConsoles (
from the console variable ConVarName, this from the console variable ConVarName, this
parameter can not be multi-instance. parameter can not be multi-instance.
@retval EFI_UNSUPPORTED Add or remove the same device path. @retval EFI_UNSUPPORTED The added device path is same to the removed one.
@retval EFI_SUCCESS Success add or remove the device path from the @retval EFI_SUCCESS Success add or remove the device path from the
console variable. console variable.
@ -508,7 +504,7 @@ BdsLibConnectConsoleVariable (
); );
// //
// Bds device path relate lib functions // Bds device path related lib functions
// //
/** /**
Function unpacks a device path data structure so that all the nodes Function unpacks a device path data structure so that all the nodes
@ -555,8 +551,8 @@ BdsLibDelPartMatchInstance (
@param Single A pointer to a single-instance device path data @param Single A pointer to a single-instance device path data
structure. structure.
@retval TRUE If the Single is contained within Multi @retval TRUE If the Single device path is contained within Multi device path.
@retval FALSE The Single is not match within Multi @retval FALSE The Single device path is not match within Multi device path.
**/ **/
BOOLEAN BOOLEAN
@ -622,12 +618,20 @@ typedef struct {
// //
#if defined (MDE_CPU_IPF) #if defined (MDE_CPU_IPF)
#define EFI64_SHADOW_ALL_LEGACY_ROM() ShadowAllOptionRom (); #define EFI64_SHADOW_ALL_LEGACY_ROM() ShadowAllOptionRom ();
VOID
ShadowAllOptionRom();
#else #else
#define EFI64_SHADOW_ALL_LEGACY_ROM() #define EFI64_SHADOW_ALL_LEGACY_ROM()
#endif #endif
/**
Shadow all Legacy OptionRom.
**/
VOID
EFIAPI
ShadowAllOptionRom (
VOID
);
// //
// BBS support macros and functions // BBS support macros and functions
// //
@ -641,27 +645,76 @@ ShadowAllOptionRom();
#define REFRESH_LEGACY_BOOT_OPTIONS #define REFRESH_LEGACY_BOOT_OPTIONS
#endif #endif
/**
Delete all the invalid legacy boot options.
@retval EFI_SUCCESS All invalide legacy boot options are deleted.
@retval EFI_OUT_OF_RESOURCES Fail to allocate necessary memory.
@retval EFI_NOT_FOUND Fail to retrive variable of boot order.
**/
EFI_STATUS EFI_STATUS
EFIAPI
BdsDeleteAllInvalidLegacyBootOptions ( BdsDeleteAllInvalidLegacyBootOptions (
VOID VOID
); );
/**
Add the legacy boot options from BBS table if they do not exist.
@retval EFI_SUCCESS The boot options are added successfully
or they are already in boot options.
**/
EFI_STATUS EFI_STATUS
EFIAPI
BdsAddNonExistingLegacyBootOptions ( BdsAddNonExistingLegacyBootOptions (
VOID VOID
); );
/**
Add the legacy boot devices from BBS table into
the legacy device boot order.
@retval EFI_SUCCESS The boot devices are added successfully.
**/
EFI_STATUS EFI_STATUS
EFIAPI
BdsUpdateLegacyDevOrder ( BdsUpdateLegacyDevOrder (
VOID VOID
); );
/**
Set the boot priority for BBS entries based on boot option entry and boot order.
@param Entry The boot option is to be checked for refresh BBS table.
@retval EFI_SUCCESS The boot priority for BBS entries is refreshed successfully.
**/
EFI_STATUS EFI_STATUS
EFIAPI
BdsRefreshBbsTableForBoot ( BdsRefreshBbsTableForBoot (
IN BDS_COMMON_OPTION *Entry IN BDS_COMMON_OPTION *Entry
); );
/**
Delete boot option specified by OptionNumber and adjust the boot order.
@param OptionNumber The boot option to be deleted.
@param BootOrder Boot order list to be adjusted by remove this boot option.
@param BootOrderSize The size of Boot order list will be modified.
@retval EFI_SUCCESS The boot option is deleted successfully.
**/
EFI_STATUS EFI_STATUS
EFIAPI
BdsDeleteBootOption ( BdsDeleteBootOption (
IN UINTN OptionNumber, IN UINTN OptionNumber,
IN OUT UINT16 *BootOrder, IN OUT UINT16 *BootOrder,
@ -755,8 +808,7 @@ SetupResetReminder (
@param Device SimpleFileSystem device handle @param Device SimpleFileSystem device handle
@param FileName File name for the image @param FileName File name for the image
@param DosHeader Pointer to dos header @param DosHeader Pointer to dos header
@param ImageHeader Pointer to image header @param Hdr The buffer in which to return the PE32, PE32+, or TE header.
@param OptionalHeader Pointer to optional header
@retval EFI_SUCCESS Successfully get the machine type. @retval EFI_SUCCESS Successfully get the machine type.
@retval EFI_NOT_FOUND The file is not found. @retval EFI_NOT_FOUND The file is not found.
@ -818,8 +870,8 @@ BdsLibGetImageHeader (
@param HardDriveDevicePath A device path which starts with a hard drive media @param HardDriveDevicePath A device path which starts with a hard drive media
device path. device path.
@retval TRUE There is a matched device path instance FALSE @retval TRUE There is a matched device path instance.
-There is no matched device path instance @retval FALSE There is no matched device path instance.
**/ **/
BOOLEAN BOOLEAN
@ -858,7 +910,6 @@ BdsExpandPartitionPartialDevicePathToFull (
@param DevicePath Device Path to a bootable device @param DevicePath Device Path to a bootable device
@retval NULL The device path points to an EFI bootable Media
@retval NULL The media on the DevicePath is not bootable @retval NULL The media on the DevicePath is not bootable
**/ **/
@ -873,11 +924,11 @@ BdsLibGetBootableHandle (
Check whether the Device path in a boot option point to a valide bootable device, Check whether the Device path in a boot option point to a valide bootable device,
And if CheckMedia is true, check the device is ready to boot now. And if CheckMedia is true, check the device is ready to boot now.
DevPath -- the Device path in a boot option @param DevPath the Device path in a boot option
CheckMedia -- if true, check the device is ready to boot now. @param CheckMedia if true, check the device is ready to boot now.
@return TRUE -- the Device path is valide @retval TRUE the Device path is valide
@return FALSE -- the Device path is invalide . @retval FALSE the Device path is invalide .
**/ **/
BOOLEAN BOOLEAN
@ -888,7 +939,7 @@ BdsLibIsValidEFIBootOptDevicePath (
); );
/** /**
For a bootable Device path, return its boot type For a bootable Device path, return its boot type.
@param DevicePath The bootable device Path to check @param DevicePath The bootable device Path to check
@ -919,8 +970,8 @@ BdsGetBootTypeFromDevicePath (
/** /**
This routine register a function to adjust the different type memory page number just before booting This routine register a function to adjust the different type memory page number
and save the updated info into the variable for next boot to use just before booting and save the updated info into the variable for next boot to use.
**/ **/
VOID VOID
@ -965,12 +1016,13 @@ BdsLibUpdateFvFileDevicePath (
@param HostControllerPI Uhci (0x00) or Ehci (0x20) or Both uhci and ehci @param HostControllerPI Uhci (0x00) or Ehci (0x20) or Both uhci and ehci
(0xFF) (0xFF)
@param RemainingDevicePath a short-form device path that starts with the first @param RemainingDevicePath a short-form device path that starts with the first
element being a USB WWID or a USB Class device element being a USB WWID or a USB Class device
path path
@return EFI_INVALID_PARAMETER @retval EFI_SUCCESS The specific Usb device is connected successfully.
@return EFI_SUCCESS @retval EFI_INVALID_PARAMETER Invalid HostControllerPi (not 0x00, 0x20 or 0xFF)
@return EFI_NOT_FOUND or RemainingDevicePath is not the USB class device path.
@retval EFI_NOT_FOUND The device specified by device path is not found.
**/ **/
EFI_STATUS EFI_STATUS
@ -985,13 +1037,11 @@ BdsLibConnectUsbDevByShortFormDP(
// The implementation of this function is provided by Platform code. // The implementation of this function is provided by Platform code.
// //
/** /**
Convert Vendor device path to device name Convert Vendor device path to device name.
@param Str The buffer store device name @param Str The buffer store device name
@param DevPath Pointer to vendor device path @param DevPath Pointer to vendor device path
@return When it return, the device name have been stored in *Str.
**/ **/
VOID VOID
EFIAPI EFIAPI
@ -1005,13 +1055,13 @@ DevPathVendor (
Concatenates a formatted unicode string to allocated pool. Concatenates a formatted unicode string to allocated pool.
The caller must free the resulting buffer. The caller must free the resulting buffer.
@param Str Tracks the allocated pool, size in use, and amount of pool @param Str Tracks the allocated pool, size in use, and amount of pool allocated.
allocated.
@param fmt The format string @param fmt The format string
@param ... The data will be printed.
@return Allocated buffer with the formatted string printed in it. @return Allocated buffer with the formatted string printed in it.
@return The caller must free the allocated buffer. The buffer The caller must free the allocated buffer.
@return allocation is not packed. The buffer allocation is not packed.
**/ **/
CHAR16 * CHAR16 *

View File

@ -242,6 +242,7 @@ IpIoOpen (
packet. packet.
@param Pkt Pointer to the IP packet to be sent. @param Pkt Pointer to the IP packet to be sent.
@param Sender The IP protocol instance used for sending. @param Sender The IP protocol instance used for sending.
@param Context
@param NotifyData @param NotifyData
@param Dest The destination IP address to send this packet to. @param Dest The destination IP address to send this packet to.
@param OverrideData The data to override some configuration of the IP @param OverrideData The data to override some configuration of the IP
@ -265,12 +266,10 @@ IpIoSend (
); );
/** /**
Add a new IP instance for sending data. Cancel the IP transmit token which wraps this Packet.
@param IpIo Pointer to a IP_IO instance to add a new IP @param IpIo Pointer to the IP_IO instance.
instance for sending purpose. @param Packet Pointer to the packet to cancel.
@return Pointer to the created IP_IO_IP_INFO structure, NULL is failed.
**/ **/
VOID VOID

View File

@ -28,7 +28,7 @@ typedef UINT32 IP4_ADDR;
typedef UINT32 TCP_SEQNO; typedef UINT32 TCP_SEQNO;
typedef UINT16 TCP_PORTNO; typedef UINT16 TCP_PORTNO;
enum { typedef enum {
NET_ETHER_ADDR_LEN = 6, NET_ETHER_ADDR_LEN = 6,
NET_IFTYPE_ETHERNET = 0x01, NET_IFTYPE_ETHERNET = 0x01,
@ -46,7 +46,7 @@ enum {
IP4_ADDR_CLASSE, IP4_ADDR_CLASSE,
IP4_MASK_NUM = 33 IP4_MASK_NUM = 33
}; } IP4_CLASS_TYPE;
#pragma pack(1) #pragma pack(1)
@ -340,7 +340,7 @@ NetListRemoveTail (
); );
/** /**
Insert the NewEntry after the PrevEntry Insert the NewEntry after the PrevEntry.
@param PrevEntry The previous entry to insert after @param PrevEntry The previous entry to insert after
@param NewEntry The new entry to insert @param NewEntry The new entry to insert
@ -356,7 +356,7 @@ NetListInsertAfter (
); );
/** /**
Insert the NewEntry before the PostEntry Insert the NewEntry before the PostEntry.
@param PostEntry The entry to insert before @param PostEntry The entry to insert before
@param NewEntry The new entry to insert @param NewEntry The new entry to insert
@ -519,7 +519,7 @@ NetMapRemoveItem (
); );
/** /**
Remove the first entry on the netmap Remove the first entry on the netmap.
@param Map The netmap to remove the head from @param Map The netmap to remove the head from
@param Value The variable to receive the value if not NULL @param Value The variable to receive the value if not NULL
@ -535,7 +535,7 @@ NetMapRemoveHead (
); );
/** /**
Remove the last entry on the netmap Remove the last entry on the netmap.
@param Map The netmap to remove the tail from @param Map The netmap to remove the tail from
@param Value The variable to receive the value if not NULL @param Value The variable to receive the value if not NULL
@ -586,8 +586,8 @@ NetMapIterate (
/** /**
Create a child of the service that is identified by ServiceBindingGuid. Create a child of the service that is identified by ServiceBindingGuid.
@param Controller The controller which has the service installed. @param ControllerHandle The controller which has the service installed.
@param Image The image handle used to open service. @param ImageHandle The image handle used to open service.
@param ServiceBindingGuid The service's Guid. @param ServiceBindingGuid The service's Guid.
@param ChildHandle The handle to receive the create child @param ChildHandle The handle to receive the create child
@ -607,8 +607,8 @@ NetLibCreateServiceChild (
/** /**
Destory a child of the service that is identified by ServiceBindingGuid. Destory a child of the service that is identified by ServiceBindingGuid.
@param Controller The controller which has the service installed. @param ControllerHandle The controller which has the service installed.
@param Image The image handle used to open service. @param ImageHandle The image handle used to open service.
@param ServiceBindingGuid The service's Guid. @param ServiceBindingGuid The service's Guid.
@param ChildHandle The child to destory @param ChildHandle The child to destory
@ -702,10 +702,10 @@ NetLibGetNicHandle (
/** /**
Add a Deferred Procedure Call to the end of the DPC queue. Add a Deferred Procedure Call to the end of the DPC queue.
@DpcTpl The EFI_TPL that the DPC should be invoked. @param DpcTpl The EFI_TPL that the DPC should be invoked.
@DpcProcedure Pointer to the DPC's function. @param DpcProcedure Pointer to the DPC's function.
@DpcContext Pointer to the DPC's context. Passed to DpcProcedure @param DpcContext Pointer to the DPC's context. Passed to DpcProcedure
when DpcProcedure is invoked. when DpcProcedure is invoked.
@retval EFI_SUCCESS The DPC was queued. @retval EFI_SUCCESS The DPC was queued.
@retval EFI_INVALID_PARAMETER DpcTpl is not a valid EFI_TPL. @retval EFI_INVALID_PARAMETER DpcTpl is not a valid EFI_TPL.
@ -736,15 +736,12 @@ NetLibDispatchDpc (
); );
/** /**
The constructor function caches the pointer to DPC protocol. This is the default unload handle for all the network drivers.
The constructor function locates DPC protocol from protocol database. @param ImageHandle The drivers' driver image.
It will ASSERT() if that operation fails and it will always return EFI_SUCCESS.
@param ImageHandle The firmware allocated handle for the EFI image. @retval EFI_SUCCESS The image is unloaded.
@param SystemTable A pointer to the EFI System Table. @retval Others Failed to unload the image.
@retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
**/ **/
EFI_STATUS EFI_STATUS
@ -753,7 +750,7 @@ NetLibDefaultUnload (
IN EFI_HANDLE ImageHandle IN EFI_HANDLE ImageHandle
); );
enum { typedef enum {
// //
//Various signatures //Various signatures
// //
@ -766,7 +763,7 @@ enum {
NET_BUF_HEAD = 1, // Trim or allocate space from head NET_BUF_HEAD = 1, // Trim or allocate space from head
NET_BUF_TAIL = 0, // Trim or allocate space from tail NET_BUF_TAIL = 0, // Trim or allocate space from tail
NET_VECTOR_OWN_FIRST = 0x01 // We allocated the 1st block in the vector NET_VECTOR_OWN_FIRST = 0x01 // We allocated the 1st block in the vector
}; } NET_SIGNATURE_TYPE;
#define NET_CHECK_SIGNATURE(PData, SIGNATURE) \ #define NET_CHECK_SIGNATURE(PData, SIGNATURE) \
ASSERT (((PData) != NULL) && ((PData)->Signature == (SIGNATURE))) ASSERT (((PData) != NULL) && ((PData)->Signature == (SIGNATURE)))
@ -1270,14 +1267,13 @@ NetbufQueCopy (
); );
/** /**
Copy some data from the buffer queue to the destination. Trim some data from the queue header, release the buffer if
whole buffer is trimmed.
@param NbufQue Pointer to the net buffer queue. @param NbufQue Pointer to the net buffer queue.
@param Offset The sequence number of the first byte to copy. @param Len Length of the data to trim.
@param Len Length of the data to copy.
@param Dest The destination of the data to copy to.
@retval UINTN The length of the copied data. @retval UINTN The length of the data trimmed.
**/ **/
UINT32 UINT32

View File

@ -1,6 +1,8 @@
/** @file /** @file
Copyright (c) 2007, Intel Corporation This library provides basic platform driver override functions.
Copyright (c) 2007 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -9,13 +11,6 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
PlatDriOverLib.h
Abstract:
**/ **/
#ifndef _PLAT_DRI_OVER_LIB_H_ #ifndef _PLAT_DRI_OVER_LIB_H_
@ -38,7 +33,7 @@ Abstract:
@retval EFI_ALREADY_STARTED There has been a Platform Driver Override @retval EFI_ALREADY_STARTED There has been a Platform Driver Override
Protocol in the system, cannot install it again. Protocol in the system, cannot install it again.
@retval Other Returned by InstallProtocolInterface @retval EFI_SUCCESS The protocol is installed successfully.
**/ **/
EFI_STATUS EFI_STATUS
@ -48,7 +43,7 @@ InstallPlatformDriverOverrideProtocol (
); );
/** /**
Free all the mapping database memory resource and initialize the mapping list entry Free all the mapping database memory resource and initialize the mapping list entry.
@param MappingDataBase Mapping database list entry pointer @param MappingDataBase Mapping database list entry pointer
@ -65,56 +60,13 @@ FreeMappingDatabase (
/** /**
Read the environment variable(s) that contain the override mappings from Controller Device Path to Read the environment variable(s) that contain the override mappings from Controller Device Path to
a set of Driver Device Paths, and create the mapping database in memory with those variable info. a set of Driver Device Paths, and create the mapping database in memory with those variable info.
VariableLayout{
//
// NotEnd indicate whether the variable is the last one, and has no subsequent variable need to load.
// Each variable has MaximumVariableSize limitation, so we maybe need multi variables to store
// large mapping infos.
// The variable(s) name rule is PlatDriOver, PlatDriOver1, PlatDriOver2, ....
//
UINT32 NotEnd;
//
// The entry which contains the mapping that Controller Device Path to a set of Driver Device Paths
// There are often multi mapping entries in a variable.
//
UINT32 SIGNATURE; //EFI_SIGNATURE_32('p','d','o','i')
UINT32 DriverNum;
EFI_DEVICE_PATH_PROTOCOL ControllerDevicePath[];
EFI_DEVICE_PATH_PROTOCOL DriverDevicePath[];
EFI_DEVICE_PATH_PROTOCOL DriverDevicePath[];
EFI_DEVICE_PATH_PROTOCOL DriverDevicePath[];
......
UINT32 SIGNATURE;
UINT32 DriverNum;
EFI_DEVICE_PATH_PROTOCOL ControllerDevicePath[];
EFI_DEVICE_PATH_PROTOCOL DriverDevicePath[];
EFI_DEVICE_PATH_PROTOCOL DriverDevicePath[];
EFI_DEVICE_PATH_PROTOCOL DriverDevicePath[];
......
}
typedef struct _PLATFORM_OVERRIDE_ITEM{
UINTN Signature; //EFI_SIGNATURE_32('p','d','o','i')
LIST_ENTRY Link;
UINT32 DriverInfoNum;
EFI_DEVICE_PATH_PROTOCOL *ControllerDevicePath;
LIST_ENTRY DriverInfoList; //DRIVER_IMAGE_INFO List
} PLATFORM_OVERRIDE_ITEM;
typedef struct _DRIVER_IMAGE_INFO{
UINTN Signature; //EFI_SIGNATURE_32('p','d','i','i')
LIST_ENTRY Link;
EFI_HANDLE ImageHandle;
EFI_DEVICE_PATH_PROTOCOL *DriverImagePath;
BOOLEAN UnLoadable;
BOOLEAN UnStartable;
} DRIVER_IMAGE_INFO;
@param MappingDataBase Mapping database list entry pointer @param MappingDataBase Mapping database list entry pointer
@retval EFI_INVALID_PARAMETER MappingDataBase pointer is null @retval EFI_INVALID_PARAMETER MappingDataBase pointer is null
@retval EFI_NOT_FOUND Cannot find the 'PlatDriOver' NV variable @retval EFI_NOT_FOUND Cannot find the 'PlatDriOver' NV variable
@retval EFI_VOLUME_CORRUPTED The found NV variable is corrupted @retval EFI_VOLUME_CORRUPTED The found NV variable is corrupted
@retval EFI_SUCCESS Create the mapping database in memory @retval EFI_SUCCESS Create the mapping database in memory successfully
successfully
**/ **/
EFI_STATUS EFI_STATUS
@ -124,7 +76,7 @@ InitOverridesMapping (
); );
/** /**
Save the memory mapping database into NV environment variable(s) Save the memory mapping database into NV environment variable(s).
@param MappingDataBase Mapping database list entry pointer @param MappingDataBase Mapping database list entry pointer
@ -141,8 +93,7 @@ SaveOverridesMapping (
/** /**
Retrieves the image handle of the platform override driver for a controller in the system from the memory mapping database. Retrieves the image handle of the platform override driver for a controller in the system from the memory mapping database.
@param This A pointer to the @param This A pointer to the EFI_PLATFORM_DRIVER_OVERRIDE_PROTOCOL instance.
EFI_PLATFORM_DRIVER_OVERRIDE_PROTOCOL instance.
@param ControllerHandle The device handle of the controller to check if @param ControllerHandle The device handle of the controller to check if
a driver override exists. a driver override exists.
@param DriverImageHandle On output, a pointer to the next driver handle. @param DriverImageHandle On output, a pointer to the next driver handle.
@ -174,6 +125,12 @@ GetDriverFromMapping (
IN EFI_HANDLE CallerImageHandle IN EFI_HANDLE CallerImageHandle
); );
/**
Deletes all environment variable(s) that contain the override mappings from Controller Device Path to
a set of Driver Device Paths.
@retval EFI_SUCCESS Delete all variable(s) successfully.
**/
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
DeleteOverridesVariables ( DeleteOverridesVariables (
@ -183,19 +140,19 @@ DeleteOverridesVariables (
/** /**
Check mapping database whether already has the mapping info which Check mapping database whether already has the mapping info which
records the input Controller to input DriverImage. records the input Controller to input DriverImage.
If has, the controller's total override driver number and input DriverImage's order number is return.
@param ControllerDevicePath The controller device path need to add a @param ControllerDevicePath The controller device path is to be check.
override driver image item @param DriverImageDevicePath The driver image device path is to be check.
@param DriverImageDevicePath The driver image device path need to be insert
@param MappingDataBase Mapping database list entry pointer @param MappingDataBase Mapping database list entry pointer
@param DriverInfoNum the controller's total override driver number @param DriverInfoNum the controller's total override driver number
@param DriverImageNO The inserted order number @param DriverImageNO The driver order number for the input DriverImage.
If the DriverImageDevicePath is NULL, DriverImageNO is not set.
@return EFI_INVALID_PARAMETER
@return EFI_NOT_FOUND
@return EFI_SUCCESS
@retval EFI_INVALID_PARAMETER ControllerDevicePath or MappingDataBase is NULL.
@retval EFI_NOT_FOUND ControllerDevicePath is not found in MappingDataBase or
DriverImageDevicePath is not found in the found DriverImage Info list.
@retval EFI_SUCCESS The controller's total override driver number and
input DriverImage's order number is correctly return.
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
@ -215,11 +172,15 @@ CheckMapping (
override driver image item override driver image item
@param DriverImageDevicePath The driver image device path need to be insert @param DriverImageDevicePath The driver image device path need to be insert
@param MappingDataBase Mapping database list entry pointer @param MappingDataBase Mapping database list entry pointer
@param DriverImageNO The inserted order number @param DriverImageNO The inserted order number. If this number is taken,
the larger available number will be used.
@return EFI_INVALID_PARAMETER @retval EFI_INVALID_PARAMETER ControllerDevicePath is NULL, or DriverImageDevicePath is NULL
@return EFI_ALREADY_STARTED or MappingDataBase is NULL
@return EFI_SUCCESS @retval EFI_ALREADY_STARTED The input Controller to input DriverImage has been
recorded into the mapping database.
@retval EFI_SUCCESS The Controller and DriverImage are inserted into
the mapping database successfully.
**/ **/
EFI_STATUS EFI_STATUS
@ -234,15 +195,16 @@ InsertDriverImage (
/** /**
Delete a controller's override driver from the mapping database. Delete a controller's override driver from the mapping database.
@param ControllerDevicePath The controller device path need to add a @param ControllerDevicePath The controller device path will be deleted
override driver image item when all drivers images on it are removed.
@param DriverImageDevicePath The driver image device path need to be insert @param DriverImageDevicePath The driver image device path will be delete.
If NULL, all driver image will be delete.
@param MappingDataBase Mapping database list entry pointer @param MappingDataBase Mapping database list entry pointer
@param DriverImageNO The inserted order number
@return EFI_INVALID_PARAMETER @retval EFI_INVALID_PARAMETER ControllerDevicePath is NULL, or MappingDataBase is NULL
@return EFI_NOT_FOUND @retval EFI_NOT_FOUND ControllerDevicePath is not found in MappingDataBase or
@return EFI_SUCCESS DriverImageDevicePath is not found in the found DriverImage Info list.
@retval EFI_SUCCESS Delete the specified driver successfully.
**/ **/
EFI_STATUS EFI_STATUS
@ -256,9 +218,12 @@ DeleteDriverImage (
/** /**
Get the first Binding protocol which has the specific image handle Get the first Binding protocol which has the specific image handle
@param Image Image handle @param ImageHandle The Image handle
@param BindingHandle The BindingHandle of the found Driver Binding protocol.
If Binding protocol is not found, it is set to NULL.
@return Pointer into the Binding Protocol interface @return Pointer into the Binding Protocol interface
@retval NULL The paramter is not valid or the binding protocol is not found.
**/ **/
EFI_DRIVER_BINDING_PROTOCOL * EFI_DRIVER_BINDING_PROTOCOL *

View File

@ -54,8 +54,6 @@ struct _EFI_BDS_ARCH_PROTOCOL_INSTANCE {
@param PrivateData The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance @param PrivateData The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance
@return None.
**/ **/
VOID VOID
EFIAPI EFIAPI
@ -91,8 +89,6 @@ PlatformBdsPolicyBehavior (
@param ExitData Exit data returned from failed boot. @param ExitData Exit data returned from failed boot.
@param ExitDataSize Exit data size returned from failed boot. @param ExitDataSize Exit data size returned from failed boot.
@return None.
**/ **/
VOID VOID
EFIAPI EFIAPI
@ -126,7 +122,6 @@ PlatformBdsBootSuccess (
The flash layout is platform specific. The flash layout is platform specific.
@retval EFI_SUCCESS The non-updatable flash areas. @retval EFI_SUCCESS The non-updatable flash areas.
@retval Others Some error occurs when locking non-updatable flash areas.
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI

View File

@ -25,11 +25,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
typedef struct _UDP_IO_PORT UDP_IO_PORT; typedef struct _UDP_IO_PORT UDP_IO_PORT;
enum { typedef enum {
UDP_IO_RX_SIGNATURE = EFI_SIGNATURE_32 ('U', 'D', 'P', 'R'), UDP_IO_RX_SIGNATURE = EFI_SIGNATURE_32 ('U', 'D', 'P', 'R'),
UDP_IO_TX_SIGNATURE = EFI_SIGNATURE_32 ('U', 'D', 'P', 'T'), UDP_IO_TX_SIGNATURE = EFI_SIGNATURE_32 ('U', 'D', 'P', 'T'),
UDP_IO_SIGNATURE = EFI_SIGNATURE_32 ('U', 'D', 'P', 'I') UDP_IO_SIGNATURE = EFI_SIGNATURE_32 ('U', 'D', 'P', 'I')
}; } UDP_IO_SIGNATURE_TYPE;
typedef struct { typedef struct {
IP4_ADDR LocalAddr; IP4_ADDR LocalAddr;
@ -130,7 +130,7 @@ BOOLEAN
@param Controller The controller that has the UDP service binding @param Controller The controller that has the UDP service binding
protocol installed. protocol installed.
@param Image The image handle for the driver. @param ImageHandle The image handle for the driver.
@param Configure The function to configure the created UDP child @param Configure The function to configure the created UDP child
@param Context The opaque parameter for the Configure funtion. @param Context The opaque parameter for the Configure funtion.
@ -205,12 +205,12 @@ UdpIoSendDatagram (
); );
/** /**
The selection function to cancel a single sent datagram. Cancel a single sent datagram.
@param Token The UDP TX token to test againist. @param UdpIo The UDP IO port to cancel the packet from
@param Context The context @param Packet The packet to cancel
@return TRUE if the packet is to be cancelled, otherwise FALSE. @return None
**/ **/
VOID VOID

View File

@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/ **/
#ifndef _MDEMODULE_HII_H #ifndef __MDEMODULE_HII_H__
#define _MDEMODULE_HII_H #define __MDEMODULE_HII_H__
#define NARROW_CHAR 0xFFF0 #define NARROW_CHAR 0xFFF0
#define WIDE_CHAR 0xFFF1 #define WIDE_CHAR 0xFFF1

View File

@ -1,5 +1,5 @@
/** @file /** @file
Pei memory test PPI used to Perform memory test in PEI phase. This file defines Pei memory test PPI used to Perform memory test in PEI phase.
Copyright (c) 2006 - 2008, Intel Corporation. <BR> Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
@ -20,6 +20,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
typedef struct _PEI_BASE_MEMORY_TEST_PPI PEI_BASE_MEMORY_TEST_PPI; typedef struct _PEI_BASE_MEMORY_TEST_PPI PEI_BASE_MEMORY_TEST_PPI;
//
// 4 different test operations
// Ignore op not test memory, Quick and Sparse op test memory quickly, Extensive op test memory detailedly.
//
typedef enum { typedef enum {
Ignore, Ignore,
Quick, Quick,
@ -27,6 +31,19 @@ typedef enum {
Extensive Extensive
} PEI_MEMORY_TEST_OP; } PEI_MEMORY_TEST_OP;
/**
Test a range memory space is ready to read and write.
@param PeiServices An indirect pointer to the PEI Services Table published by the PEI Foundation.
@param This Pointer to Pei memory test PPI instance.
@param BeginAddress Beginning of the memory address to be checked.
@param MemoryLength Bytes of memory range to be checked.
@param Operation Type of memory check operation to be performed.
@param ErrorAddress Address which has error when checked.
@retval EFI_SUCCESS Memory range pass basic read and write test.
@retval EFI_DEVICE_ERROR Memory is not ready to access.
**/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *PEI_BASE_MEMORY_TEST) ( (EFIAPI *PEI_BASE_MEMORY_TEST) (

View File

@ -43,7 +43,7 @@ typedef
EFI_STATUS EFI_STATUS
(EFIAPI *PEI_GET_FLASH_AREA_INFO) ( (EFIAPI *PEI_GET_FLASH_AREA_INFO) (
IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_SERVICES **PeiServices,
IN PEI_FLASH_MAP_PPI *This, IN PEI_FLASH_MAP_PPI *This,
IN EFI_FLASH_AREA_TYPE AreaType, IN EFI_FLASH_AREA_TYPE AreaType,
IN EFI_GUID *AreaTypeGuid, IN EFI_GUID *AreaTypeGuid,
OUT UINT32 *NumEntries, OUT UINT32 *NumEntries,

View File

@ -1,5 +1,5 @@
/** @file /** @file
PPI published by the PEIM that is responsible for detecting operator presence. This file defines OperatorPresent PPI responsible for detecting TPM operator presence.
Copyright (c) 2006 - 2008, Intel Corporation. <BR> Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials

View File

@ -1,6 +1,7 @@
/** @file /** @file
Capsule Architectural Protocol is added to produce UEFI2.0 capsule runtime services. Capsule Architectural Protocol is responsible to tag UEFI2.0 capsule runtime services
are ready in EFI_RUNTIME_SERVICES.
Copyright (c) 2006 - 2008, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials

View File

@ -1,6 +1,8 @@
/*++ /** @file
Copyright (c) 2006 - 2007, Intel Corporation This protocol provides the interfaces to Get/Set the current video mode for GOP/UGA screen
Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -9,15 +11,7 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: **/
ConsoleControl.h
Abstract:
Abstraction of a Text mode or GOP/UGA screen
--*/
#ifndef __CONSOLE_CONTROL_H__ #ifndef __CONSOLE_CONTROL_H__
#define __CONSOLE_CONTROL_H__ #define __CONSOLE_CONTROL_H__
@ -34,7 +28,20 @@ typedef enum {
EfiConsoleControlScreenMaxValue EfiConsoleControlScreenMaxValue
} EFI_CONSOLE_CONTROL_SCREEN_MODE; } EFI_CONSOLE_CONTROL_SCREEN_MODE;
/**
Return the current video mode information. Also returns info about existence
of Graphics Output devices or UGA Draw devices in system, and if the Std In device is locked. All the
arguments are optional and only returned if a non NULL pointer is passed in.
@param This Protocol instance pointer.
@param Mode Are we in text of grahics mode.
@param GopExists TRUE if GOP Spliter has found a GOP/UGA device
@param StdInLocked TRUE if StdIn device is keyboard locked
@retval EFI_SUCCESS Video mode information is returned.
@retval EFI_INVALID_PARAMETER Invalid parameters if Mode == NULL.
**/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_CONSOLE_CONTROL_PROTOCOL_GET_MODE) ( (EFIAPI *EFI_CONSOLE_CONTROL_PROTOCOL_GET_MODE) (
@ -43,74 +50,43 @@ EFI_STATUS
OUT BOOLEAN *GopUgaExists, OPTIONAL OUT BOOLEAN *GopUgaExists, OPTIONAL
OUT BOOLEAN *StdInLocked OPTIONAL OUT BOOLEAN *StdInLocked OPTIONAL
) )
/*++
Routine Description:
Return the current video mode information. Also returns info about existence
of Graphics Output devices or UGA Draw devices in system, and if the Std In
device is locked. All the arguments are optional and only returned if a non
NULL pointer is passed in.
Arguments:
This - Protocol instance pointer.
Mode - Are we in text of grahics mode.
GopUgaExists - TRUE if Console Spliter has found a GOP or UGA device
StdInLocked - TRUE if StdIn device is keyboard locked
Returns:
EFI_SUCCESS - Mode information returned.
--*/
; ;
/**
Set the current video mode to either text or graphics.
@param This Protocol instance pointer.
@param Mode Mode is to be set.
@retval EFI_SUCCESS Mode is set.
@retval EFI_INVALID_PARAMETER Mode is not the valid mode value.
@retval EFI_UNSUPPORTED Mode is unsupported by console device.
**/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_CONSOLE_CONTROL_PROTOCOL_SET_MODE) ( (EFIAPI *EFI_CONSOLE_CONTROL_PROTOCOL_SET_MODE) (
IN EFI_CONSOLE_CONTROL_PROTOCOL *This, IN EFI_CONSOLE_CONTROL_PROTOCOL *This,
OUT EFI_CONSOLE_CONTROL_SCREEN_MODE Mode OUT EFI_CONSOLE_CONTROL_SCREEN_MODE Mode
) )
/*++
Routine Description:
Set the current mode to either text or graphics. Graphics is
for Quiet Boot.
Arguments:
This - Protocol instance pointer.
Mode - Mode to set the
Returns:
EFI_SUCCESS - Mode information returned.
--*/
; ;
/**
Copy the Password and enable state variable and then arm the periodic timer
@retval EFI_SUCCESS Lock the StdIn device
@retval EFI_INVALID_PARAMETER Password is NULL
@retval EFI_OUT_OF_RESOURCES Buffer allocation to store the big password fails
**/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_CONSOLE_CONTROL_PROTOCOL_LOCK_STD_IN) ( (EFIAPI *EFI_CONSOLE_CONTROL_PROTOCOL_LOCK_STD_IN) (
IN EFI_CONSOLE_CONTROL_PROTOCOL *This, IN EFI_CONSOLE_CONTROL_PROTOCOL *This,
IN CHAR16 *Password IN CHAR16 *Password
) )
/*++
Routine Description:
Lock Std In devices until Password is typed.
Arguments:
This - Protocol instance pointer.
Password - Password needed to unlock screen. NULL means unlock keyboard
Returns:
EFI_SUCCESS - Mode information returned.
EFI_DEVICE_ERROR - Std In not locked
--*/
; ;
struct _EFI_CONSOLE_CONTROL_PROTOCOL { struct _EFI_CONSOLE_CONTROL_PROTOCOL {
EFI_CONSOLE_CONTROL_PROTOCOL_GET_MODE GetMode; EFI_CONSOLE_CONTROL_PROTOCOL_GET_MODE GetMode;
EFI_CONSOLE_CONTROL_PROTOCOL_SET_MODE SetMode; EFI_CONSOLE_CONTROL_PROTOCOL_SET_MODE SetMode;

View File

@ -1,10 +1,11 @@
/** @file /** @file
This protocol implements a FV section extraction using a CRC32 encapsulation.
The GUID defins the encapsulation scheme and the data structures come from This file can define the different guids to specify the different
the SectionExtraction protocol definition. encapsulation scheme for the guided section.
Now, only one guid is defined for CRC32 encapsulation scheme.
The related data structures come from the SectionExtraction protocol definition.
Copyright (c) 2006, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -27,11 +28,6 @@
#define EFI_CRC32_GUIDED_SECTION_EXTRACTION_PROTOCOL_GUID \ #define EFI_CRC32_GUIDED_SECTION_EXTRACTION_PROTOCOL_GUID \
{ 0xFC1BCDB0, 0x7D31, 0x49aa, {0x93, 0x6A, 0xA4, 0x60, 0x0D, 0x9D, 0xD0, 0x83 } } { 0xFC1BCDB0, 0x7D31, 0x49aa, {0x93, 0x6A, 0xA4, 0x60, 0x0D, 0x9D, 0xD0, 0x83 } }
//
// Forward reference for pure ANSI compatability
//
typedef struct _EFI_CRC32_GUIDED_SECTION_EXTRACTION_PROTOCOL EFI_CRC32_GUID_SECTION_EXTRACTION_PROTOCOL;
// //
// The data structures are the same as GuidedSectionExtraction protocol only the GUID's are different // The data structures are the same as GuidedSectionExtraction protocol only the GUID's are different
// //

View File

@ -1,121 +0,0 @@
/** @file
The user Customized Decompress Protocol Interface
Copyright (c) 2006 - 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.
**/
#ifndef __CUSTOMIZED_DECOMPRESS_H__
#define __CUSTOMIZED_DECOMPRESS_H__
#define EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL_GUID \
{ 0x9a44198e, 0xa4a2, 0x44e6, {0x8a, 0x1f, 0x39, 0xbe, 0xfd, 0xac, 0x89, 0x6f } }
typedef struct _EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL;
/**
The GetInfo() function retrieves the size of the uncompressed buffer
and the temporary scratch buffer required to decompress the buffer
specified by Source and SourceSize. If the size of the uncompressed
buffer or the size of the scratch buffer cannot be determined from
the compressed data specified by Source and SourceData, then
EFI_INVALID_PARAMETER is returned. Otherwise, the size of the uncompressed
buffer is returned in DestinationSize, the size of the scratch buffer is
returned in ScratchSize, and EFI_SUCCESS is returned.
The GetInfo() function does not have scratch buffer available to perform
a thorough checking of the validity of the source data. It just retrieves
the 'Original Size' field from the beginning bytes of the source data and
output it as DestinationSize. And ScratchSize is specific to the decompression
implementation.
@param This The protocol instance pointer
@param Source The source buffer containing the compressed data.
@param SourceSize The size, in bytes, of source buffer.
@param DestinationSize A pointer to the size, in bytes, of the uncompressed buffer
that will be generated when the compressed buffer specified
by Source and SourceSize is decompressed.
@param ScratchSize A pointer to the size, in bytes, of the scratch buffer that
is required to decompress the compressed buffer specified by
Source and SourceSize.
@retval EFI_SUCCESS The size of the uncompressed data was returned in DestinationSize
and the size of the scratch buffer was returned in ScratchSize.
@retval EFI_INVALID_PARAMETER
The size of the uncompressed data or the size of the scratch
buffer cannot be determined from the compressed data specified by
Source and SourceData.
--*/
typedef
EFI_STATUS
(EFIAPI *EFI_CUSTOMIZED_DECOMPRESS_GET_INFO) (
IN EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL *This,
IN VOID *Source,
IN UINT32 SourceSize,
OUT UINT32 *DestinationSize,
OUT UINT32 *ScratchSize
);
/**
The Decompress() function extracts decompressed data to its original form.
This protocol is designed so that the decompression algorithm can be
implemented without using any memory services. As a result, the
Decompress() function is not allowed to call AllocatePool() or
AllocatePages() in its implementation. It is the caller's responsibility
to allocate and free the Destination and Scratch buffers.
If the compressed source data specified by Source and SourceSize is
sucessfully decompressed into Destination, then EFI_SUCCESS is returned.
If the compressed source data specified by Source and SourceSize is not in
a valid compressed data format, then EFI_INVALID_PARAMETER is returned.
@param This The protocol instance pointer
@param Source The source buffer containing the compressed data.
@param SourceSize The size of source data.
@param Destination On output, the destination buffer that contains
the uncompressed data.
@param DestinationSize The size of destination buffer. The size of destination
buffer needed is obtained from GetInfo().
@param Scratch A temporary scratch buffer that is used to perform the
decompression.
@param ScratchSize The size of scratch buffer. The size of scratch buffer needed
is obtained from GetInfo().
@retval EFI_SUCCESS Decompression completed successfully, and the uncompressed
buffer is returned in Destination.
@retval EFI_INVALID_PARAMETER
The source buffer specified by Source and SourceSize is
corrupted (not in a valid compressed format).
**/
typedef
EFI_STATUS
(EFIAPI *EFI_CUSTOMIZED_DECOMPRESS_DECOMPRESS) (
IN EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL *This,
IN VOID* Source,
IN UINT32 SourceSize,
IN OUT VOID* Destination,
IN UINT32 DestinationSize,
IN OUT VOID* Scratch,
IN UINT32 ScratchSize
);
struct _EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL {
EFI_CUSTOMIZED_DECOMPRESS_GET_INFO GetInfo;
EFI_CUSTOMIZED_DECOMPRESS_DECOMPRESS Decompress;
};
extern EFI_GUID gEfiCustomizedDecompressProtocolGuid;
#endif

View File

@ -1,6 +1,8 @@
/*++ /** @file
Copyright (c) 2007, Intel Corporation EFI Deferred Procedure Call Protocol
Copyright (c) 2007 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -9,17 +11,7 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: **/
Dpc.h
Abstract:
EFI Deferred Procedure Call Protocol
Revision History
--*/
#ifndef __DPC_H__ #ifndef __DPC_H__

View File

@ -1,121 +0,0 @@
/** @file
The Tiano Decompress Protocol Interface
Copyright (c) 2006 - 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.
**/
#ifndef __EDK_DECOMPRESS_H__
#define __EDK_DECOMPRESS_H__
#define EFI_TIANO_DECOMPRESS_PROTOCOL_GUID \
{ 0xe84cf29c, 0x191f, 0x4eae, {0x96, 0xe1, 0xf4, 0x6a, 0xec, 0xea, 0xea, 0x0b } }
typedef struct _EFI_TIANO_DECOMPRESS_PROTOCOL EFI_TIANO_DECOMPRESS_PROTOCOL;
/**
The GetInfo() function retrieves the size of the uncompressed buffer
and the temporary scratch buffer required to decompress the buffer
specified by Source and SourceSize. If the size of the uncompressed
buffer or the size of the scratch buffer cannot be determined from
the compressed data specified by Source and SourceData, then
EFI_INVALID_PARAMETER is returned. Otherwise, the size of the uncompressed
buffer is returned in DestinationSize, the size of the scratch buffer is
returned in ScratchSize, and EFI_SUCCESS is returned.
The GetInfo() function does not have scratch buffer available to perform
a thorough checking of the validity of the source data. It just retrieves
the 'Original Size' field from the beginning bytes of the source data and
output it as DestinationSize. And ScratchSize is specific to the decompression
implementation.
@param This The protocol instance pointer
@param Source The source buffer containing the compressed data.
@param SourceSize The size, in bytes, of source buffer.
@param DestinationSize A pointer to the size, in bytes, of the uncompressed buffer
that will be generated when the compressed buffer specified
by Source and SourceSize is decompressed.
@param ScratchSize A pointer to the size, in bytes, of the scratch buffer that
is required to decompress the compressed buffer specified by
Source and SourceSize.
@retval EFI_SUCCESS The size of the uncompressed data was returned in DestinationSize
and the size of the scratch buffer was returned in ScratchSize.
@retval EFI_INVALID_PARAMETER
The size of the uncompressed data or the size of the scratch
buffer cannot be determined from the compressed data specified by
Source and SourceData.
--*/
typedef
EFI_STATUS
(EFIAPI *EFI_TIANO_DECOMPRESS_GET_INFO) (
IN EFI_TIANO_DECOMPRESS_PROTOCOL *This,
IN VOID *Source,
IN UINT32 SourceSize,
OUT UINT32 *DestinationSize,
OUT UINT32 *ScratchSize
);
/**
The Decompress() function extracts decompressed data to its original form.
This protocol is designed so that the decompression algorithm can be
implemented without using any memory services. As a result, the
Decompress() function is not allowed to call AllocatePool() or
AllocatePages() in its implementation. It is the caller's responsibility
to allocate and free the Destination and Scratch buffers.
If the compressed source data specified by Source and SourceSize is
sucessfully decompressed into Destination, then EFI_SUCCESS is returned.
If the compressed source data specified by Source and SourceSize is not in
a valid compressed data format, then EFI_INVALID_PARAMETER is returned.
@param This The protocol instance pointer
@param Source The source buffer containing the compressed data.
@param SourceSize The size of source data.
@param Destination On output, the destination buffer that contains
the uncompressed data.
@param DestinationSize The size of destination buffer. The size of destination
buffer needed is obtained from GetInfo().
@param Scratch A temporary scratch buffer that is used to perform the
decompression.
@param ScratchSize The size of scratch buffer. The size of scratch buffer needed
is obtained from GetInfo().
@retval EFI_SUCCESS Decompression completed successfully, and the uncompressed
buffer is returned in Destination.
@retval EFI_INVALID_PARAMETER
The source buffer specified by Source and SourceSize is
corrupted (not in a valid compressed format).
**/
typedef
EFI_STATUS
(EFIAPI *EFI_TIANO_DECOMPRESS_DECOMPRESS) (
IN EFI_TIANO_DECOMPRESS_PROTOCOL *This,
IN VOID* Source,
IN UINT32 SourceSize,
IN OUT VOID* Destination,
IN UINT32 DestinationSize,
IN OUT VOID* Scratch,
IN UINT32 ScratchSize
);
struct _EFI_TIANO_DECOMPRESS_PROTOCOL {
EFI_TIANO_DECOMPRESS_GET_INFO GetInfo;
EFI_TIANO_DECOMPRESS_DECOMPRESS Decompress;
};
extern EFI_GUID gEfiTianoDecompressProtocolGuid;
#endif

View File

@ -1,6 +1,6 @@
/** @file /** @file
This is a simple fault tolerant write driver, based on PlatformFd library. Fault tolerant write lite protocol defines only one interface to write
And it only supports write BufferSize <= SpareAreaLength. the buffer to the fault tolerant storage.
Copyright (c) 2006 - 2008, Intel Corporation. <BR> Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
@ -33,7 +33,7 @@ typedef struct _EFI_FTW_LITE_PROTOCOL EFI_FTW_LITE_PROTOCOL;
manner, ensuring at all times that either the original contents or manner, ensuring at all times that either the original contents or
the modified contents are available. the modified contents are available.
@param This Calling context @param This The pointer to this protocol instance.
@param FvBlockHandle The handle of FVB protocol that provides services @param FvBlockHandle The handle of FVB protocol that provides services
for reading, writing, and erasing the target for reading, writing, and erasing the target
block. block.
@ -45,11 +45,10 @@ typedef struct _EFI_FTW_LITE_PROTOCOL EFI_FTW_LITE_PROTOCOL;
@retval EFI_SUCCESS The function completed successfully @retval EFI_SUCCESS The function completed successfully
@retval EFI_ABORTED The function could not complete successfully. @retval EFI_ABORTED The function could not complete successfully.
@retval EFI_BAD_BUFFER_SIZE The write would span a block boundary, which is @retval EFI_BAD_BUFFER_SIZE The input data can't fit within the target block.
not a valid action.
@retval EFI_ACCESS_DENIED No writes have been allocated. @retval EFI_ACCESS_DENIED No writes have been allocated.
@retval EFI_NOT_READY The last write has not been completed. Restart () @retval EFI_OUT_OF_RESOURCES Cannot allocate enough memory resource.
must be called to complete it. @retval EFI_NOT_FOUND Cannot find FVB protocol by handle.
**/ **/
typedef typedef

View File

@ -1,10 +1,9 @@
/** @file /** @file
This file declares Firmware Volume Dispatch protocol. This file declares Firmware Volume Dispatch protocol.
Presence of this protocol tells the dispatch to dispatch from this Firmware Presence of this protocol tells the core dispatcher to dispatch this Firmware Volume.
Volume
Copyright (c) 2006, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at

View File

@ -25,7 +25,7 @@ typedef struct _EFI_FVB_EXTENSION_PROTOCOL EFI_FVB_EXTENSION_PROTOCOL;
// FVB Extension Function Prototypes // FVB Extension Function Prototypes
// //
/** /**
Erases and initializes a specified range of a firmware volume Erases and initializes a specified range of a firmware volume block
@param[in] This Pointer to the FVB Extension protocol instance @param[in] This Pointer to the FVB Extension protocol instance
@param[in] StartLba The starting logical block index to be erased @param[in] StartLba The starting logical block index to be erased
@ -34,19 +34,20 @@ typedef struct _EFI_FVB_EXTENSION_PROTOCOL EFI_FVB_EXTENSION_PROTOCOL;
@param[in] LastLba The last logical block index to be erased @param[in] LastLba The last logical block index to be erased
@param[in] OffsetLastLba Offset into the last block at which to end erasing @param[in] OffsetLastLba Offset into the last block at which to end erasing
@retval EFI_EFI_SUCCESS Range was erased @retval EFI_SUCCESS The specified range was erased successfully
@retval EFI_INVALID_PARAMETER invalid parameter @retval EFI_ACCESS_DENIED The firmware volume block is in the WriteDisabled state
@retval EFI_UNSUPPORTED Range can not be erased @retval EFI_DEVICE_ERROR The block device is not functioning correctly and
could not be written. Firmware device may have been
partially erased
**/ **/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI * EFI_FV_ERASE_CUSTOM_BLOCK) ( (EFIAPI * EFI_FV_ERASE_CUSTOM_BLOCK) (
IN EFI_FVB_EXTENSION_PROTOCOL *This, IN EFI_FVB_EXTENSION_PROTOCOL *This,
IN EFI_LBA StartLba, IN EFI_LBA StartLba,
IN UINTN OffsetStartLba, IN UINTN OffsetStartLba,
IN EFI_LBA LastLba, IN EFI_LBA LastLba,
IN UINTN OffsetLastLba IN UINTN OffsetLastLba
); );
// //

View File

@ -1,6 +1,5 @@
/** @file /** @file
The EFI generic memory test protocol interface. This protocol defines the EFI generic memory test interfaces in Dxe phase.
For more information please look at EfiMemoryTest.doc
Copyright (c) 2006 - 2008, Intel Corporation. <BR> Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
@ -47,7 +46,7 @@ typedef enum {
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_MEMORY_TEST_INIT) ( (EFIAPI *EFI_MEMORY_TEST_INIT) (
IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This, IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This,
IN EXTENDMEM_COVERAGE_LEVEL Level, IN EXTENDMEM_COVERAGE_LEVEL Level,
OUT BOOLEAN *RequireSoftECCInit OUT BOOLEAN *RequireSoftECCInit
) )
@ -71,6 +70,7 @@ EFI_STATUS
internally. internally.
@retval EFI_NOT_FOUND Indicate all the non-tested memory blocks have @retval EFI_NOT_FOUND Indicate all the non-tested memory blocks have
already go through. already go through.
@retval EFI_DEVICE_ERROR Mis-compare error, and no agent can handle it
**/ **/
typedef typedef
@ -110,15 +110,14 @@ EFI_STATUS
@param StartAddress The start address of the memory range. @param StartAddress The start address of the memory range.
@param Length The memory range's length. @param Length The memory range's length.
@retval EFI_SUCCESS The compatible memory range pass the memory test. @retval EFI_SUCCESS The compatible memory range pass the memory test.
@retval EFI_DEVICE_ERROR The compatible memory range test find memory error @retval EFI_INVALID_PARAMETER The compatible memory range must be below 16M.
and also return return the error address.
**/ **/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_MEMORY_TEST_COMPATIBLE_RANGE) ( (EFIAPI *EFI_MEMORY_TEST_COMPATIBLE_RANGE) (
IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This, IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This,
IN EFI_PHYSICAL_ADDRESS StartAddress, IN EFI_PHYSICAL_ADDRESS StartAddress,
IN UINT64 Length IN UINT64 Length
) )

View File

@ -1,6 +1,7 @@
/** @file /** @file
Load File protocol. Load File protocol provides capability to load and unload EFI image into
memory and execute it.
Load file protocol exists to supports the addition of new boot devices, Load file protocol exists to supports the addition of new boot devices,
and to support booting from devices that do not map well to file system. and to support booting from devices that do not map well to file system.

View File

@ -1,6 +1,7 @@
/*++ /** @file
This file defines NicIp4Config Protocol.
Copyright (c) 2006, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -9,13 +10,7 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: **/
NicIp4Config.h
Abstract:
--*/
#ifndef __NIC_IP4_CONFIG_H__ #ifndef __NIC_IP4_CONFIG_H__
#define __NIC_IP4_CONFIG_H__ #define __NIC_IP4_CONFIG_H__
@ -38,7 +33,7 @@ Abstract:
typedef struct _EFI_NIC_IP4_CONFIG_PROTOCOL EFI_NIC_IP4_CONFIG_PROTOCOL; typedef struct _EFI_NIC_IP4_CONFIG_PROTOCOL EFI_NIC_IP4_CONFIG_PROTOCOL;
enum { typedef enum {
// //
// Config source: dhcp or static // Config source: dhcp or static
// //
@ -48,7 +43,7 @@ enum {
IP4_NIC_NAME_LENGTH = 64, IP4_NIC_NAME_LENGTH = 64,
MAX_IP4_CONFIG_IN_VARIABLE = 16 MAX_IP4_CONFIG_IN_VARIABLE = 16
}; } IP4_CONFIG_TYPE;
// //
// The following structures are used by drivers/applications other // The following structures are used by drivers/applications other

View File

@ -1,5 +1,6 @@
/** @file /** @file
EFI OEM Badging Protocol definition header file EFI OEM Badging Protocol defines the interface to get the OEM badging
image with the dispaly attribute. This protocol can be produced based on OEM images.
Copyright (c) 2006 - 2008, Intel Corporation. <BR> Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
@ -45,7 +46,23 @@ typedef enum {
EfiBadgingDisplayAttributeCustomized EfiBadgingDisplayAttributeCustomized
} EFI_BADGING_DISPLAY_ATTRIBUTE; } EFI_BADGING_DISPLAY_ATTRIBUTE;
/**
Load an OEM image and return its data as well as attributes.
@param This Pointer to this protocol instance.
@param Instance The visiable image instance is founded and returned from the input instance.
@param Format Format of the image such as BMP,JPEG,etc.
@param ImageData Image data returned.
@param ImageSize Size of the image returned.
@param Attribute Display attributes of the image returned.
@param CoordinateX X coordinate of the image.
@param CoordinateY Y coordinate of the image.
@retval EFI_SUCCESS Image has been fetched successfully.
@retval EFI_NOT_FOUND The specified image could not be found.
**/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_BADGING_GET_IMAGE) ( (EFIAPI *EFI_BADGING_GET_IMAGE) (

View File

@ -1,6 +1,7 @@
/** @file /** @file
This file defines the Print protocol. This print protocol defines six basic print functions to
print the format unicode and ascii string.
Copyright (c) 2006 - 2008, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials

View File

@ -1,6 +1,7 @@
/*++ /** @file
EFI PXE DHCPv4 protocol definition
Copyright (c) 2006, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -9,13 +10,7 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: **/
PxeDhcp4.h
Abstract:
EFI PXE DHCPv4 protocol definition
--*/
#ifndef _PXEDHCP4_H_ #ifndef _PXEDHCP4_H_
#define _PXEDHCP4_H_ #define _PXEDHCP4_H_
@ -168,23 +163,23 @@ typedef union _DHCP4_PACKET {
#define DHCP4_NIS_SERVERS 41 #define DHCP4_NIS_SERVERS 41
#define DHCP4_NTP_SERVERS 42 #define DHCP4_NTP_SERVERS 42
#define DHCP4_VENDOR_SPECIFIC 43 #define DHCP4_VENDOR_SPECIFIC 43
# define PXE_MTFTP_IP 1 #define PXE_MTFTP_IP 1
# define PXE_MTFTP_CPORT 2 #define PXE_MTFTP_CPORT 2
# define PXE_MTFTP_SPORT 3 #define PXE_MTFTP_SPORT 3
# define PXE_MTFTP_TMOUT 4 #define PXE_MTFTP_TMOUT 4
# define PXE_MTFTP_DELAY 5 #define PXE_MTFTP_DELAY 5
# define PXE_DISCOVERY_CONTROL 6 #define PXE_DISCOVERY_CONTROL 6
# define PXE_DISABLE_BROADCAST_DISCOVERY 0x01 #define PXE_DISABLE_BROADCAST_DISCOVERY 0x01
# define PXE_DISABLE_MULTICAST_DISCOVERY 0x02 #define PXE_DISABLE_MULTICAST_DISCOVERY 0x02
# define PXE_ACCEPT_ONLY_PXE_BOOT_SERVERS 0x04 #define PXE_ACCEPT_ONLY_PXE_BOOT_SERVERS 0x04
# define PXE_DO_NOT_PROMPT 0x08 #define PXE_DO_NOT_PROMPT 0x08
# define PXE_DISCOVERY_MCAST_ADDR 7 #define PXE_DISCOVERY_MCAST_ADDR 7
# define PXE_BOOT_SERVERS 8 #define PXE_BOOT_SERVERS 8
# define PXE_BOOT_MENU 9 #define PXE_BOOT_MENU 9
# define PXE_BOOT_PROMPT 10 #define PXE_BOOT_PROMPT 10
# define PXE_MCAST_ADDRS_ALLOC 11 #define PXE_MCAST_ADDRS_ALLOC 11
# define PXE_CREDENTIAL_TYPES 12 #define PXE_CREDENTIAL_TYPES 12
# define PXE_BOOT_ITEM 71 #define PXE_BOOT_ITEM 71
#define DHCP4_NBNS_SERVERS 44 #define DHCP4_NBNS_SERVERS 44
#define DHCP4_NBDD_SERVERS 45 #define DHCP4_NBDD_SERVERS 45
#define DHCP4_NETBIOS_NODE_TYPE 46 #define DHCP4_NETBIOS_NODE_TYPE 46
@ -194,23 +189,23 @@ typedef union _DHCP4_PACKET {
#define DHCP4_REQUESTED_IP_ADDRESS 50 #define DHCP4_REQUESTED_IP_ADDRESS 50
#define DHCP4_LEASE_TIME 51 #define DHCP4_LEASE_TIME 51
#define DHCP4_OPTION_OVERLOAD 52 #define DHCP4_OPTION_OVERLOAD 52
# define DHCP4_OVERLOAD_FNAME 1 #define DHCP4_OVERLOAD_FNAME 1
# define DHCP4_OVERLOAD_SNAME 2 #define DHCP4_OVERLOAD_SNAME 2
# define DHCP4_OVERLOAD_FNAME_AND_SNAME 3 #define DHCP4_OVERLOAD_FNAME_AND_SNAME 3
#define DHCP4_MESSAGE_TYPE 53 #define DHCP4_MESSAGE_TYPE 53
# define DHCP4_MESSAGE_TYPE_DISCOVER 1 #define DHCP4_MESSAGE_TYPE_DISCOVER 1
# define DHCP4_MESSAGE_TYPE_OFFER 2 #define DHCP4_MESSAGE_TYPE_OFFER 2
# define DHCP4_MESSAGE_TYPE_REQUEST 3 #define DHCP4_MESSAGE_TYPE_REQUEST 3
# define DHCP4_MESSAGE_TYPE_DECLINE 4 #define DHCP4_MESSAGE_TYPE_DECLINE 4
# define DHCP4_MESSAGE_TYPE_ACK 5 #define DHCP4_MESSAGE_TYPE_ACK 5
# define DHCP4_MESSAGE_TYPE_NAK 6 #define DHCP4_MESSAGE_TYPE_NAK 6
# define DHCP4_MESSAGE_TYPE_RELEASE 7 #define DHCP4_MESSAGE_TYPE_RELEASE 7
# define DHCP4_MESSAGE_TYPE_INFORM 8 #define DHCP4_MESSAGE_TYPE_INFORM 8
#define DHCP4_SERVER_IDENTIFIER 54 #define DHCP4_SERVER_IDENTIFIER 54
#define DHCP4_PARAMETER_REQUEST_LIST 55 #define DHCP4_PARAMETER_REQUEST_LIST 55
#define DHCP4_ERROR_MESSAGE 56 #define DHCP4_ERROR_MESSAGE 56
#define DHCP4_MAX_MESSAGE_SIZE 57 #define DHCP4_MAX_MESSAGE_SIZE 57
# define DHCP4_DEFAULT_MAX_MESSAGE_SIZE 576 #define DHCP4_DEFAULT_MAX_MESSAGE_SIZE 576
#define DHCP4_RENEWAL_TIME 58 #define DHCP4_RENEWAL_TIME 58
#define DHCP4_REBINDING_TIME 59 #define DHCP4_REBINDING_TIME 59
#define DHCP4_CLASS_IDENTIFIER 60 #define DHCP4_CLASS_IDENTIFIER 60

View File

@ -1,6 +1,7 @@
/*++ /** @file
EFI PXE DHCP4 Callback protocol definition.
Copyright (c) 2006, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -9,16 +10,10 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: **/
PxeDhcp4Callback.h
Abstract: #ifndef __PXE_DHCP4CALLBACK_H__
EFI PXE DHCP4 Callback protocol definition. #define __PXE_DHCP4CALLBACK_H__
--*/
#ifndef _PXE_DHCP4CALLBACK_H
#define _PXE_DHCP4CALLBACK_H
#include <Protocol/PxeDhcp4.h> #include <Protocol/PxeDhcp4.h>
// //

View File

@ -1,6 +1,8 @@
/*++ /** @file
Copyright (c) 2004, Intel Corporation This file defines EFI Transmission Control Protocol.
Copyright (c) 2004 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -9,23 +11,11 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: **/
tcp.h
Abstract:
EFI Transmission Control Protocol
#ifndef __EFI_TCP_H__
Revision History #define __EFI_TCP_H__
--*/
#ifndef _EFITCP_H
#define _EFITCP_H
#include <Protocol/PxeBaseCode.h> #include <Protocol/PxeBaseCode.h>

View File

@ -1,83 +0,0 @@
/*++
Copyright (c) 2006 - 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:
UsbAtapi.h
Abstract:
EFI Atapi Protocol definition.
Revision History
--*/
#ifndef __EFI_USB_ATAPI_H__
#define __EFI_USB_ATAPI_H__
//
// Transfer protocol types
//
#define BOT 0x50
#define CBI0 0x00
#define CBI1 0x01
//
// SubClass Code (defines command set)
//
#define EFI_USB_SUBCLASS_RBC 0x01
#define EFI_USB_SUBCLASS_ATAPI 0x02
#define EFI_USB_SUBCLASS_QIC_157 0x03
#define EFI_USB_SUBCLASS_UFI 0x04
#define EFI_USB_SUBCLASS_SFF_8070i 0x05
#define EFI_USB_SUBCLASS_SCSI 0x06
#define EFI_USB_SUBCLASS_RESERVED_LOW 0x07
#define EFI_USB_SUBCLASS_RESERVED_HIGH 0xff
//
// Global GUID for transfer protocol interface
//
#define EFI_USB_ATAPI_PROTOCOL_GUID \
{ 0x2B2F68DA, 0x0CD2, 0x44cf, {0x8E, 0x8B, 0xBB, 0xA2, 0x0B, 0x1B, 0x5B, 0x75 } }
typedef struct _EFI_USB_ATAPI_PROTOCOL EFI_USB_ATAPI_PROTOCOL;
typedef
EFI_STATUS
(EFIAPI *EFI_USB_ATAPI_PACKET_CMD) (
IN EFI_USB_ATAPI_PROTOCOL *This,
IN VOID *Command,
IN UINT8 CommandSize,
IN VOID *DataBuffer,
IN UINT32 BufferLength,
IN EFI_USB_DATA_DIRECTION Direction,
IN UINT16 TimeOutInMilliSeconds
);
typedef
EFI_STATUS
(EFIAPI *EFI_USB_MASS_STORAGE_RESET) (
IN EFI_USB_ATAPI_PROTOCOL *This,
IN BOOLEAN ExtendedVerification
);
//
// Protocol Interface Structure
//
struct _EFI_USB_ATAPI_PROTOCOL {
EFI_USB_ATAPI_PACKET_CMD UsbAtapiPacketCmd;
EFI_USB_MASS_STORAGE_RESET UsbAtapiReset;
UINT32 CommandProtocol;
};
extern EFI_GUID gEfiUsbAtapiProtocolGuid;
#endif

View File

@ -1,7 +1,7 @@
/**@file /** @file
Header file for EFI Variable Services. EDK II specific implementation of UEFI variable depend on data structure.
Copyright (c) 2006 - 2007 Intel Corporation. <BR> Copyright (c) 2006 - 2008 Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at

View File

@ -1,7 +1,5 @@
/** @file /** @file
Defines data structure that is the headers found at the runtime
updatable firmware volumes.
The header structure of FTW working block region. The header structure of FTW working block region.
Copyright (c) 2006 - 2008, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation

View File

@ -84,14 +84,10 @@
gEfiFaultTolerantWriteLiteProtocolGuid = { 0x3F557189, 0x8DAE, 0x45AE, { 0xA0, 0xB3, 0x2B, 0x99, 0xCA, 0x7A, 0xA7, 0xA0 }} gEfiFaultTolerantWriteLiteProtocolGuid = { 0x3F557189, 0x8DAE, 0x45AE, { 0xA0, 0xB3, 0x2B, 0x99, 0xCA, 0x7A, 0xA7, 0xA0 }}
gEfiConsoleControlProtocolGuid = { 0xF42F7782, 0x012E, 0x4C12, { 0x99, 0x56, 0x49, 0xF9, 0x43, 0x04, 0xF7, 0x21 }} gEfiConsoleControlProtocolGuid = { 0xF42F7782, 0x012E, 0x4C12, { 0x99, 0x56, 0x49, 0xF9, 0x43, 0x04, 0xF7, 0x21 }}
gEfiOEMBadgingProtocolGuid = { 0x170E13C0, 0xBF1B, 0x4218, { 0x87, 0x1D, 0x2A, 0xBD, 0xC6, 0xF8, 0x87, 0xBC }} gEfiOEMBadgingProtocolGuid = { 0x170E13C0, 0xBF1B, 0x4218, { 0x87, 0x1D, 0x2A, 0xBD, 0xC6, 0xF8, 0x87, 0xBC }}
gEfiUsbAtapiProtocolGuid = { 0x2B2F68DA, 0x0CD2, 0x44CF, { 0x8E, 0x8B, 0xBB, 0xA2, 0x0B, 0x1B, 0x5B, 0x75 }}
gPerformanceProtocolGuid = { 0x76B6BDFA, 0x2ACD, 0x4462, { 0x9E, 0x3F, 0xCB, 0x58, 0xC9, 0x69, 0xD9, 0x37 }} gPerformanceProtocolGuid = { 0x76B6BDFA, 0x2ACD, 0x4462, { 0x9E, 0x3F, 0xCB, 0x58, 0xC9, 0x69, 0xD9, 0x37 }}
gEfiCrc32GuidedSectionExtractionProtocolGuid = { 0xFC1BCDB0, 0x7D31, 0x49aa, {0x93, 0x6A, 0xA4, 0x60, 0x0D, 0x9D, 0xD0, 0x83 } } gEfiCrc32GuidedSectionExtractionProtocolGuid = { 0xFC1BCDB0, 0x7D31, 0x49aa, {0x93, 0x6A, 0xA4, 0x60, 0x0D, 0x9D, 0xD0, 0x83 } }
gEfiFirmwareVolumeDispatchProtocolGuid = { 0x7AA35A69, 0x506C, 0x444F, { 0xA7, 0xAF, 0x69, 0x4B, 0xF5, 0x6F, 0x71, 0xC8 }} gEfiFirmwareVolumeDispatchProtocolGuid = { 0x7AA35A69, 0x506C, 0x444F, { 0xA7, 0xAF, 0x69, 0x4B, 0xF5, 0x6F, 0x71, 0xC8 }}
gEfiTianoDecompressProtocolGuid = { 0xE84CF29C, 0x191F, 0x4EAE, { 0x96, 0xE1, 0xF4, 0x6A, 0xEC, 0xEA, 0xEA, 0x0B }}
gEfiCustomizedDecompressProtocolGuid = { 0x9A44198E, 0xA4A2, 0x44E6, { 0x8A, 0x1F, 0x39, 0xBE, 0xFD, 0xAC, 0x89, 0x6F }}
gEfiNicIp4ConfigProtocolGuid = {0xdca3d4d, 0x12da, 0x4728, { 0xbf, 0x7e, 0x86, 0xce, 0xb9, 0x28, 0xd0, 0x67 }} gEfiNicIp4ConfigProtocolGuid = {0xdca3d4d, 0x12da, 0x4728, { 0xbf, 0x7e, 0x86, 0xce, 0xb9, 0x28, 0xd0, 0x67 }}
gEfiNicIp4ConfigVariableGuid = {0xd8944553, 0xc4dd, 0x41f4, { 0x9b, 0x30, 0xe1, 0x39, 0x7c, 0xfb, 0x26, 0x7b }} gEfiNicIp4ConfigVariableGuid = {0xd8944553, 0xc4dd, 0x41f4, { 0x9b, 0x30, 0xe1, 0x39, 0x7c, 0xfb, 0x26, 0x7b }}
gEfiTcpProtocolGuid = {0x02b3d5f2, 0xac28, 0x11d3, { 0x9a, 0x2d, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d }} gEfiTcpProtocolGuid = {0x02b3d5f2, 0xac28, 0x11d3, { 0x9a, 0x2d, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d }}

View File

@ -1017,7 +1017,7 @@ BdsCreateDevOrder (
} }
Status = gRT->SetVariable ( Status = gRT->SetVariable (
VarLegacyDevOrder, VAR_LEGACY_DEV_ORDER,
&EfiLegacyDevOrderGuid, &EfiLegacyDevOrderGuid,
VAR_FLAG, VAR_FLAG,
TotalSize, TotalSize,
@ -1107,7 +1107,7 @@ BdsUpdateLegacyDevOrder (
); );
DevOrder = (UINT8 *) BdsLibGetVariableAndSize ( DevOrder = (UINT8 *) BdsLibGetVariableAndSize (
VarLegacyDevOrder, VAR_LEGACY_DEV_ORDER,
&EfiLegacyDevOrderGuid, &EfiLegacyDevOrderGuid,
&DevOrderSize &DevOrderSize
); );
@ -1456,7 +1456,7 @@ BdsUpdateLegacyDevOrder (
SafeFreePool (DevOrder); SafeFreePool (DevOrder);
Status = gRT->SetVariable ( Status = gRT->SetVariable (
VarLegacyDevOrder, VAR_LEGACY_DEV_ORDER,
&EfiLegacyDevOrderGuid, &EfiLegacyDevOrderGuid,
VAR_FLAG, VAR_FLAG,
TotalSize, TotalSize,
@ -1493,7 +1493,7 @@ BdsSetBootPriority4SameTypeDev (
UINTN Index; UINTN Index;
DevOrder = BdsLibGetVariableAndSize ( DevOrder = BdsLibGetVariableAndSize (
VarLegacyDevOrder, VAR_LEGACY_DEV_ORDER,
&EfiLegacyDevOrderGuid, &EfiLegacyDevOrderGuid,
&DevOrderSize &DevOrderSize
); );

View File

@ -1236,7 +1236,7 @@ UpdateSetLegacyDeviceOrderPage (
// Get Device Order from variable // Get Device Order from variable
// //
VarData = BdsLibGetVariableAndSize ( VarData = BdsLibGetVariableAndSize (
VarLegacyDevOrder, VAR_LEGACY_DEV_ORDER,
&EfiLegacyDevOrderGuid, &EfiLegacyDevOrderGuid,
&VarSize &VarSize
); );

View File

@ -1151,7 +1151,7 @@ Var_UpdateBBSOption (
// Update the Variable "LegacyDevOrder" // Update the Variable "LegacyDevOrder"
// //
VarData = (UINT8 *) BdsLibGetVariableAndSize ( VarData = (UINT8 *) BdsLibGetVariableAndSize (
VarLegacyDevOrder, VAR_LEGACY_DEV_ORDER,
&EfiLegacyDevOrderGuid, &EfiLegacyDevOrderGuid,
&VarSize &VarSize
); );
@ -1216,7 +1216,7 @@ Var_UpdateBBSOption (
SafeFreePool (NewOrder); SafeFreePool (NewOrder);
Status = gRT->SetVariable ( Status = gRT->SetVariable (
VarLegacyDevOrder, VAR_LEGACY_DEV_ORDER,
&EfiLegacyDevOrderGuid, &EfiLegacyDevOrderGuid,
VAR_FLAG, VAR_FLAG,
VarSize, VarSize,