From 504214c4870e9183418014634268ce630eb5332a Mon Sep 17 00:00:00 2001 From: lgao4 Date: Wed, 9 Apr 2008 07:07:50 +0000 Subject: [PATCH] Add comments and DoxyGen format for these files. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5028 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/Dxe/DebugImageInfo.h | 18 +- MdeModulePkg/Core/Dxe/Dispatcher/dependency.c | 24 +- MdeModulePkg/Core/Dxe/DxeMain.h | 4 +- .../Core/Dxe/DxeMain/DxeProtocolNotify.c | 20 +- MdeModulePkg/Core/Dxe/Event/event.c | 16 +- MdeModulePkg/Core/Dxe/Event/execdata.c | 19 +- MdeModulePkg/Core/Dxe/Event/timer.c | 18 +- MdeModulePkg/Core/Dxe/Event/tpl.c | 16 +- MdeModulePkg/Core/Dxe/Exec.h | 16 +- MdeModulePkg/Core/Dxe/FwVol/Ffs.c | 16 +- MdeModulePkg/Core/Dxe/FwVol/FwVolAttrib.c | 16 +- MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c | 16 +- MdeModulePkg/Core/Dxe/FwVol/FwVolWrite.c | 16 +- MdeModulePkg/Core/Dxe/FwVolBlock.h | 21 +- MdeModulePkg/Core/Dxe/FwVolDriver.h | 3 +- MdeModulePkg/Core/Dxe/Gcd/gcd.c | 19 +- MdeModulePkg/Core/Dxe/Hand/DriverSupport.c | 18 +- MdeModulePkg/Core/Dxe/Hand/Notify.c | 20 +- MdeModulePkg/Core/Dxe/Hand/handle.c | 20 +- MdeModulePkg/Core/Dxe/Hand/locate.c | 18 +- MdeModulePkg/Core/Dxe/Image.h | 18 +- MdeModulePkg/Core/Dxe/Image/Image.c | 16 +- MdeModulePkg/Core/Dxe/Image/ImageFile.c | 20 +- MdeModulePkg/Core/Dxe/Library.h | 14 +- MdeModulePkg/Core/Dxe/Mem/Page.c | 19 +- MdeModulePkg/Core/Dxe/Mem/memdata.c | 19 +- MdeModulePkg/Core/Dxe/Mem/pool.c | 18 +- MdeModulePkg/Core/Dxe/Misc/DebugImageInfo.c | 18 +- .../Core/Dxe/Misc/InstallConfigurationTable.c | 17 +- MdeModulePkg/Core/Dxe/Misc/SetWatchdogTimer.c | 16 +- MdeModulePkg/Core/Dxe/Misc/Stall.c | 16 +- MdeModulePkg/Core/Dxe/gcd.h | 17 +- MdeModulePkg/Core/Dxe/hand.h | 20 +- MdeModulePkg/Core/Dxe/imem.h | 17 +- MdeModulePkg/Include/Guid/AlternateFvBlock.h | 16 +- MdeModulePkg/Include/Guid/CapsuleVendor.h | 16 +- MdeModulePkg/Include/Guid/PeiPeCoffLoader.h | 101 ++++++-- MdeModulePkg/Include/Guid/SystemNvDataGuid.h | 18 +- MdeModulePkg/Include/Guid/VariableInfo.h | 9 +- MdeModulePkg/Include/Library/CapsuleLib.h | 1 + MdeModulePkg/Include/Ppi/FlashMap.h | 32 ++- MdeModulePkg/Include/Protocol/Capsule.h | 16 +- .../Include/Protocol/CustomizedDecompress.h | 132 +++++----- MdeModulePkg/Include/Protocol/EdkDecompress.h | 132 +++++----- .../Include/Protocol/FirmwareVolumeDispatch.h | 6 - MdeModulePkg/Include/Protocol/FvbExtension.h | 33 ++- MdeModulePkg/Include/Protocol/LoadPe32Image.h | 62 +++-- MdeModulePkg/Include/Protocol/Print.h | 230 +++++++++++++++++- MdeModulePkg/Include/Protocol/TcgPlatform.h | 15 +- MdeModulePkg/Include/VariableFormat.h | 6 + MdeModulePkg/Include/WorkingBlockHeader.h | 21 +- .../DxeCrc32GuidedSectionExtractLib.c | 20 +- .../Library/EdkDxePrintLib/PrintLib.c | 19 +- MdeModulePkg/Library/EdkFvbServiceLib/Fvb.c | 5 +- MdeModulePkg/Library/EdkFvbServiceLib/Fvb.h | 7 +- .../Variable/EmuRuntimeDxe/EmuVariable.c | 17 +- .../Variable/EmuRuntimeDxe/InitVariable.c | 17 +- .../Variable/EmuRuntimeDxe/Variable.h | 15 +- .../Variable/Pei/Ipf/VariableWorker.c | 5 +- .../Universal/Variable/Pei/Variable.c | 13 +- .../Universal/Variable/Pei/Variable.h | 17 +- .../Universal/Variable/Pei/VariableWorker.c | 16 +- .../Universal/Variable/RuntimeDxe/Variable.c | 20 +- .../Universal/Variable/RuntimeDxe/Variable.h | 15 +- .../Universal/Variable/RuntimeDxe/reclaim.c | 20 +- .../WatchdogTimerDxe/WatchdogTimer.c | 21 +- .../WatchdogTimerDxe/WatchdogTimer.h | 19 +- 67 files changed, 823 insertions(+), 848 deletions(-) diff --git a/MdeModulePkg/Core/Dxe/DebugImageInfo.h b/MdeModulePkg/Core/Dxe/DebugImageInfo.h index 006f629cf2..5f05a90a52 100644 --- a/MdeModulePkg/Core/Dxe/DebugImageInfo.h +++ b/MdeModulePkg/Core/Dxe/DebugImageInfo.h @@ -1,6 +1,9 @@ -/*++ +/** @file -Copyright (c) 2006, Intel Corporation + Support functions for managing debug image info table when loading and unloading + images. + +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 @@ -9,16 +12,7 @@ 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: - - DebugImageInfo.h - -Abstract: - - Support functions for managing debug image info table when loading and unloading - images. - ---*/ +**/ #ifndef __DEBUG_IMAGE_INFO_H__ #define __DEBUG_IMAGE_INFO_H__ diff --git a/MdeModulePkg/Core/Dxe/Dispatcher/dependency.c b/MdeModulePkg/Core/Dxe/Dispatcher/dependency.c index 84c44a10ee..62bdb14e40 100644 --- a/MdeModulePkg/Core/Dxe/Dispatcher/dependency.c +++ b/MdeModulePkg/Core/Dxe/Dispatcher/dependency.c @@ -1,6 +1,12 @@ -/*++ +/** @file -Copyright (c) 2006, Intel Corporation + DXE Dispatcher Dependency Evaluator + + This routine evaluates a dependency expression (DEPENDENCY_EXPRESSION) to determine + if a driver can be scheduled for execution. The criteria for + schedulability is that the dependency expression is satisfied. + +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 @@ -9,19 +15,7 @@ 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: - - dependency.c - -Abstract: - - DXE Dispatcher Dependency Evaluator - - This routine evaluates a dependency expression (DEPENDENCY_EXPRESSION) to determine - if a driver can be scheduled for execution. The criteria for - schedulability is that the dependency expression is satisfied. - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/DxeMain.h b/MdeModulePkg/Core/Dxe/DxeMain.h index f0f57fe207..2830e10a03 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain.h +++ b/MdeModulePkg/Core/Dxe/DxeMain.h @@ -1,5 +1,7 @@ /**@file - Header file of DxeCore + + The internal header file includes the common header files, defines + internal structure and functions used by DxeCore module. Copyright (c) 2006 - 2007, Intel Corporation All rights reserved. This program and the accompanying materials diff --git a/MdeModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c b/MdeModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c index 5c9a5b8e89..a3d4bbaaac 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c +++ b/MdeModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c @@ -1,6 +1,10 @@ -/*++ +/** @file -Copyright (c) 2006 - 2007, Intel Corporation + This file deals with Architecture Protocol (AP) registration in + the Dxe Core. The mArchProtocols[] array represents a list of + events that represent the Architectural Protocols. + +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 @@ -9,17 +13,7 @@ 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: - - DxeProtocolNotify.c - -Abstract: - - This file deals with Architecture Protocol (AP) registration in - the Dxe Core. The mArchProtocols[] array represents a list of - events that represent the Architectural Protocols. - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/Event/event.c b/MdeModulePkg/Core/Dxe/Event/event.c index 81f0b1af10..13949169a0 100644 --- a/MdeModulePkg/Core/Dxe/Event/event.c +++ b/MdeModulePkg/Core/Dxe/Event/event.c @@ -1,6 +1,8 @@ -/*++ +/** @file + + UEFI Event support functions implemented in this file. -Copyright (c) 2006 - 2007, Intel Corporation +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 @@ -9,15 +11,7 @@ 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: - - event.c - -Abstract: - - EFI Event support - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/Event/execdata.c b/MdeModulePkg/Core/Dxe/Event/execdata.c index a6d388ac21..fa36e9f16b 100644 --- a/MdeModulePkg/Core/Dxe/Event/execdata.c +++ b/MdeModulePkg/Core/Dxe/Event/execdata.c @@ -1,6 +1,8 @@ -/*++ +/** @file -Copyright (c) 2006, Intel Corporation + Event data is declared in this file. + +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 @@ -9,18 +11,7 @@ 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: - - execdata.c - -Abstract: - - - - -Revision History - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/Event/timer.c b/MdeModulePkg/Core/Dxe/Event/timer.c index 0f886f96d3..7a49c2a3bd 100644 --- a/MdeModulePkg/Core/Dxe/Event/timer.c +++ b/MdeModulePkg/Core/Dxe/Event/timer.c @@ -1,6 +1,8 @@ -/*++ +/** @file + + Core Timer Services -Copyright (c) 2006, Intel Corporation +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 @@ -9,17 +11,7 @@ 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: - - timer.c - -Abstract: - - EFI Event support - -Revision History - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/Event/tpl.c b/MdeModulePkg/Core/Dxe/Event/tpl.c index 437665faed..694d731712 100644 --- a/MdeModulePkg/Core/Dxe/Event/tpl.c +++ b/MdeModulePkg/Core/Dxe/Event/tpl.c @@ -1,6 +1,8 @@ -/*++ +/** @file + + Task priority (TPL) function -Copyright (c) 2006, Intel Corporation +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 @@ -9,15 +11,7 @@ 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: - - tpl.c - -Abstract: - - Task priority function - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/Exec.h b/MdeModulePkg/Core/Dxe/Exec.h index 5df700113d..7ead363a3b 100644 --- a/MdeModulePkg/Core/Dxe/Exec.h +++ b/MdeModulePkg/Core/Dxe/Exec.h @@ -1,6 +1,8 @@ -/*++ +/** @file + + UEFI Event support functions and structure. -Copyright (c) 2006, Intel Corporation +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 @@ -9,15 +11,7 @@ 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: - - exec.h - -Abstract: - - EFI Event support - ---*/ +**/ #ifndef _EXEC_H_ #define _EXEC_H_ diff --git a/MdeModulePkg/Core/Dxe/FwVol/Ffs.c b/MdeModulePkg/Core/Dxe/FwVol/Ffs.c index 23c84b34f8..b62fab9cd9 100644 --- a/MdeModulePkg/Core/Dxe/FwVol/Ffs.c +++ b/MdeModulePkg/Core/Dxe/FwVol/Ffs.c @@ -1,6 +1,8 @@ -/*++ +/** @file + + FFS file access utilities. -Copyright (c) 2006, Intel Corporation +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 @@ -9,15 +11,7 @@ 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: - - Ffs.c - -Abstract: - - FFS file access utilities. - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/FwVol/FwVolAttrib.c b/MdeModulePkg/Core/Dxe/FwVol/FwVolAttrib.c index 280978ed1a..54abc0bfd6 100644 --- a/MdeModulePkg/Core/Dxe/FwVol/FwVolAttrib.c +++ b/MdeModulePkg/Core/Dxe/FwVol/FwVolAttrib.c @@ -1,6 +1,8 @@ -/*++ +/** @file + + Implements get/set firmware volume attributes -Copyright (c) 2006, Intel Corporation +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 @@ -9,15 +11,7 @@ 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: - - FwVolAttrib.c - -Abstract: - - Implements get/set firmware volume attributes - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c index becc19e999..5b5b6599e5 100644 --- a/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c +++ b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c @@ -1,6 +1,8 @@ -/*++ +/** @file + + Implements functions to read firmware file -Copyright (c) 2006, Intel Corporation +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 @@ -9,15 +11,7 @@ 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: - - FwVolRead.c - -Abstract: - - Implements read firmware file - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/FwVol/FwVolWrite.c b/MdeModulePkg/Core/Dxe/FwVol/FwVolWrite.c index bf075dca86..a053a96d43 100644 --- a/MdeModulePkg/Core/Dxe/FwVol/FwVolWrite.c +++ b/MdeModulePkg/Core/Dxe/FwVol/FwVolWrite.c @@ -1,6 +1,8 @@ -/*++ +/** @file + + Implements functions to write firmware file -Copyright (c) 2006, Intel Corporation +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 @@ -9,15 +11,7 @@ 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: - - FwVolWrite.c - -Abstract: - - Implements write firmware file - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/FwVolBlock.h b/MdeModulePkg/Core/Dxe/FwVolBlock.h index 1ba25c3282..9cd17326c9 100644 --- a/MdeModulePkg/Core/Dxe/FwVolBlock.h +++ b/MdeModulePkg/Core/Dxe/FwVolBlock.h @@ -1,6 +1,9 @@ -/*++ +/** @file -Copyright (c) 2006, Intel Corporation + Firmware Volume Block protocol functions. + Consumes FV hobs and creates appropriate block protocols. + +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 @@ -9,19 +12,7 @@ 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: - - FwVolBlock.h - -Abstract: - - Firmware Volume Block protocol.. Consumes FV hobs and creates - appropriate block protocols. - - Also consumes NT_NON_MM_FV envinronment variable and produces appropriate - block protocols fro them also... (this is TBD) - ---*/ +**/ #ifndef _FWVOL_BLOCK_H_ #define _FWVOL_BLOCK_H_ diff --git a/MdeModulePkg/Core/Dxe/FwVolDriver.h b/MdeModulePkg/Core/Dxe/FwVolDriver.h index 27492b8077..6469670d04 100644 --- a/MdeModulePkg/Core/Dxe/FwVolDriver.h +++ b/MdeModulePkg/Core/Dxe/FwVolDriver.h @@ -1,8 +1,9 @@ /**@file + Firmware File System protocol. Layers on top of Firmware Block protocol to produce a file abstraction of FV based files. -Copyright (c) 2006, Intel Corporation +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 diff --git a/MdeModulePkg/Core/Dxe/Gcd/gcd.c b/MdeModulePkg/Core/Dxe/Gcd/gcd.c index 3cadab29dc..23477be047 100644 --- a/MdeModulePkg/Core/Dxe/Gcd/gcd.c +++ b/MdeModulePkg/Core/Dxe/Gcd/gcd.c @@ -1,6 +1,10 @@ -/*++ +/** @file + + The file contains the GCD related services in the EFI Boot Services Table. + The GCD services are used to manage the memory and I/O regions that + are accessible to the CPU that is executing the DXE core. -Copyright (c) 2006, Intel Corporation +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 @@ -9,16 +13,7 @@ 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: - - gcd.c - -Abstract: - The file contains the GCD related services in the EFI Boot Services Table. - The GCD services are used to manage the memory and I/O regions that - are accessible to the CPU that is executing the DXE core. - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/Hand/DriverSupport.c b/MdeModulePkg/Core/Dxe/Hand/DriverSupport.c index bafb48ab1e..72ebc8e897 100644 --- a/MdeModulePkg/Core/Dxe/Hand/DriverSupport.c +++ b/MdeModulePkg/Core/Dxe/Hand/DriverSupport.c @@ -1,6 +1,8 @@ -/*++ +/** @file + + Support functions to connect/disconnect UEFI Driver model Protocol -Copyright (c) 2006, Intel Corporation +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 @@ -9,17 +11,7 @@ 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: - - DriverSupport.c - -Abstract: - - EFI Driver Support Protocol - -Revision History - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/Hand/Notify.c b/MdeModulePkg/Core/Dxe/Hand/Notify.c index f48fee76cb..8d64a5c883 100644 --- a/MdeModulePkg/Core/Dxe/Hand/Notify.c +++ b/MdeModulePkg/Core/Dxe/Hand/Notify.c @@ -1,6 +1,8 @@ -/*++ +/** @file + + UEFI notify infrastructure -Copyright (c) 2006, Intel Corporation +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 @@ -9,19 +11,7 @@ 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: - - notify.c - -Abstract: - - EFI notify infrastructure - - - -Revision History - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/Hand/handle.c b/MdeModulePkg/Core/Dxe/Hand/handle.c index 42d96ff465..36d81997c9 100644 --- a/MdeModulePkg/Core/Dxe/Hand/handle.c +++ b/MdeModulePkg/Core/Dxe/Hand/handle.c @@ -1,6 +1,8 @@ -/*++ +/** @file + + UEFI handle & protocol handling -Copyright (c) 2006 - 2007, Intel Corporation +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 @@ -9,19 +11,7 @@ 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: - - handle.c - -Abstract: - - EFI handle & protocol handling - - - -Revision History - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/Hand/locate.c b/MdeModulePkg/Core/Dxe/Hand/locate.c index 54d72c30a2..959e988831 100644 --- a/MdeModulePkg/Core/Dxe/Hand/locate.c +++ b/MdeModulePkg/Core/Dxe/Hand/locate.c @@ -1,6 +1,8 @@ -/*++ +/** @file + + Locate handle functions -Copyright (c) 2006, Intel Corporation +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 @@ -9,17 +11,7 @@ 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: - - locate.c - -Abstract: - - Locate handle functions - -Revision History - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/Image.h b/MdeModulePkg/Core/Dxe/Image.h index eeeb3ab717..e233104a50 100644 --- a/MdeModulePkg/Core/Dxe/Image.h +++ b/MdeModulePkg/Core/Dxe/Image.h @@ -1,6 +1,8 @@ -/*++ - -Copyright (c) 2006, Intel Corporation +/** @file + + Data structure and functions to load and unload PeImage. + +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 @@ -9,15 +11,7 @@ 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: - - Image.h - -Abstract: - -Revision History - ---*/ +**/ #ifndef _IMAGE_H_ diff --git a/MdeModulePkg/Core/Dxe/Image/Image.c b/MdeModulePkg/Core/Dxe/Image/Image.c index ff22c9b0f5..094d837f3c 100644 --- a/MdeModulePkg/Core/Dxe/Image/Image.c +++ b/MdeModulePkg/Core/Dxe/Image/Image.c @@ -1,6 +1,8 @@ -/*++ +/** @file + + Core image handling services to load and unload PeImage. -Copyright (c) 2006 - 2007, Intel Corporation +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 @@ -9,15 +11,7 @@ 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: - - Image.c - -Abstract: - - Core image handling services - ---*/ +**/ #include // diff --git a/MdeModulePkg/Core/Dxe/Image/ImageFile.c b/MdeModulePkg/Core/Dxe/Image/ImageFile.c index b9c8c657b8..7ff867e181 100644 --- a/MdeModulePkg/Core/Dxe/Image/ImageFile.c +++ b/MdeModulePkg/Core/Dxe/Image/ImageFile.c @@ -1,5 +1,7 @@ -/*++ - +/** @file + + Handle services to image file. + 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 @@ -9,19 +11,7 @@ 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: - - ImageFile.c - - -Abstract: - - - - -Revision History - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/Library.h b/MdeModulePkg/Core/Dxe/Library.h index 8d41bd251b..7c15c938e2 100644 --- a/MdeModulePkg/Core/Dxe/Library.h +++ b/MdeModulePkg/Core/Dxe/Library.h @@ -1,6 +1,8 @@ -/*++ +/** @file + + Internal functions shared in DxeCore module. -Copyright (c) 2006, Intel Corporation +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 @@ -9,14 +11,6 @@ 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: - - Library.h - -Abstract: - -Revision History - --*/ #ifndef _DXE_LIBRARY_H_ diff --git a/MdeModulePkg/Core/Dxe/Mem/Page.c b/MdeModulePkg/Core/Dxe/Mem/Page.c index 97179dec85..daf00f237d 100644 --- a/MdeModulePkg/Core/Dxe/Mem/Page.c +++ b/MdeModulePkg/Core/Dxe/Mem/Page.c @@ -1,6 +1,8 @@ -/*++ +/** @file + + UEFI Memory page management functions. -Copyright (c) 2007, Intel Corporation +Copyright (c) 2007 - 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 @@ -9,18 +11,7 @@ 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: - - page.c - -Abstract: - - EFI Memory page management - - -Revision History - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/Mem/memdata.c b/MdeModulePkg/Core/Dxe/Mem/memdata.c index 83a130dee3..6995e513ad 100644 --- a/MdeModulePkg/Core/Dxe/Mem/memdata.c +++ b/MdeModulePkg/Core/Dxe/Mem/memdata.c @@ -1,6 +1,8 @@ -/*++ +/** @file -Copyright (c) 2006, Intel Corporation + Global data used in memory service + +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 @@ -9,18 +11,7 @@ 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: - - memdata.c - -Abstract: - - Global data used in memory service - - -Revision History - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/Mem/pool.c b/MdeModulePkg/Core/Dxe/Mem/pool.c index 664df1422a..6a98cdcca1 100644 --- a/MdeModulePkg/Core/Dxe/Mem/pool.c +++ b/MdeModulePkg/Core/Dxe/Mem/pool.c @@ -1,6 +1,8 @@ -/*++ +/** @file + + UEFI Memory pool management functions. -Copyright (c) 2006, Intel Corporation +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 @@ -9,17 +11,7 @@ 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: - - pool.c - -Abstract: - - EFI Memory pool management - -Revision History - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/Misc/DebugImageInfo.c b/MdeModulePkg/Core/Dxe/Misc/DebugImageInfo.c index 3512477c8f..90e5738532 100644 --- a/MdeModulePkg/Core/Dxe/Misc/DebugImageInfo.c +++ b/MdeModulePkg/Core/Dxe/Misc/DebugImageInfo.c @@ -1,6 +1,9 @@ -/*++ +/** @file + + Support functions for managing debug image info table when loading and unloading + images. -Copyright (c) 2006 - 2007, Intel Corporation +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 @@ -9,16 +12,7 @@ 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: - - DebugImageInfo.c - -Abstract: - - Support functions for managing debug image info table when loading and unloading - images. - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/Misc/InstallConfigurationTable.c b/MdeModulePkg/Core/Dxe/Misc/InstallConfigurationTable.c index 677a2108bf..26db2fbc1f 100644 --- a/MdeModulePkg/Core/Dxe/Misc/InstallConfigurationTable.c +++ b/MdeModulePkg/Core/Dxe/Misc/InstallConfigurationTable.c @@ -1,6 +1,8 @@ -/*++ +/** @file + + UEFI Miscellaneous boot Services InstallConfigurationTable service -Copyright (c) 2006 - 2007, Intel Corporation +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 @@ -9,16 +11,7 @@ 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: - - InstallConfigurationTable.c - - -Abstract: - - Tiano Miscellaneous Services InstallConfigurationTable service - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/Misc/SetWatchdogTimer.c b/MdeModulePkg/Core/Dxe/Misc/SetWatchdogTimer.c index c11c926e06..94e8db35ab 100644 --- a/MdeModulePkg/Core/Dxe/Misc/SetWatchdogTimer.c +++ b/MdeModulePkg/Core/Dxe/Misc/SetWatchdogTimer.c @@ -1,6 +1,8 @@ -/*++ +/** @file + + UEFI Miscellaneous boot Services SetWatchdogTimer service implementation -Copyright (c) 2006, Intel Corporation +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 @@ -9,15 +11,7 @@ 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: - - SetWatchdogTimer.c - -Abstract: - - Tiano Miscellaneous Services SetWatchdogTimer service implementation - ---*/ +**/ #include diff --git a/MdeModulePkg/Core/Dxe/Misc/Stall.c b/MdeModulePkg/Core/Dxe/Misc/Stall.c index c251f31dc9..db32c1fa3a 100644 --- a/MdeModulePkg/Core/Dxe/Misc/Stall.c +++ b/MdeModulePkg/Core/Dxe/Misc/Stall.c @@ -1,6 +1,8 @@ -/*++ +/** @file + + UEFI Miscellaneous boot Services Stall service implementation -Copyright (c) 2006, Intel Corporation +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 @@ -9,15 +11,7 @@ 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: - - Stall.c - -Abstract: - - Tiano Miscellaneous Services Stall service implementation - ---*/ +**/ // // Include statements diff --git a/MdeModulePkg/Core/Dxe/gcd.h b/MdeModulePkg/Core/Dxe/gcd.h index 445821e913..2672e1ec91 100644 --- a/MdeModulePkg/Core/Dxe/gcd.h +++ b/MdeModulePkg/Core/Dxe/gcd.h @@ -1,6 +1,9 @@ -/*++ +/** @file -Copyright (c) 2006, Intel Corporation + GCD Operations and data structure used to + convert from GCD attributes to EFI Memory Map attributes. + +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 @@ -9,15 +12,7 @@ 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: - - gcd.h - -Abstract: - -Revision History - ---*/ +**/ #ifndef _GCD_H #define _GCD_H diff --git a/MdeModulePkg/Core/Dxe/hand.h b/MdeModulePkg/Core/Dxe/hand.h index c61af16234..98669dea35 100644 --- a/MdeModulePkg/Core/Dxe/hand.h +++ b/MdeModulePkg/Core/Dxe/hand.h @@ -1,6 +1,8 @@ -/*++ +/** @file + + Support functions for managing protocol. -Copyright (c) 2006, Intel Corporation +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 @@ -9,19 +11,7 @@ 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: - - hand.h - -Abstract: - - EFI internal protocol definitions - - - -Revision History - ---*/ +**/ #ifndef _HAND_H_ #define _HAND_H_ diff --git a/MdeModulePkg/Core/Dxe/imem.h b/MdeModulePkg/Core/Dxe/imem.h index 3337700eda..a9df0ba5b0 100644 --- a/MdeModulePkg/Core/Dxe/imem.h +++ b/MdeModulePkg/Core/Dxe/imem.h @@ -1,6 +1,8 @@ -/*++ +/** @file + + Data structure and functions to allocate and free memory space. -Copyright (c) 2006, Intel Corporation +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 @@ -9,17 +11,6 @@ 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: - - imem.h - -Abstract: - - Head file to imem.h - - -Revision History - --*/ #ifndef _IMEM_H_ diff --git a/MdeModulePkg/Include/Guid/AlternateFvBlock.h b/MdeModulePkg/Include/Guid/AlternateFvBlock.h index 5eac2fe620..4ea8a2143d 100644 --- a/MdeModulePkg/Include/Guid/AlternateFvBlock.h +++ b/MdeModulePkg/Include/Guid/AlternateFvBlock.h @@ -1,6 +1,8 @@ -/*++ +/** @file -Copyright (c) 2006 - 2007, Intel Corporation + Tiano Guid used to define the Alternate Firmware Volume Block Guid. + +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 @@ -9,15 +11,7 @@ http://opensource.org/licenses/bsd-license.php THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -Module Name: - - AlternateFvBlock.h - -Abstract: - - Tiano Guid used to define the Alternate Firmware Volume Block Guid. - ---*/ +**/ #ifndef __ALT_FVB_GUID_H__ #define __ALT_FVB_GUID_H__ diff --git a/MdeModulePkg/Include/Guid/CapsuleVendor.h b/MdeModulePkg/Include/Guid/CapsuleVendor.h index 8ac5d0cf46..118e08b5b1 100644 --- a/MdeModulePkg/Include/Guid/CapsuleVendor.h +++ b/MdeModulePkg/Include/Guid/CapsuleVendor.h @@ -1,6 +1,8 @@ -/*++ +/** @file -Copyright (c) 2006 - 2007, Intel Corporation + Capsule update Guid definitions for capsule varialbe and capsule hob. + +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 @@ -9,15 +11,7 @@ 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: - - CapsuleVendor.h - -Abstract: - - Capsule update Guid definitions - ---*/ +**/ #ifndef __EFI_CAPSULE_VENDOR_GUID_H__ #define __EFI_CAPSULE_VENDOR_GUID_H__ diff --git a/MdeModulePkg/Include/Guid/PeiPeCoffLoader.h b/MdeModulePkg/Include/Guid/PeiPeCoffLoader.h index 95ee354277..eaca8e6f23 100644 --- a/MdeModulePkg/Include/Guid/PeiPeCoffLoader.h +++ b/MdeModulePkg/Include/Guid/PeiPeCoffLoader.h @@ -1,21 +1,17 @@ -/*++ +/** @file + + GUID for the PE/COFF Loader APIs shared between SEC, PEI and DXE -Copyright (c) 2006 - 2007, Intel Corporation +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. +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -Module Name: - PeiPeCoffLoader.h - -Abstract: - GUID for the PE/COFF Loader APIs shared between PEI and DXE - ---*/ +**/ #ifndef __PEI_PE_COFF_LOADER_H__ #define __PEI_PE_COFF_LOADER_H__ @@ -30,30 +26,107 @@ Abstract: typedef struct _EFI_PEI_PE_COFF_LOADER_PROTOCOL EFI_PEI_PE_COFF_LOADER_PROTOCOL; +/** + Retrieves information about a PE/COFF image. + + Computes the PeCoffHeaderOffset, ImageAddress, ImageSize, DestinationAddress, CodeView, + PdbPointer, RelocationsStripped, SectionAlignment, SizeOfHeaders, and DebugDirectoryEntryRva + fields of the ImageContext structure. If ImageContext is NULL, then return RETURN_INVALID_PARAMETER. + If the PE/COFF image accessed through the ImageRead service in the ImageContext structure is not + a supported PE/COFF image type, then return RETURN_UNSUPPORTED. If any errors occur while + computing the fields of ImageContext, then the error status is returned in the ImageError field of + ImageContext. + + @param This Pointer to the EFI_PEI_PE_COFF_LOADER_PROTOCOL instance. + @param ImageContext Pointer to the image context structure that describes the PE/COFF + image that needs to be examined by this function. + + @retval RETURN_SUCCESS The information on the PE/COFF image was collected. + @retval RETURN_INVALID_PARAMETER ImageContext is NULL. + @retval RETURN_UNSUPPORTED The PE/COFF image is not supported. +**/ typedef -EFI_STATUS +RETURN_STATUS (EFIAPI *EFI_PEI_PE_COFF_LOADER_GET_IMAGE_INFO) ( IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This, IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext ); +/** + Loads a PE/COFF image into memory. + + Loads the PE/COFF image accessed through the ImageRead service of ImageContext into the buffer + specified by the ImageAddress and ImageSize fields of ImageContext. The caller must allocate + the load buffer and fill in the ImageAddress and ImageSize fields prior to calling this function. + The EntryPoint, FixupDataSize, CodeView, and PdbPointer fields of ImageContext are computed. + If ImageContext is NULL, then ASSERT(). + + @param This Pointer to the EFI_PEI_PE_COFF_LOADER_PROTOCOL instance. + @param ImageContext Pointer to the image context structure that describes the PE/COFF + image that is being loaded. + + @retval RETURN_SUCCESS The PE/COFF image was loaded into the buffer specified by + the ImageAddress and ImageSize fields of ImageContext. + Extended status information is in the ImageError field of ImageContext. + @retval RETURN_BUFFER_TOO_SMALL The caller did not provide a large enough buffer. + Extended status information is in the ImageError field of ImageContext. + @retval RETURN_LOAD_ERROR The PE/COFF image is an EFI Runtime image with no relocations. + Extended status information is in the ImageError field of ImageContext. + @retval RETURN_INVALID_PARAMETER The image address is invalid. + Extended status information is in the ImageError field of ImageContext. + +**/ typedef -EFI_STATUS +RETURN_STATUS (EFIAPI *EFI_PEI_PE_COFF_LOADER_LOAD_IMAGE) ( IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This, IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext ); +/** + Applies relocation fixups to a PE/COFF image that was loaded with PeCoffLoaderLoadImage(). + + If the DestinationAddress field of ImageContext is 0, then use the ImageAddress field of + ImageContext as the relocation base address. Otherwise, use the DestinationAddress field + of ImageContext as the relocation base address. The caller must allocate the relocation + fixup log buffer and fill in the FixupData field of ImageContext prior to calling this function. + If ImageContext is NULL, then ASSERT(). + + @param This Pointer to the EFI_PEI_PE_COFF_LOADER_PROTOCOL instance. + @param ImageContext Pointer to the image context structure that describes the PE/COFF + image that is being relocated. + + @retval RETURN_SUCCESS The PE/COFF image was relocated. + Extended status information is in the ImageError field of ImageContext. + @retval RETURN_LOAD_ERROR The image in not a valid PE/COFF image. + Extended status information is in the ImageError field of ImageContext. + @retval RETURN_UNSUPPORTED A relocation record type is not supported. + Extended status information is in the ImageError field of ImageContext. + +**/ typedef -EFI_STATUS +RETURN_STATUS (EFIAPI *EFI_PEI_PE_COFF_LOADER_RELOCATE_IMAGE) ( IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This, IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext ); +/** + Unloads a loaded PE/COFF image from memory and releases its taken resource. + + For NT32 emulator, the PE/COFF image loaded by system needs to release. + For real platform, the PE/COFF image loaded by Core doesn't needs to be unloaded, + this function can simply return RETURN_SUCCESS. + + @param This Pointer to the EFI_PEI_PE_COFF_LOADER_PROTOCOL instance. + @param ImageContext Pointer to the image context structure that describes the PE/COFF + image to be unloaded. + + @retval RETURN_SUCCESS The PE/COFF image was unloaded successfully. +**/ typedef -EFI_STATUS +RETURN_STATUS (EFIAPI *EFI_PEI_PE_COFF_LOADER_UNLOAD_IMAGE) ( IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This, IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext diff --git a/MdeModulePkg/Include/Guid/SystemNvDataGuid.h b/MdeModulePkg/Include/Guid/SystemNvDataGuid.h index 946d4d8d03..fd807f93a2 100644 --- a/MdeModulePkg/Include/Guid/SystemNvDataGuid.h +++ b/MdeModulePkg/Include/Guid/SystemNvDataGuid.h @@ -1,6 +1,9 @@ -/*++ +/** @file -Copyright (c) 2006, Intel Corporation + GUIDs used for System Non Volatile HOB entries in the in the HOB list and FV Guids carrying + the System specific information. + +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 @@ -9,16 +12,7 @@ http://opensource.org/licenses/bsd-license.php THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -Module Name: - - SystemNvDataGuid.h - -Abstract: - - GUIDs used for System Non Volatile HOB entries in the in the HOB list and FV Guids carrying - the System specific information. - ---*/ +**/ #ifndef __SYSTEM_NV_DATA_GUID_H__ #define __SYSTEM_NV_DATA_GUID_H__ diff --git a/MdeModulePkg/Include/Guid/VariableInfo.h b/MdeModulePkg/Include/Guid/VariableInfo.h index d6eb734d94..a7e624d90f 100644 --- a/MdeModulePkg/Include/Guid/VariableInfo.h +++ b/MdeModulePkg/Include/Guid/VariableInfo.h @@ -1,6 +1,8 @@ -/*++ +/** @file -Copyright (c) 2006 - 2007, Intel Corporation + GUIDs used for variable list entries put in the EFI system table. + +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 @@ -9,8 +11,7 @@ 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 __VARIABLE_INFO_GUID_H__ #define __VARIABLE_INFO_GUID_H__ diff --git a/MdeModulePkg/Include/Library/CapsuleLib.h b/MdeModulePkg/Include/Library/CapsuleLib.h index 8f411458d1..80df80e628 100644 --- a/MdeModulePkg/Include/Library/CapsuleLib.h +++ b/MdeModulePkg/Include/Library/CapsuleLib.h @@ -1,4 +1,5 @@ /** @file + Capsule Library. This library class defines a set of interfaces on how to process capusle image update. diff --git a/MdeModulePkg/Include/Ppi/FlashMap.h b/MdeModulePkg/Include/Ppi/FlashMap.h index a2ab3388be..f562f888ad 100644 --- a/MdeModulePkg/Include/Ppi/FlashMap.h +++ b/MdeModulePkg/Include/Ppi/FlashMap.h @@ -1,6 +1,8 @@ -/*++ +/** @file -Copyright (c) 2006, Intel Corporation + FlashMap PPI abstracts access to FlashMap information. + +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 @@ -9,17 +11,7 @@ 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: - - FlashMap.h - -Abstract: - - FlashMap PPI defined in Tiano - - This code abstracts FlashMap access - ---*/ +**/ #ifndef _PEI_FLASH_MAP_PPI_H_ #define _PEI_FLASH_MAP_PPI_H_ @@ -30,9 +22,23 @@ Abstract: { 0xf34c2fa0, 0xde88, 0x4270, {0x84, 0x14, 0x96, 0x12, 0x22, 0xf4, 0x52, 0x1c } } typedef struct _PEI_FLASH_MAP_PPI PEI_FLASH_MAP_PPI; + // // Functions // +/** + Get flash region information. + + @param PeiServices An indirect pointer to the PEI Services Table published by the PEI Foundation. + @param This Pointer to the FlashMap PPI instance + @param AreaType Flash Area Type + @param AreaTypeGuid Pointer to Guid for Flash Area Type + @param NumEntries Pointer to the number of entries for the total flash area. + @param Entries Pointer to the entry list. + + @retval EFI_SUCESS Get flash area information successfully. + @retval EFI_NOT_FOUND No flash area information is found. +**/ typedef EFI_STATUS (EFIAPI *PEI_GET_FLASH_AREA_INFO) ( diff --git a/MdeModulePkg/Include/Protocol/Capsule.h b/MdeModulePkg/Include/Protocol/Capsule.h index aeeb903473..32b09ea039 100644 --- a/MdeModulePkg/Include/Protocol/Capsule.h +++ b/MdeModulePkg/Include/Protocol/Capsule.h @@ -1,6 +1,8 @@ -/*++ +/** @file -Copyright (c) 2006 - 2007, Intel Corporation + Capsule Architectural Protocol is added to produce UEFI2.0 capsule runtime services. + +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 @@ -9,15 +11,7 @@ http://opensource.org/licenses/bsd-license.php THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -Module Name: - - Capsule.h - -Abstract: - - Capsule Architectural Protocol is newly added to produce UEFI2.0 capsule runtime services. - ---*/ +**/ #ifndef __ARCH_PROTOCOL_CAPSULE_ARCH_H__ #define __ARCH_PROTOCOL_CAPSULE_ARCH_H__ diff --git a/MdeModulePkg/Include/Protocol/CustomizedDecompress.h b/MdeModulePkg/Include/Protocol/CustomizedDecompress.h index bff8d46e88..ca54c67ae3 100644 --- a/MdeModulePkg/Include/Protocol/CustomizedDecompress.h +++ b/MdeModulePkg/Include/Protocol/CustomizedDecompress.h @@ -1,6 +1,8 @@ -/*++ +/** @file + + The user Customized Decompress Protocol Interface -Copyright (c) 2006, Intel Corporation +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 @@ -9,13 +11,7 @@ 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: - CustomizedDecompress.h - -Abstract: - The user Customized Decompress Protocol Interface - ---*/ +**/ #ifndef __CUSTOMIZED_DECOMPRESS_H__ #define __CUSTOMIZED_DECOMPRESS_H__ @@ -25,18 +21,7 @@ Abstract: typedef struct _EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL; -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 - ); -/*++ - -Routine Description: +/** The GetInfo() function retrieves the size of the uncompressed buffer and the temporary scratch buffer required to decompress the buffer @@ -53,42 +38,35 @@ Routine Description: output it as DestinationSize. And ScratchSize is specific to the decompression implementation. -Arguments: - - This - The protocol instance pointer - Source - The source buffer containing the compressed data. - SourceSize - The size, in bytes, of source buffer. - 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. - 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. - -Returns: - EFI_SUCCESS - The size of the uncompressed data was returned in DestinationSize - and the size of the scratch buffer was returned in ScratchSize. - 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. + @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_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 +(EFIAPI *EFI_CUSTOMIZED_DECOMPRESS_GET_INFO) ( + IN EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL *This, + IN VOID *Source, + IN UINT32 SourceSize, + OUT UINT32 *DestinationSize, + OUT UINT32 *ScratchSize ); -/*++ -Routine Description: +/** The Decompress() function extracts decompressed data to its original form. @@ -103,29 +81,35 @@ Routine Description: If the compressed source data specified by Source and SourceSize is not in a valid compressed data format, then EFI_INVALID_PARAMETER is returned. -Arguments: - - This - The protocol instance pointer - Source - The source buffer containing the compressed data. - SourceSize - The size of source data. - Destination - On output, the destination buffer that contains - the uncompressed data. - DestinationSize - The size of destination buffer. The size of destination - buffer needed is obtained from GetInfo(). - Scratch - A temporary scratch buffer that is used to perform the - decompression. - ScratchSize - The size of scratch buffer. The size of scratch buffer needed - is obtained from GetInfo(). - -Returns: - - EFI_SUCCESS - Decompression completed successfully, and the uncompressed - buffer is returned in Destination. - EFI_INVALID_PARAMETER - - The source buffer specified by Source and SourceSize is - corrupted (not in a valid compressed format). - ---*/ + @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; diff --git a/MdeModulePkg/Include/Protocol/EdkDecompress.h b/MdeModulePkg/Include/Protocol/EdkDecompress.h index ab9b840cf2..fff1e31874 100644 --- a/MdeModulePkg/Include/Protocol/EdkDecompress.h +++ b/MdeModulePkg/Include/Protocol/EdkDecompress.h @@ -1,6 +1,8 @@ -/*++ +/** @file -Copyright (c) 2006, Intel Corporation + 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 @@ -9,13 +11,7 @@ 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: - EdkDecompress.h - -Abstract: - The Tiano Decompress Protocol Interface - ---*/ +**/ #ifndef __EDK_DECOMPRESS_H__ #define __EDK_DECOMPRESS_H__ @@ -25,18 +21,7 @@ Abstract: typedef struct _EFI_TIANO_DECOMPRESS_PROTOCOL EFI_TIANO_DECOMPRESS_PROTOCOL; -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 - ); -/*++ - -Routine Description: +/** The GetInfo() function retrieves the size of the uncompressed buffer and the temporary scratch buffer required to decompress the buffer @@ -53,42 +38,35 @@ Routine Description: output it as DestinationSize. And ScratchSize is specific to the decompression implementation. -Arguments: - - This - The protocol instance pointer - Source - The source buffer containing the compressed data. - SourceSize - The size, in bytes, of source buffer. - 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. - 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. - -Returns: - EFI_SUCCESS - The size of the uncompressed data was returned in DestinationSize - and the size of the scratch buffer was returned in ScratchSize. - 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. + @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_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 +(EFIAPI *EFI_TIANO_DECOMPRESS_GET_INFO) ( + IN EFI_TIANO_DECOMPRESS_PROTOCOL *This, + IN VOID *Source, + IN UINT32 SourceSize, + OUT UINT32 *DestinationSize, + OUT UINT32 *ScratchSize ); -/*++ -Routine Description: +/** The Decompress() function extracts decompressed data to its original form. @@ -103,29 +81,35 @@ Routine Description: If the compressed source data specified by Source and SourceSize is not in a valid compressed data format, then EFI_INVALID_PARAMETER is returned. -Arguments: - - This - The protocol instance pointer - Source - The source buffer containing the compressed data. - SourceSize - The size of source data. - Destination - On output, the destination buffer that contains - the uncompressed data. - DestinationSize - The size of destination buffer. The size of destination - buffer needed is obtained from GetInfo(). - Scratch - A temporary scratch buffer that is used to perform the - decompression. - ScratchSize - The size of scratch buffer. The size of scratch buffer needed - is obtained from GetInfo(). - -Returns: - - EFI_SUCCESS - Decompression completed successfully, and the uncompressed - buffer is returned in Destination. - EFI_INVALID_PARAMETER - - The source buffer specified by Source and SourceSize is - corrupted (not in a valid compressed format). - ---*/ + @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; diff --git a/MdeModulePkg/Include/Protocol/FirmwareVolumeDispatch.h b/MdeModulePkg/Include/Protocol/FirmwareVolumeDispatch.h index e976f37693..d8c1e76303 100644 --- a/MdeModulePkg/Include/Protocol/FirmwareVolumeDispatch.h +++ b/MdeModulePkg/Include/Protocol/FirmwareVolumeDispatch.h @@ -13,12 +13,6 @@ 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: FirmwareVolumeDispatch.h - - @par Revision Reference: - This protol will be defined in DXE CIS Spec. - Version 0.91C. - **/ #ifndef __FIRMWARE_VOLUME_DISPATCH_H__ diff --git a/MdeModulePkg/Include/Protocol/FvbExtension.h b/MdeModulePkg/Include/Protocol/FvbExtension.h index 8a85d3d905..e961057f91 100644 --- a/MdeModulePkg/Include/Protocol/FvbExtension.h +++ b/MdeModulePkg/Include/Protocol/FvbExtension.h @@ -1,6 +1,8 @@ -/*++ +/** @file -Copyright (c) 2006 - 2007, Intel Corporation + FVB Extension protocol that extends the FVB Class in a component fashion. + +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 @@ -9,15 +11,7 @@ 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: - - FvbExtension.h - -Abstract: - - FVB Extension protocol that extends the FVB Class in a component fashion. - ---*/ +**/ #ifndef __FVB_EXTENSION_H__ #define __FVB_EXTENSION_H__ @@ -30,6 +24,21 @@ typedef struct _EFI_FVB_EXTENSION_PROTOCOL EFI_FVB_EXTENSION_PROTOCOL; // // FVB Extension Function Prototypes // +/** + Erases and initializes a specified range of a firmware volume + + @param[in] This Pointer to the FVB Extension protocol instance + @param[in] StartLba The starting logical block index to be erased + @param[in] OffsetStartLba Offset into the starting block at which to + begin erasing + @param[in] LastLba The last logical block index to be erased + @param[in] OffsetLastLba Offset into the last block at which to end erasing + + @retval EFI_EFI_SUCCESS Range was erased + @retval EFI_INVALID_PARAMETER invalid parameter + @retval EFI_UNSUPPORTED Range can not be erased + +**/ typedef EFI_STATUS (EFIAPI * EFI_FV_ERASE_CUSTOM_BLOCK) ( @@ -41,7 +50,7 @@ EFI_STATUS ); // -// IPMI TRANSPORT PROTOCOL +// FVB Extension PROTOCOL // struct _EFI_FVB_EXTENSION_PROTOCOL { EFI_FV_ERASE_CUSTOM_BLOCK EraseFvbCustomBlock; diff --git a/MdeModulePkg/Include/Protocol/LoadPe32Image.h b/MdeModulePkg/Include/Protocol/LoadPe32Image.h index 155604d5df..8cf58ecdf4 100644 --- a/MdeModulePkg/Include/Protocol/LoadPe32Image.h +++ b/MdeModulePkg/Include/Protocol/LoadPe32Image.h @@ -1,18 +1,5 @@ -/*++ +/** @file -Copyright (c) 2006, Intel Corporation -All rights reserved. This program and the accompanying materials -are licensed and made available under the terms and conditions of the BSD License -which accompanies this distribution. The full text of the license may be found at -http://opensource.org/licenses/bsd-license.php - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -Module Name: - LoadPe32Image.h - -Abstract: Load File protocol. Load file protocol exists to supports the addition of new boot devices, @@ -21,7 +8,16 @@ Abstract: UEFI 2.0 can boot from any device that produces a LoadFile protocol. ---*/ +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 __LOAD_PE32_IMAGE_H__ #define __LOAD_PE32_IMAGE_H__ @@ -35,6 +31,30 @@ Abstract: typedef struct _EFI_PE32_IMAGE_PROTOCOL EFI_PE32_IMAGE_PROTOCOL; +/** + + Loads an EFI image into memory and returns a handle to the image with extended parameters. + + @param This Calling context + @param ParentImageHandle The caller's image handle. + @param FilePath The specific file path from which the image is loaded. + @param SourceBuffer If not NULL, a pointer to the memory location containing a copy of + the image to be loaded. + @param SourceSize The size in bytes of SourceBuffer. + @param DstBuffer The buffer to store the image. + @param NumberOfPages For input, specifies the space size of the image by caller if not NULL. + For output, specifies the actual space size needed. + @param ImageHandle Image handle for output. + @param EntryPoint Image entry point for output. + @param Attribute The bit mask of attributes to set for the load PE image. + + @retval EFI_SUCCESS The image was loaded into memory. + @retval EFI_NOT_FOUND The FilePath was not found. + @retval EFI_INVALID_PARAMETER One of the parameters has an invalid value. + @retval EFI_UNSUPPORTED The image type is not supported, or the device path cannot be + parsed to locate the proper protocol for loading the file. + @retval EFI_OUT_OF_RESOURCES Image was not loaded due to insufficient resources. +**/ typedef EFI_STATUS (EFIAPI *LOAD_PE_IMAGE) ( @@ -50,6 +70,18 @@ EFI_STATUS IN UINT32 Attribute ); +/** + + Unload the specified image. + + @param This Indicates the calling context. + @param ImageHandle The specified image handle. + + @retval EFI_INVALID_PARAMETER Image handle is NULL. + @retval EFI_UNSUPPORTED Attempt to unload an unsupported image. + @retval EFI_SUCCESS Image successfully unloaded. + +--*/ typedef EFI_STATUS (EFIAPI *UNLOAD_PE_IMAGE) ( diff --git a/MdeModulePkg/Include/Protocol/Print.h b/MdeModulePkg/Include/Protocol/Print.h index b640cb0b2f..4a356f3f7e 100644 --- a/MdeModulePkg/Include/Protocol/Print.h +++ b/MdeModulePkg/Include/Protocol/Print.h @@ -1,6 +1,8 @@ -/*++ +/** @file -Copyright (c) 2006 - 2007, Intel Corporation + This file defines the Print protocol. + +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 @@ -9,15 +11,7 @@ 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: - - Print.h - -Abstract: - - This file defines the Print protocol - ---*/ +**/ #ifndef __PPRINT_H__ #define __PPRINT_H__ @@ -30,7 +24,40 @@ Abstract: // typedef struct _EFI_PRINT_PROTOCOL EFI_PRINT_PROTOCOL; - +/** + Produces a Null-terminated Unicode string in an output buffer based on + a Null-terminated Unicode format string and a VA_LIST argument list + + Produces a Null-terminated Unicode string in the output buffer specified by StartOfBuffer + and BufferSize. + The Unicode string is produced by parsing the format string specified by FormatString. + Arguments are pulled from the variable argument list specified by Marker based on the + contents of the format string. + The number of Unicode characters in the produced output buffer is returned not including + the Null-terminator. + If BufferSize is 0 or 1, then no output buffer is produced and 0 is returned. + + If BufferSize > 1 and StartOfBuffer is NULL, then ASSERT(). + If BufferSize > 1 and StartOfBuffer is not aligned on a 16-bit boundary, then ASSERT(). + If BufferSize > 1 and FormatString is NULL, then ASSERT(). + If BufferSize > 1 and FormatString is not aligned on a 16-bit boundary, then ASSERT(). + If PcdMaximumUnicodeStringLength is not zero, and FormatString contains more than + PcdMaximumUnicodeStringLength Unicode characters not including the Null-terminator, then + ASSERT(). + If PcdMaximumUnicodeStringLength is not zero, and produced Null-terminated Unicode string + contains more than PcdMaximumUnicodeStringLength Unicode characters not including the + Null-terminator, then ASSERT(). + + @param StartOfBuffer A pointer to the output buffer for the produced Null-terminated + Unicode string. + @param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer. + @param FormatString Null-terminated Unicode format string. + @param Marker VA_LIST marker for the variable argument list. + + @return The number of Unicode characters in the produced output buffer not including the + Null-terminator. + +**/ typedef UINTN (EFIAPI *UNI_VSPRINT) ( @@ -40,6 +67,39 @@ UINTN IN VA_LIST Marker ); +/** + Produces a Null-terminated Unicode string in an output buffer based on a Null-terminated + ASCII format string and a VA_LIST argument list + + Produces a Null-terminated Unicode string in the output buffer specified by StartOfBuffer + and BufferSize. + The Unicode string is produced by parsing the format string specified by FormatString. + Arguments are pulled from the variable argument list specified by Marker based on the + contents of the format string. + The number of Unicode characters in the produced output buffer is returned not including + the Null-terminator. + If BufferSize is 0 or 1, then no output buffer is produced and 0 is returned. + + If BufferSize > 1 and StartOfBuffer is NULL, then ASSERT(). + If BufferSize > 1 and StartOfBuffer is not aligned on a 16-bit boundary, then ASSERT(). + If BufferSize > 1 and FormatString is NULL, then ASSERT(). + If PcdMaximumAsciiStringLength is not zero, and FormatString contains more than + PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator, then + ASSERT(). + If PcdMaximumUnicodeStringLength is not zero, and produced Null-terminated Unicode string + contains more than PcdMaximumUnicodeStringLength Unicode characters not including the + Null-terminator, then ASSERT(). + + @param StartOfBuffer A pointer to the output buffer for the produced Null-terminated + Unicode string. + @param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer. + @param FormatString Null-terminated Unicode format string. + @param Marker VA_LIST marker for the variable argument list. + + @return The number of Unicode characters in the produced output buffer not including the + Null-terminator. + +**/ typedef UINTN (EFIAPI *UNI_VSPRINT_ASCII) ( @@ -49,6 +109,47 @@ UINTN IN VA_LIST Marker ); +/** + Converts a decimal value to a Null-terminated Unicode string. + + Converts the decimal number specified by Value to a Null-terminated Unicode + string specified by Buffer containing at most Width characters. No padding of spaces + is ever performed. If Width is 0 then a width of MAXIMUM_VALUE_CHARACTERS is assumed. + The number of Unicode characters in Buffer is returned not including the Null-terminator. + If the conversion contains more than Width characters, then only the first + Width characters are returned, and the total number of characters + required to perform the conversion is returned. + Additional conversion parameters are specified in Flags. + + The Flags bit LEFT_JUSTIFY is always ignored. + All conversions are left justified in Buffer. + If Width is 0, PREFIX_ZERO is ignored in Flags. + If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas + are inserted every 3rd digit starting from the right. + If HEX_RADIX is set in Flags, then the output buffer will be + formatted in hexadecimal format. + If Value is < 0 and HEX_RADIX is not set in Flags, then the fist character in Buffer is a '-'. + If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored, + then Buffer is padded with '0' characters so the combination of the optional '-' + sign character, '0' characters, digit characters for Value, and the Null-terminator + add up to Width characters. + If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT(). + If Buffer is NULL, then ASSERT(). + If Buffer is not aligned on a 16-bit boundary, then ASSERT(). + If unsupported bits are set in Flags, then ASSERT(). + If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT(). + If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT() + + @param Buffer Pointer to the output buffer for the produced Null-terminated + Unicode string. + @param Flags The bitmask of flags that specify left justification, zero pad, and commas. + @param Value The 64-bit signed value to convert to a string. + @param Width The maximum number of Unicode characters to place in Buffer, not including + the Null-terminator. + + @return The number of Unicode characters in Buffer not including the Null-terminator. + +**/ typedef UINTN (EFIAPI *VALUE_TO_UNISTRING) ( @@ -58,6 +159,38 @@ UINTN IN UINTN Width ); +/** + Produces a Null-terminated ASCII string in an output buffer based on a Null-terminated + ASCII format string and a VA_LIST argument list. + + Produces a Null-terminated ASCII string in the output buffer specified by StartOfBuffer + and BufferSize. + The ASCII string is produced by parsing the format string specified by FormatString. + Arguments are pulled from the variable argument list specified by Marker based on + the contents of the format string. + The number of ASCII characters in the produced output buffer is returned not including + the Null-terminator. + If BufferSize is 0, then no output buffer is produced and 0 is returned. + + If BufferSize > 0 and StartOfBuffer is NULL, then ASSERT(). + If BufferSize > 0 and FormatString is NULL, then ASSERT(). + If PcdMaximumAsciiStringLength is not zero, and FormatString contains more than + PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator, then + ASSERT(). + If PcdMaximumAsciiStringLength is not zero, and produced Null-terminated ASCII string + contains more than PcdMaximumAsciiStringLength ASCII characters not including the + Null-terminator, then ASSERT(). + + @param StartOfBuffer A pointer to the output buffer for the produced Null-terminated + ASCII string. + @param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer. + @param FormatString Null-terminated Unicode format string. + @param Marker VA_LIST marker for the variable argument list. + + @return The number of ASCII characters in the produced output buffer not including the + Null-terminator. + +**/ typedef UINTN (EFIAPI *ASCII_VSPRINT) ( @@ -67,6 +200,39 @@ UINTN IN VA_LIST Marker ); +/** + Produces a Null-terminated ASCII string in an output buffer based on a Null-terminated + ASCII format string and a VA_LIST argument list. + + Produces a Null-terminated ASCII string in the output buffer specified by StartOfBuffer + and BufferSize. + The ASCII string is produced by parsing the format string specified by FormatString. + Arguments are pulled from the variable argument list specified by Marker based on + the contents of the format string. + The number of ASCII characters in the produced output buffer is returned not including + the Null-terminator. + If BufferSize is 0, then no output buffer is produced and 0 is returned. + + If BufferSize > 0 and StartOfBuffer is NULL, then ASSERT(). + If BufferSize > 0 and FormatString is NULL, then ASSERT(). + If BufferSize > 0 and FormatString is not aligned on a 16-bit boundary, then ASSERT(). + If PcdMaximumUnicodeStringLength is not zero, and FormatString contains more than + PcdMaximumUnicodeStringLength Unicode characters not including the Null-terminator, then + ASSERT(). + If PcdMaximumAsciiStringLength is not zero, and produced Null-terminated ASCII string + contains more than PcdMaximumAsciiStringLength ASCII characters not including the + Null-terminator, then ASSERT(). + + @param StartOfBuffer A pointer to the output buffer for the produced Null-terminated + ASCII string. + @param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer. + @param FormatString Null-terminated Unicode format string. + @param Marker VA_LIST marker for the variable argument list. + + @return The number of ASCII characters in the produced output buffer not including the + Null-terminator. + +**/ typedef UINTN (EFIAPI *ASCII_VSPRINT_UNI) ( @@ -76,6 +242,46 @@ UINTN IN VA_LIST Marker ); +/** + Converts a decimal value to a Null-terminated ASCII string. + + Converts the decimal number specified by Value to a Null-terminated ASCII string + specified by Buffer containing at most Width characters. No padding of spaces + is ever performed. + If Width is 0 then a width of MAXIMUM_VALUE_CHARACTERS is assumed. + The number of ASCII characters in Buffer is returned not including the Null-terminator. + If the conversion contains more than Width characters, then only the first Width + characters are returned, and the total number of characters required to perform + the conversion is returned. + Additional conversion parameters are specified in Flags. + The Flags bit LEFT_JUSTIFY is always ignored. + All conversions are left justified in Buffer. + If Width is 0, PREFIX_ZERO is ignored in Flags. + If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas + are inserted every 3rd digit starting from the right. + If HEX_RADIX is set in Flags, then the output buffer will be + formatted in hexadecimal format. + If Value is < 0 and HEX_RADIX is not set in Flags, then the fist character in Buffer is a '-'. + If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored, + then Buffer is padded with '0' characters so the combination of the optional '-' + sign character, '0' characters, digit characters for Value, and the Null-terminator + add up to Width characters. + + If Buffer is NULL, then ASSERT(). + If unsupported bits are set in Flags, then ASSERT(). + If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT(). + If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT() + + @param Buffer Pointer to the output buffer for the produced Null-terminated + ASCII string. + @param Flags The bitmask of flags that specify left justification, zero pad, and commas. + @param Value The 64-bit signed value to convert to a string. + @param Width The maximum number of ASCII characters to place in Buffer, not including + the Null-terminator. + + @return The number of ASCII characters in Buffer not including the Null-terminator. + +**/ typedef UINTN (EFIAPI *VALUE_TO_ASCIISTRING) ( diff --git a/MdeModulePkg/Include/Protocol/TcgPlatform.h b/MdeModulePkg/Include/Protocol/TcgPlatform.h index 20f8075e65..a1f8c43725 100644 --- a/MdeModulePkg/Include/Protocol/TcgPlatform.h +++ b/MdeModulePkg/Include/Protocol/TcgPlatform.h @@ -1,6 +1,8 @@ -/*++ +/** @file -Copyright (c) 2006, Intel Corporation + Tcg addtional services to measure PeImage and ActionString + +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 @@ -9,14 +11,7 @@ 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: - - TcgPlatform.h - -Abstract: - Tcg addtional services to measure PeImage and ActionString - ---*/ +**/ #ifndef _TCG_PLATFORM_PROTOCOL_H_ #define _TCG_PLATFORM_PROTOCOL_H_ diff --git a/MdeModulePkg/Include/VariableFormat.h b/MdeModulePkg/Include/VariableFormat.h index bdc33ecb54..15b48eb8e5 100644 --- a/MdeModulePkg/Include/VariableFormat.h +++ b/MdeModulePkg/Include/VariableFormat.h @@ -67,6 +67,9 @@ typedef enum { #pragma pack(1) +// +// Variable Store region header +// typedef struct { UINT32 Signature; UINT32 Size; @@ -76,6 +79,9 @@ typedef struct { UINT32 Reserved1; } VARIABLE_STORE_HEADER; +// +// Variable header structure +// typedef struct { UINT16 StartId; UINT8 State; diff --git a/MdeModulePkg/Include/WorkingBlockHeader.h b/MdeModulePkg/Include/WorkingBlockHeader.h index fc023ffe69..3946b45a96 100644 --- a/MdeModulePkg/Include/WorkingBlockHeader.h +++ b/MdeModulePkg/Include/WorkingBlockHeader.h @@ -1,6 +1,10 @@ -/*++ +/** @file -Copyright (c) 2006, Intel Corporation + Defines data structure that is the headers found at the runtime + updatable firmware volumes. + The header structure of FTW working block region. + +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 @@ -9,18 +13,7 @@ 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: - - EfiWorkingBlockHeader.h - -Abstract: - - Defines data structure that is the headers found at the runtime - updatable firmware volumes, such as the FileSystemGuid of the - working block, the header structure of the variable block, FTW - working block, or event log block. - ---*/ +**/ #ifndef __EFI_WORKING_BLOCK_HEADER_H__ #define __EFI_WORKING_BLOCK_HEADER_H__ diff --git a/MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.c b/MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.c index 8e2cc0201f..167f281365 100644 --- a/MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.c +++ b/MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.c @@ -1,6 +1,9 @@ -/*++ +/** @file + + Implements CRC32 guided section handler to parse CRC32 encapsulation section, + extract data and authenticate 32 bit CRC value. -Copyright (c) 2007, Intel Corporation +Copyright (c) 2007 - 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 @@ -9,18 +12,7 @@ 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: - - DxeCrc32GuidedSectionExtractLib.c - -Abstract: - - Implements GUIDed section extraction protocol interface with - a specific GUID: CRC32. - - Please refer to the Framewokr Firmware Volume Specification 0.9. - ---*/ +**/ #include #include diff --git a/MdeModulePkg/Library/EdkDxePrintLib/PrintLib.c b/MdeModulePkg/Library/EdkDxePrintLib/PrintLib.c index 2194015b8d..78714e9eae 100644 --- a/MdeModulePkg/Library/EdkDxePrintLib/PrintLib.c +++ b/MdeModulePkg/Library/EdkDxePrintLib/PrintLib.c @@ -1,6 +1,11 @@ -/*++ +/** @file -Copyright (c) 2006, Intel Corporation + Implement the print library instance by wrap the interface + provided in the Print protocol. This protocol is defined as the internal + protocol related to this implementation, not in the public spec. So, this + library instance is only for this code base. + +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 @@ -9,15 +14,7 @@ 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: - - PrintLib.c - -Abstract: - - Print Library - ---*/ +**/ #include diff --git a/MdeModulePkg/Library/EdkFvbServiceLib/Fvb.c b/MdeModulePkg/Library/EdkFvbServiceLib/Fvb.c index bf77d80d6f..0cd0f6dcdc 100644 --- a/MdeModulePkg/Library/EdkFvbServiceLib/Fvb.c +++ b/MdeModulePkg/Library/EdkFvbServiceLib/Fvb.c @@ -1,6 +1,7 @@ /**@file - Firmware Volume Block Protocol Runtime Abstraction + Firmware Volume Block Protocol Runtime Interface Abstraction + And FVB Extension protocol Runtime Interface Abstraction mFvbEntry is an array of Handle Fvb pairs. The Fvb Lib Instance matches the index in the mFvbEntry array. This should be the same sequence as the FVB's @@ -9,7 +10,7 @@ If you are using any of these lib functions.you must first call FvbInitialize (). -Copyright (c) 2006, Intel Corporation +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 diff --git a/MdeModulePkg/Library/EdkFvbServiceLib/Fvb.h b/MdeModulePkg/Library/EdkFvbServiceLib/Fvb.h index 7c5604eac1..5d54fd18c9 100644 --- a/MdeModulePkg/Library/EdkFvbServiceLib/Fvb.h +++ b/MdeModulePkg/Library/EdkFvbServiceLib/Fvb.h @@ -1,7 +1,8 @@ -/** - The internal header file for EdkFvbServiceLib. +/** @file + The internal header file includes the common header files, defines + internal structure FVB_ENTRY. -Copyright (c) 2006, Intel Corporation.
+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 diff --git a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c index 5e4688929a..158e396963 100644 --- a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c +++ b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c @@ -1,6 +1,9 @@ -/*++ +/** @file + + Emulation Variable services operate on the runtime volatile memory. + The nonvolatile variable space doesn't exist. -Copyright (c) 2006 - 2007, Intel Corporation +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 @@ -9,15 +12,7 @@ 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: - - EmuVariable.c - -Abstract: - -Revision History - ---*/ +**/ #include "Variable.h" diff --git a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/InitVariable.c b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/InitVariable.c index efff41c253..c774604215 100644 --- a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/InitVariable.c +++ b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/InitVariable.c @@ -1,6 +1,9 @@ -/*++ +/** @file -Copyright (c) 2006 - 2007, Intel Corporation + Implment all four UEFI runtime variable services and + install variable architeture protocol. + +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 @@ -9,15 +12,7 @@ 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: - - InitVariable.c - -Abstract: - -Revision History - ---*/ +**/ #include "Variable.h" diff --git a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/Variable.h b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/Variable.h index af6ed2d255..88e9dd6e9b 100644 --- a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/Variable.h +++ b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/Variable.h @@ -1,6 +1,9 @@ -/*++ +/** @file -Copyright (c) 2006 - 2007, Intel Corporation + The internal header file includes the common header files, defines + internal structure and functions used by EmuVariable module. + +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 @@ -9,13 +12,7 @@ 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: - - Variable.h - -Abstract: - ---*/ +**/ #ifndef _VARIABLE_H #define _VARIABLE_H diff --git a/MdeModulePkg/Universal/Variable/Pei/Ipf/VariableWorker.c b/MdeModulePkg/Universal/Variable/Pei/Ipf/VariableWorker.c index 0a4ee95774..4a700340e6 100644 --- a/MdeModulePkg/Universal/Variable/Pei/Ipf/VariableWorker.c +++ b/MdeModulePkg/Universal/Variable/Pei/Ipf/VariableWorker.c @@ -1,7 +1,8 @@ /** @file - Variable worker functions. - Copyright (c) 2006, Intel Corporation
+ Variable worker functions specific for IPF arch. + + 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 diff --git a/MdeModulePkg/Universal/Variable/Pei/Variable.c b/MdeModulePkg/Universal/Variable/Pei/Variable.c index 24e051cf1f..517d38130b 100644 --- a/MdeModulePkg/Universal/Variable/Pei/Variable.c +++ b/MdeModulePkg/Universal/Variable/Pei/Variable.c @@ -1,4 +1,7 @@ -/*++ +/** @file + + Implement ReadOnly Variable Services required by PEIM and install + PI ReadOnly Varaiable2 PPI. These services operates the non volatile storage space. Copyright (c) 2006 - 2008 Intel Corporation.
All rights reserved. This program and the accompanying materials @@ -10,13 +13,7 @@ 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: - Variable.c - -Abstract: - - PEIM to provide the Variable functionality - ---*/ +**/ #include "Variable.h" diff --git a/MdeModulePkg/Universal/Variable/Pei/Variable.h b/MdeModulePkg/Universal/Variable/Pei/Variable.h index 965f722f38..c2c16db415 100644 --- a/MdeModulePkg/Universal/Variable/Pei/Variable.h +++ b/MdeModulePkg/Universal/Variable/Pei/Variable.h @@ -1,6 +1,9 @@ -/*++ +/** @file + + The internal header file includes the common header files, defines + internal structure and functions used by PeiVariable module. -Copyright (c) 2006 - 2007, Intel Corporation +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 @@ -9,15 +12,7 @@ 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: - - Variable.h - -Abstract: - - Tiano PEIM to provide the variable functionality - ---*/ +**/ #ifndef _PEI_VARIABLE_H #define _PEI_VARIABLE_H diff --git a/MdeModulePkg/Universal/Variable/Pei/VariableWorker.c b/MdeModulePkg/Universal/Variable/Pei/VariableWorker.c index 5ed326c54c..7b6d32132a 100644 --- a/MdeModulePkg/Universal/Variable/Pei/VariableWorker.c +++ b/MdeModulePkg/Universal/Variable/Pei/VariableWorker.c @@ -1,6 +1,8 @@ -/*++ +/** @file -Copyright (c) 2007, Intel Corporation + Variable worker functions specific for IA32, X64 and EBC. + +Copyright (c) 2007 - 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 @@ -9,15 +11,7 @@ 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: - - VariableWorker.c - -Abstract: - - PEIM to provide the Variable functionality - ---*/ +**/ #include diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c index 9f6a9acd50..2571167d89 100644 --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c @@ -1,14 +1,16 @@ /** @file - EFI Runtime Variable services. + + Implement all four UEFI Runtime Variable services for the nonvolatile + and volatile storage space and install variable architecture protocol. - 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. +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. **/ diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.h b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.h index f8a4e058f5..1fb430e206 100644 --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.h +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.h @@ -1,6 +1,9 @@ -/*++ +/** @file -Copyright (c) 2006 - 2007, Intel Corporation + The internal header file includes the common header files, defines + internal structure and functions used by RuntimeVariable module. + +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 @@ -9,13 +12,7 @@ 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: - - Variable.h - -Abstract: - ---*/ +**/ #ifndef _VARIABLE_H #define _VARIABLE_H diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/reclaim.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/reclaim.c index dd43493f3e..a235ba09f8 100644 --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/reclaim.c +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/reclaim.c @@ -1,6 +1,9 @@ -/*++ +/** @file + + Handles non-volatile variable store garbage collection, using FTW + (Fault Tolerant Write) protocol. -Copyright (c) 2006 - 2007, Intel Corporation +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 @@ -9,18 +12,7 @@ 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: - - reclaim.c - -Abstract: - - Handles non-volatile variable store garbage collection, using FTW - (Fault Tolerant Write) protocol. - -Revision History - ---*/ +**/ #include "Variable.h" diff --git a/MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.c b/MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.c index 7762933e59..2c7576c1e6 100644 --- a/MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.c +++ b/MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.c @@ -1,6 +1,9 @@ -/*++ - -Copyright (c) 2006, Intel Corporation +/** @file + + Generic watchdog timer services implemenetation using UEFI APIs and + install watchdog timer architecture protocol. + +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 @@ -9,17 +12,7 @@ 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: - - WatchdogTimer.c - -Abstract: - - Generic watchdog timer implemenetation using EFI APIs - -Revision History - ---*/ +**/ #include "WatchdogTimer.h" diff --git a/MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.h b/MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.h index ec6deec47a..0117d287bb 100644 --- a/MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.h +++ b/MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.h @@ -1,6 +1,9 @@ -/*++ +/** @file -Copyright (c) 2006, Intel Corporation + The internal header file includes the common header files, defines + internal functions used by WatchDogTimer module. + +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 @@ -9,17 +12,7 @@ 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: - - WatchdogTimer.h - -Abstract: - - Generic watchdog timer implemenetation using EFI APIs - -Revision History - ---*/ +**/ #ifndef _WATCHDOG_TIMER_H_ #define _WATCHDOG_TIMER_H_ -- 2.39.2