mirror of https://github.com/acidanthera/audk.git
Refine comments for BDS module.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7084 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
ec815813ce
commit
bddd8b2d17
|
@ -15,8 +15,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
#ifndef _BDS_MODULE_H_
|
#ifndef _BDS_MODULE_H_
|
||||||
#define _BDS_MODULE_H_
|
#define _BDS_MODULE_H_
|
||||||
|
|
||||||
#undef EFI_SPECIFICATION_VERSION
|
|
||||||
#define EFI_SPECIFICATION_VERSION 0x0002000A
|
|
||||||
#include <PiDxe.h>
|
#include <PiDxe.h>
|
||||||
#include <MdeModuleHii.h>
|
#include <MdeModuleHii.h>
|
||||||
|
|
||||||
|
@ -73,17 +71,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
#include <Library/PlatformBdsLib.h>
|
#include <Library/PlatformBdsLib.h>
|
||||||
|
|
||||||
#define EFI_BDS_ARCH_PROTOCOL_INSTANCE_FROM_THIS(_this) \
|
#define EFI_BDS_ARCH_PROTOCOL_INSTANCE_FROM_THIS(_this) \
|
||||||
CR (_this, \
|
CR ((_this), \
|
||||||
EFI_BDS_ARCH_PROTOCOL_INSTANCE, \
|
EFI_BDS_ARCH_PROTOCOL_INSTANCE, \
|
||||||
Bds, \
|
Bds, \
|
||||||
EFI_BDS_ARCH_PROTOCOL_INSTANCE_SIGNATURE \
|
EFI_BDS_ARCH_PROTOCOL_INSTANCE_SIGNATURE \
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
Show progress bar with title above it. It only works in Graphics mode.
|
Show progress bar with title above it. It only works in Graphics mode.
|
||||||
|
|
||||||
|
|
||||||
@param TitleForeground Foreground color for Title.
|
@param TitleForeground Foreground color for Title.
|
||||||
@param TitleBackground Background color for Title.
|
@param TitleBackground Background color for Title.
|
||||||
@param Title Title above progress bar.
|
@param Title Title above progress bar.
|
||||||
|
@ -112,15 +109,12 @@ PlatformBdsShowProgress (
|
||||||
|
|
||||||
Install Boot Device Selection Protocol
|
Install Boot Device Selection Protocol
|
||||||
|
|
||||||
|
|
||||||
@param ImageHandle The image handle.
|
@param ImageHandle The image handle.
|
||||||
@param SystemTable The system table.
|
@param SystemTable The system table.
|
||||||
|
|
||||||
@retval EFI_SUCEESS BDS has finished initializing.
|
@retval EFI_SUCEESS BDS has finished initializing.
|
||||||
Rerun the
|
Return the dispatcher and recall BDS.Entry
|
||||||
dispatcher and recall BDS.Entry
|
@retval Other Return status from AllocatePool() or gBS->InstallProtocolInterface
|
||||||
@retval Other Return value from AllocatePool()
|
|
||||||
or gBS->InstallProtocolInterface
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
@ -135,7 +129,7 @@ BdsInitialize (
|
||||||
Service routine for BdsInstance->Entry(). Devices are connected, the
|
Service routine for BdsInstance->Entry(). Devices are connected, the
|
||||||
consoles are initialized, and the boot options are tried.
|
consoles are initialized, and the boot options are tried.
|
||||||
|
|
||||||
@param This - Protocol Instance structure.
|
@param This Protocol Instance structure.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
/** @file
|
/** @file
|
||||||
The entry of the bds
|
This module produce main entry for BDS phase - BdsEntry.
|
||||||
|
When this module was dispatched by DxeCore, gEfiBdsArchProtocolGuid will be installed
|
||||||
|
which contains interface of BdsEntry.
|
||||||
|
After DxeCore finish DXE phase, gEfiBdsArchProtocolGuid->BdsEntry will be invoked
|
||||||
|
to enter BDS phase.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
|
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
|
@ -44,15 +48,12 @@ EFI_HANDLE mBdsImageHandle;
|
||||||
|
|
||||||
Install Boot Device Selection Protocol
|
Install Boot Device Selection Protocol
|
||||||
|
|
||||||
|
|
||||||
@param ImageHandle The image handle.
|
@param ImageHandle The image handle.
|
||||||
@param SystemTable The system table.
|
@param SystemTable The system table.
|
||||||
|
|
||||||
@retval EFI_SUCEESS BDS has finished initializing.
|
@retval EFI_SUCEESS BDS has finished initializing.
|
||||||
Rerun the
|
Return the dispatcher and recall BDS.Entry
|
||||||
dispatcher and recall BDS.Entry
|
@retval Other Return status from AllocatePool() or gBS->InstallProtocolInterface
|
||||||
@retval Other Return value from AllocatePool()
|
|
||||||
or gBS->InstallProtocolInterface
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
@ -262,7 +263,7 @@ BdsBootDeviceSelect (
|
||||||
Service routine for BdsInstance->Entry(). Devices are connected, the
|
Service routine for BdsInstance->Entry(). Devices are connected, the
|
||||||
consoles are initialized, and the boot options are tried.
|
consoles are initialized, and the boot options are tried.
|
||||||
|
|
||||||
@param This - Protocol Instance structure.
|
@param This Protocol Instance structure.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
|
|
|
@ -172,14 +172,14 @@ BdsBuildLegacyDevNameString (
|
||||||
order list.
|
order list.
|
||||||
|
|
||||||
|
|
||||||
@param CurrentBbsEntry Pointer to current BBS table.
|
@param CurrentBbsEntry Pointer to current BBS table.
|
||||||
@param CurrentBbsDevPath Pointer to the Device Path Protocol instance of BBS
|
@param CurrentBbsDevPath Pointer to the Device Path Protocol instance of BBS
|
||||||
@param Index Index of the specified entry in BBS table.
|
@param Index Index of the specified entry in BBS table.
|
||||||
@param BootOrderList On input, the original boot order list.
|
@param BootOrderList On input, the original boot order list.
|
||||||
On output, the new boot order list attached with the
|
On output, the new boot order list attached with the
|
||||||
created node.
|
created node.
|
||||||
@param BootOrderListSize On input, the original size of boot order list.
|
@param BootOrderListSize On input, the original size of boot order list.
|
||||||
- On output, the size of new boot order list.
|
On output, the size of new boot order list.
|
||||||
|
|
||||||
@retval EFI_SUCCESS Boot Option successfully created.
|
@retval EFI_SUCCESS Boot Option successfully created.
|
||||||
@retval EFI_OUT_OF_RESOURCES Fail to allocate necessary memory.
|
@retval EFI_OUT_OF_RESOURCES Fail to allocate necessary memory.
|
||||||
|
@ -1654,10 +1654,10 @@ BdsRefreshBbsTableForBoot (
|
||||||
if (BootOrder != NULL) {
|
if (BootOrder != NULL) {
|
||||||
FreePool (BootOrder);
|
FreePool (BootOrder);
|
||||||
}
|
}
|
||||||
//
|
|
||||||
// For debug
|
|
||||||
//
|
|
||||||
PrintBbsTable (LocalBbsTable);
|
|
||||||
|
|
||||||
|
DEBUG_CODE_BEGIN();
|
||||||
|
PrintBbsTable (LocalBbsTable);
|
||||||
|
DEBUG_CODE_END();
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1041,8 +1041,6 @@ InitializeBM (
|
||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
InitAllMenu (
|
InitAllMenu (
|
||||||
|
@ -1068,10 +1066,6 @@ InitAllMenu (
|
||||||
/**
|
/**
|
||||||
Free up all Menu Option list.
|
Free up all Menu Option list.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
FreeAllMenu (
|
FreeAllMenu (
|
||||||
|
@ -1090,11 +1084,6 @@ FreeAllMenu (
|
||||||
/**
|
/**
|
||||||
Intialize all the string depositories.
|
Intialize all the string depositories.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
InitializeStringDepository (
|
InitializeStringDepository (
|
||||||
|
@ -1115,7 +1104,6 @@ InitializeStringDepository (
|
||||||
/**
|
/**
|
||||||
Fetch a usable string node from the string depository and return the string token.
|
Fetch a usable string node from the string depository and return the string token.
|
||||||
|
|
||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
@param StringDepository The string repository.
|
@param StringDepository The string repository.
|
||||||
|
|
||||||
|
@ -1164,11 +1152,6 @@ GetStringTokenFromDepository (
|
||||||
/**
|
/**
|
||||||
Reclaim string depositories by moving the current node pointer to list head..
|
Reclaim string depositories by moving the current node pointer to list head..
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
ReclaimStringDepository (
|
ReclaimStringDepository (
|
||||||
|
@ -1188,11 +1171,6 @@ ReclaimStringDepository (
|
||||||
/**
|
/**
|
||||||
Release resource for all the string depositories.
|
Release resource for all the string depositories.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
CleanUpStringDepository (
|
CleanUpStringDepository (
|
||||||
|
|
Loading…
Reference in New Issue