1) Update some comment.

2) Add in handle for the out_of_resource cases
3) Add in Done label to clean up the code.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5853 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12
2008-09-09 02:39:44 +00:00
parent 599979d4ce
commit 6c857d668c
3 changed files with 29 additions and 17 deletions

View File

@@ -41,7 +41,7 @@ typedef struct {
#define PROTOCOL_ENTRY_SIGNATURE EFI_SIGNATURE_32('p','r','t','e')
typedef struct {
UINTN Signature;
LIST_ENTRY AllEntries; // All entries
LIST_ENTRY AllEntries; // Link Entry inserted to mProtocolDatabase
EFI_GUID ProtocolID; // ID of the protocol
LIST_ENTRY Protocols; // All protocol interfaces
LIST_ENTRY Notify; // Registerd notification handlers
@@ -55,8 +55,8 @@ typedef struct {
#define PROTOCOL_INTERFACE_SIGNATURE EFI_SIGNATURE_32('p','i','f','c')
typedef struct {
UINTN Signature;
IHANDLE *Handle; // Back pointer
LIST_ENTRY Link; // Link on IHANDLE.Protocols
IHANDLE *Handle; // Back pointer
LIST_ENTRY ByProtocol; // Link on PROTOCOL_ENTRY.Protocols
PROTOCOL_ENTRY *Protocol; // The protocol ID
VOID *Interface; // The interface value
@@ -70,7 +70,7 @@ typedef struct {
typedef struct {
UINTN Signature;
LIST_ENTRY Link;
LIST_ENTRY Link; //Link on PROTOCOL_INTERFACE.OpenList
EFI_HANDLE AgentHandle;
EFI_HANDLE ControllerHandle;