git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2551
6f19259b-4bc3-4df7-8a09-
765794883524
21 files changed:
<Instance ModuleGuid="52af22ae-9901-4484-8cdc-622dd5838b09" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="3ddc3b12-99ea-4364-b315-6310a2050be5" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="bda39d3a-451b-4350-8266-81ab10fa0523" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="52af22ae-9901-4484-8cdc-622dd5838b09" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="3ddc3b12-99ea-4364-b315-6310a2050be5" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="bda39d3a-451b-4350-8266-81ab10fa0523" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
- <Instance ModuleGuid="50bcb105-6634-441d-b403-659110a03ad2" PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>\r
<Instance ModuleGuid="27d67720-ea68-48ae-93da-a3a074c90e30" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="4674739d-3195-4fb2-8094-ac1d22d00194" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="27d67720-ea68-48ae-93da-a3a074c90e30" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="4674739d-3195-4fb2-8094-ac1d22d00194" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
+ <!--Pkg: MdePkg Mod: BasePrintLib Path: MdePkg\Library\BasePrintLib\BasePrintLib.msa-->\r
+ <Instance ModuleGuid="a86fbfca-0183-4eeb-aa8a-762e3b7da1f3" ModuleVersion="1.0" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec" PackageVersion="0.3"/>\r
</Libraries>\r
<PcdBuildDefinition>\r
<PcdData ItemType="FIXED_AT_BUILD">\r
</Libraries>\r
<PcdBuildDefinition>\r
<PcdData ItemType="FIXED_AT_BUILD">\r
<Instance ModuleGuid="52af22ae-9901-4484-8cdc-622dd5838b09" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="3ddc3b12-99ea-4364-b315-6310a2050be5" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="bda39d3a-451b-4350-8266-81ab10fa0523" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="52af22ae-9901-4484-8cdc-622dd5838b09" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="3ddc3b12-99ea-4364-b315-6310a2050be5" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="bda39d3a-451b-4350-8266-81ab10fa0523" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
- <Instance ModuleGuid="50bcb105-6634-441d-b403-659110a03ad2" PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>\r
<Instance ModuleGuid="27d67720-ea68-48ae-93da-a3a074c90e30" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="4674739d-3195-4fb2-8094-ac1d22d00194" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="27d67720-ea68-48ae-93da-a3a074c90e30" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="4674739d-3195-4fb2-8094-ac1d22d00194" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
+ <!--Pkg: MdePkg Mod: BasePrintLib Path: MdePkg\Library\BasePrintLib\BasePrintLib.msa-->\r
+ <Instance ModuleGuid="a86fbfca-0183-4eeb-aa8a-762e3b7da1f3" ModuleVersion="1.0" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec" PackageVersion="0.3"/>\r
</Libraries>\r
<PcdBuildDefinition>\r
<PcdData ItemType="FIXED_AT_BUILD">\r
</Libraries>\r
<PcdBuildDefinition>\r
<PcdData ItemType="FIXED_AT_BUILD">\r
<Instance ModuleGuid="52af22ae-9901-4484-8cdc-622dd5838b09" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="3ddc3b12-99ea-4364-b315-6310a2050be5" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="bda39d3a-451b-4350-8266-81ab10fa0523" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="52af22ae-9901-4484-8cdc-622dd5838b09" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="3ddc3b12-99ea-4364-b315-6310a2050be5" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="bda39d3a-451b-4350-8266-81ab10fa0523" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
- <Instance ModuleGuid="50bcb105-6634-441d-b403-659110a03ad2" PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>\r
<Instance ModuleGuid="27d67720-ea68-48ae-93da-a3a074c90e30" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="4674739d-3195-4fb2-8094-ac1d22d00194" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="27d67720-ea68-48ae-93da-a3a074c90e30" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="4674739d-3195-4fb2-8094-ac1d22d00194" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
+ <!--Pkg: MdePkg Mod: BasePrintLib Path: MdePkg\Library\BasePrintLib\BasePrintLib.msa-->\r
+ <Instance ModuleGuid="a86fbfca-0183-4eeb-aa8a-762e3b7da1f3" ModuleVersion="1.0" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec" PackageVersion="0.3"/>\r
</Libraries>\r
<PcdBuildDefinition>\r
<PcdData ItemType="FIXED_AT_BUILD">\r
</Libraries>\r
<PcdBuildDefinition>\r
<PcdData ItemType="FIXED_AT_BUILD">\r
<GuidValue>A3f436EA-A127-4EF8-957C-8048606FF670</GuidValue>\r
<Version>1.0</Version>\r
<Abstract>Component description file for BC module.</Abstract>\r
<GuidValue>A3f436EA-A127-4EF8-957C-8048606FF670</GuidValue>\r
<Version>1.0</Version>\r
<Abstract>Component description file for BC module.</Abstract>\r
- <Description>This module provides basic network capability.</Description>\r
- <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
+ <Description>This module provides PXE basic network capability and start EfiPxeBaseCodeProtocol.</Description>\r
+ <Copyright>Copyright (c) 2006 - 2007, Intel Corporation</Copyright>\r
<License>All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
<License>All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
<OutputFileBasename>BC</OutputFileBasename>\r
</ModuleDefinitions>\r
<LibraryClassDefinitions>\r
<OutputFileBasename>BC</OutputFileBasename>\r
</ModuleDefinitions>\r
<LibraryClassDefinitions>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">\r
+ <LibraryClass Usage="ALWAYS_CONSUMED" RecommendedInstanceGuid="bda39d3a-451b-4350-8266-81ab10fa0523">\r
<Keyword>DebugLib</Keyword>\r
<Keyword>DebugLib</Keyword>\r
+ <HelpText>Recommended libary Instance is PeiDxeDebugLibReportStatusCode instance in MdePkg.</HelpText>\r
</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>UefiDriverModelLib</Keyword>\r
</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>UefiDriverModelLib</Keyword>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>BaseLib</Keyword>\r
</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>BaseLib</Keyword>\r
</LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">\r
+ <LibraryClass Usage="ALWAYS_CONSUMED" RecommendedInstanceGuid="a86fbfca-0183-4eeb-aa8a-762e3b7da1f3">\r
<Keyword>PrintLib</Keyword>\r
<Keyword>PrintLib</Keyword>\r
+ <HelpText>Recommended libary Instance is BasePrintLib instance in MdePkg.</HelpText>\r
</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>BaseMemoryLib</Keyword>\r
</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>BaseMemoryLib</Keyword>\r
<Filename>Bc.h</Filename>\r
<Filename>ip.h</Filename>\r
<Filename>ComponentName.c</Filename>\r
<Filename>Bc.h</Filename>\r
<Filename>ip.h</Filename>\r
<Filename>ComponentName.c</Filename>\r
- <Filename>Print.c</Filename>\r
</SourceFiles>\r
<PackageDependencies>\r
<Package PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Package PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>\r
</PackageDependencies>\r
<Protocols>\r
</SourceFiles>\r
<PackageDependencies>\r
<Package PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Package PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>\r
</PackageDependencies>\r
<Protocols>\r
- <Protocol Usage="TO_START">\r
- <ProtocolCName>gEfiBisProtocolGuid</ProtocolCName>\r
+ <Protocol Usage="BY_START">\r
+ <ProtocolCName>gEfiPxeBaseCodeProtocolGuid</ProtocolCName>\r
</Protocol>\r
<Protocol Usage="BY_START">\r
<ProtocolCName>gEfiLoadFileProtocolGuid</ProtocolCName>\r
</Protocol>\r
</Protocol>\r
<Protocol Usage="BY_START">\r
<ProtocolCName>gEfiLoadFileProtocolGuid</ProtocolCName>\r
</Protocol>\r
- <Protocol Usage="SOMETIMES_PRODUCED">\r
- <ProtocolCName>gEfiPxeBaseCodeCallbackProtocolGuid</ProtocolCName>\r
- </Protocol>\r
+ <Protocol Usage="TO_START">\r
+ <ProtocolCName>gEfiBisProtocolGuid</ProtocolCName>\r
+ </Protocol> \r
<Protocol Usage="TO_START">\r
<ProtocolCName>gEfiSimpleNetworkProtocolGuid</ProtocolCName>\r
</Protocol>\r
<Protocol Usage="TO_START">\r
<Protocol Usage="TO_START">\r
<ProtocolCName>gEfiSimpleNetworkProtocolGuid</ProtocolCName>\r
</Protocol>\r
<Protocol Usage="TO_START">\r
- <ProtocolCName>gEfiDevicePathProtocolGuid</ProtocolCName>\r
- </Protocol>\r
- <Protocol Usage="SOMETIMES_CONSUMED">\r
<ProtocolCName>gEfiNetworkInterfaceIdentifierProtocolGuid</ProtocolCName>\r
</Protocol>\r
<ProtocolCName>gEfiNetworkInterfaceIdentifierProtocolGuid</ProtocolCName>\r
</Protocol>\r
- <Protocol Usage="SOMETIMES_CONSUMED">\r
+ <Protocol Usage="TO_START">\r
<ProtocolCName>gEfiNetworkInterfaceIdentifierProtocolGuid_31</ProtocolCName>\r
</Protocol>\r
<ProtocolCName>gEfiNetworkInterfaceIdentifierProtocolGuid_31</ProtocolCName>\r
</Protocol>\r
- <Protocol Usage="BY_START">\r
- <ProtocolCName>gEfiPxeBaseCodeProtocolGuid</ProtocolCName>\r
+ <Protocol Usage="ALWAYS_CONSUMED">\r
+ <ProtocolCName>gEfiDevicePathProtocolGuid</ProtocolCName>\r
+ </Protocol>\r
+ <Protocol Usage="SOMETIMES_PRODUCED">\r
+ <ProtocolCName>gEfiPxeBaseCodeCallbackProtocolGuid</ProtocolCName>\r
</Protocol>\r
</Protocols>\r
<SystemTables>\r
</Protocol>\r
</Protocols>\r
<SystemTables>\r
<SystemTableCName>gEfiSmbiosTableGuid</SystemTableCName>\r
</SystemTableCNames>\r
</SystemTables>\r
<SystemTableCName>gEfiSmbiosTableGuid</SystemTableCName>\r
</SystemTableCNames>\r
</SystemTables>\r
- <Guids>\r
- <GuidCNames Usage="ALWAYS_CONSUMED">\r
- <GuidCName>gEfiSmbiosTableGuid</GuidCName>\r
- </GuidCNames>\r
- </Guids>\r
<Externs>\r
<Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>\r
<Specification>EDK_RELEASE_VERSION 0x00020000</Specification>\r
<Externs>\r
<Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>\r
<Specification>EDK_RELEASE_VERSION 0x00020000</Specification>\r
-UINTN\r
-EFIAPI\r
-AsciiPrint (\r
- IN CONST CHAR8 *Format,\r
- ...\r
- )\r
-;\r
-\r
//\r
// Define SMBIOS tables.\r
//\r
//\r
// Define SMBIOS tables.\r
//\r
- if (BisHandleCount != sizeof BisHandleBuffer) {\r
+ if (BisHandleCount != sizeof (BisHandleBuffer)) {\r
//\r
// This really should never happen, but I am paranoid.\r
//\r
//\r
// This really should never happen, but I am paranoid.\r
//\r
{\r
EFI_SIMPLE_NETWORK_PROTOCOL *SnpPtr;\r
EFI_SIMPLE_NETWORK_MODE *SnpModePtr;\r
{\r
EFI_SIMPLE_NETWORK_PROTOCOL *SnpPtr;\r
EFI_SIMPLE_NETWORK_MODE *SnpModePtr;\r
EFI_STATUS StatCode;\r
PXE_BASECODE_DEVICE *Private;\r
\r
EFI_STATUS StatCode;\r
PXE_BASECODE_DEVICE *Private;\r
\r
//\r
// Allocate Tx/Rx buffers\r
//\r
//\r
// Allocate Tx/Rx buffers\r
//\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- BUFFER_ALLOCATE_SIZE,\r
- (VOID **) &Private->TransmitBufferPtr\r
- );\r
-\r
- if (!EFI_ERROR (Status)) {\r
- ZeroMem (Private->TransmitBufferPtr, BUFFER_ALLOCATE_SIZE);\r
- } else {\r
+ Private->TransmitBufferPtr = AllocateZeroPool (BUFFER_ALLOCATE_SIZE);\r
+ if (Private->TransmitBufferPtr == NULL) {\r
DEBUG ((EFI_D_NET, "\nBcStart() Could not alloc TxBuf.\n"));\r
EfiReleaseLock (&Private->Lock);\r
return EFI_OUT_OF_RESOURCES;\r
}\r
\r
DEBUG ((EFI_D_NET, "\nBcStart() Could not alloc TxBuf.\n"));\r
EfiReleaseLock (&Private->Lock);\r
return EFI_OUT_OF_RESOURCES;\r
}\r
\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- BUFFER_ALLOCATE_SIZE,\r
- (VOID **) &Private->ReceiveBufferPtr\r
- );\r
-\r
- if (!EFI_ERROR (Status)) {\r
- ZeroMem (Private->ReceiveBufferPtr, BUFFER_ALLOCATE_SIZE);\r
- } else {\r
+ Private->ReceiveBufferPtr = AllocateZeroPool (BUFFER_ALLOCATE_SIZE);\r
+ if (Private->ReceiveBufferPtr == NULL) {\r
DEBUG ((EFI_D_NET, "\nBcStart() Could not alloc RxBuf.\n"));\r
DEBUG ((EFI_D_NET, "\nBcStart() Could not alloc RxBuf.\n"));\r
- gBS->FreePool (Private->TransmitBufferPtr);\r
+ FreePool (Private->TransmitBufferPtr);\r
EfiReleaseLock (&Private->Lock);\r
return EFI_OUT_OF_RESOURCES;\r
}\r
\r
EfiReleaseLock (&Private->Lock);\r
return EFI_OUT_OF_RESOURCES;\r
}\r
\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- 256,\r
- (VOID **) &Private->TftpErrorBuffer\r
- );\r
-\r
- if (EFI_ERROR (Status)) {\r
- gBS->FreePool (Private->ReceiveBufferPtr);\r
- gBS->FreePool (Private->TransmitBufferPtr);\r
+ Private->TftpErrorBuffer = AllocatePool (256);\r
+ if (Private->TftpErrorBuffer == NULL) {\r
+ FreePool (Private->ReceiveBufferPtr);\r
+ FreePool (Private->TransmitBufferPtr);\r
EfiReleaseLock (&Private->Lock);\r
return EFI_OUT_OF_RESOURCES;\r
}\r
\r
EfiReleaseLock (&Private->Lock);\r
return EFI_OUT_OF_RESOURCES;\r
}\r
\r
- Status = gBS->AllocatePool (EfiBootServicesData, 256, (VOID **) &Private->TftpAckBuffer);\r
-\r
- if (EFI_ERROR (Status)) {\r
- gBS->FreePool (Private->TftpErrorBuffer);\r
- gBS->FreePool (Private->ReceiveBufferPtr);\r
- gBS->FreePool (Private->TransmitBufferPtr);\r
+ Private->TftpAckBuffer = AllocatePool (256);\r
+ if (Private->TftpAckBuffer == NULL) {\r
+ FreePool (Private->TftpErrorBuffer);\r
+ FreePool (Private->ReceiveBufferPtr);\r
+ FreePool (Private->TransmitBufferPtr);\r
EfiReleaseLock (&Private->Lock);\r
return EFI_OUT_OF_RESOURCES;\r
}\r
EfiReleaseLock (&Private->Lock);\r
return EFI_OUT_OF_RESOURCES;\r
}\r
}\r
\r
if (Private->TransmitBufferPtr != NULL) {\r
}\r
\r
if (Private->TransmitBufferPtr != NULL) {\r
- gBS->FreePool (Private->TransmitBufferPtr);\r
+ FreePool (Private->TransmitBufferPtr);\r
Private->TransmitBufferPtr = NULL;\r
}\r
\r
if (Private->ReceiveBufferPtr != NULL) {\r
Private->TransmitBufferPtr = NULL;\r
}\r
\r
if (Private->ReceiveBufferPtr != NULL) {\r
- gBS->FreePool (Private->ReceiveBufferPtr);\r
+ FreePool (Private->ReceiveBufferPtr);\r
Private->ReceiveBufferPtr = NULL;\r
}\r
\r
if (Private->ArpBuffer != NULL) {\r
Private->ReceiveBufferPtr = NULL;\r
}\r
\r
if (Private->ArpBuffer != NULL) {\r
- gBS->FreePool (Private->ArpBuffer);\r
+ FreePool (Private->ArpBuffer);\r
Private->ArpBuffer = NULL;\r
}\r
\r
if (Private->TftpErrorBuffer != NULL) {\r
Private->ArpBuffer = NULL;\r
}\r
\r
if (Private->TftpErrorBuffer != NULL) {\r
- gBS->FreePool (Private->TftpErrorBuffer);\r
+ FreePool (Private->TftpErrorBuffer);\r
Private->TftpErrorBuffer = NULL;\r
}\r
\r
if (Private->TftpAckBuffer != NULL) {\r
Private->TftpErrorBuffer = NULL;\r
}\r
\r
if (Private->TftpAckBuffer != NULL) {\r
- gBS->FreePool (Private->TftpAckBuffer);\r
+ FreePool (Private->TftpAckBuffer);\r
Private->TftpAckBuffer = NULL;\r
}\r
\r
Private->TftpAckBuffer = NULL;\r
}\r
\r
//\r
// Allocate structures needed by BaseCode and LoadFile protocols.\r
//\r
//\r
// Allocate structures needed by BaseCode and LoadFile protocols.\r
//\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- sizeof (PXE_BASECODE_DEVICE),\r
- (VOID **) &Private\r
- );\r
+ Private = AllocateZeroPool (sizeof (PXE_BASECODE_DEVICE));\r
- if (!EFI_ERROR (Status)) {\r
- ZeroMem (Private, sizeof (PXE_BASECODE_DEVICE));\r
- } else {\r
+ if (Private == NULL ) {\r
DEBUG ((EFI_D_NET, "\nBcNotifySnp() Could not alloc PXE_BASECODE_DEVICE structure.\n"));\r
DEBUG ((EFI_D_NET, "\nBcNotifySnp() Could not alloc PXE_BASECODE_DEVICE structure.\n"));\r
+ return EFI_OUT_OF_RESOURCES;\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- sizeof (LOADFILE_DEVICE),\r
- (VOID **) &pLF\r
- );\r
-\r
- if (!EFI_ERROR (Status)) {\r
- ZeroMem (pLF, sizeof (LOADFILE_DEVICE));\r
- } else {\r
+ pLF = AllocateZeroPool (sizeof (LOADFILE_DEVICE));\r
+ if (pLF == NULL) {\r
DEBUG ((EFI_D_NET, "\nBcNotifySnp() Could not alloc LOADFILE_DEVICE structure.\n"));\r
DEBUG ((EFI_D_NET, "\nBcNotifySnp() Could not alloc LOADFILE_DEVICE structure.\n"));\r
- gBS->FreePool (Private);\r
- return Status;\r
+ FreePool (Private);\r
+ return EFI_OUT_OF_RESOURCES;\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- sizeof (EFI_PXE_BASE_CODE_MODE),\r
- (VOID **) &Private->EfiBc.Mode\r
- );\r
-\r
- if (!EFI_ERROR (Status)) {\r
- ZeroMem (Private->EfiBc.Mode, sizeof (EFI_PXE_BASE_CODE_MODE));\r
- } else {\r
+ Private->EfiBc.Mode = AllocateZeroPool (sizeof (EFI_PXE_BASE_CODE_MODE));\r
+ if (Private->EfiBc.Mode == NULL) {\r
DEBUG ((EFI_D_NET, "\nBcNotifySnp() Could not alloc Mode structure.\n"));\r
DEBUG ((EFI_D_NET, "\nBcNotifySnp() Could not alloc Mode structure.\n"));\r
- gBS->FreePool (Private);\r
- gBS->FreePool (pLF);\r
- return Status;\r
+ FreePool (Private);\r
+ FreePool (pLF);\r
+ return EFI_OUT_OF_RESOURCES;\r
}\r
//\r
// Lock access, just in case\r
}\r
//\r
// Lock access, just in case\r
return Status;\r
\r
PxeBcError: ;\r
return Status;\r
\r
PxeBcError: ;\r
- gBS->FreePool (Private->EfiBc.Mode);\r
- gBS->FreePool (Private);\r
- gBS->FreePool (pLF);\r
+ FreePool (Private->EfiBc.Mode);\r
+ FreePool (Private);\r
+ FreePool (pLF);\r
- gBS->FreePool (LoadDevice->Private->EfiBc.Mode);\r
- gBS->FreePool (LoadDevice->Private);\r
- gBS->FreePool (LoadDevice);\r
+ FreePool (LoadDevice->Private->EfiBc.Mode);\r
+ FreePool (LoadDevice->Private);\r
+ FreePool (LoadDevice);\r
-Copyright (c) 2006, Intel Corporation \r
+Copyright (c) 2006 - 2007, Intel Corporation \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
EFI_PXE_BASE_CODE_MODE *PxeBcMode;\r
EFI_SIMPLE_NETWORK_MODE *SnpMode;\r
ARP_PACKET *ArpPacket;\r
EFI_PXE_BASE_CODE_MODE *PxeBcMode;\r
EFI_SIMPLE_NETWORK_MODE *SnpMode;\r
ARP_PACKET *ArpPacket;\r
UINTN HardwareAddrLength;\r
UINT8 *SrcProtocolAddrPtr;\r
UINT8 *DestHardwareAddrptr;\r
UINTN HardwareAddrLength;\r
UINT8 *SrcProtocolAddrPtr;\r
UINT8 *DestHardwareAddrptr;\r
// Allocate ARP buffer\r
//\r
if (Private->ArpBuffer == NULL) {\r
// Allocate ARP buffer\r
//\r
if (Private->ArpBuffer == NULL) {\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- SnpMode->MediaHeaderSize + sizeof (ARP_PACKET),\r
- (VOID **) &Private->ArpBuffer\r
- );\r
-\r
- if (EFI_ERROR (Status)) {\r
- return Status;\r
+ Private->ArpBuffer = AllocatePool (SnpMode->MediaHeaderSize + sizeof (ARP_PACKET));\r
+ if (Private->ArpBuffer == NULL) {\r
+ return EFI_OUT_OF_RESOURCES;\r
-Copyright (c) 2006, Intel Corporation\r
+Copyright (c) 2006 - 2007, Intel Corporation\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
)\r
{\r
if (Private->TransmitBuffer != NULL) {\r
)\r
{\r
if (Private->TransmitBuffer != NULL) {\r
- gBS->FreePool (Private->TransmitBuffer);\r
+ FreePool (Private->TransmitBuffer);\r
Private->TransmitBuffer = NULL;\r
}\r
\r
if (Private->ReceiveBuffers != NULL) {\r
Private->TransmitBuffer = NULL;\r
}\r
\r
if (Private->ReceiveBuffers != NULL) {\r
- gBS->FreePool (Private->ReceiveBuffers);\r
+ FreePool (Private->ReceiveBuffers);\r
Private->ReceiveBuffers = NULL;\r
}\r
}\r
Private->ReceiveBuffers = NULL;\r
}\r
}\r
PXE_BASECODE_DEVICE *Private\r
)\r
{\r
PXE_BASECODE_DEVICE *Private\r
)\r
{\r
\r
if (Private->DhcpPacketBuffer == NULL) {\r
\r
if (Private->DhcpPacketBuffer == NULL) {\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- sizeof (DHCP_RECEIVE_BUFFER) * (PXE_BIS_INDEX + 1),\r
- &Private->DhcpPacketBuffer\r
- );\r
-\r
- if (EFI_ERROR (Status) || Private->DhcpPacketBuffer == NULL) {\r
- Private->DhcpPacketBuffer = NULL;\r
+ Private->DhcpPacketBuffer = AllocatePool (sizeof (DHCP_RECEIVE_BUFFER) * (PXE_BIS_INDEX + 1));\r
+ if (Private->DhcpPacketBuffer == NULL) {\r
FreeMem (Private);\r
return FALSE;\r
}\r
}\r
\r
FreeMem (Private);\r
return FALSE;\r
}\r
}\r
\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- sizeof (EFI_PXE_BASE_CODE_PACKET),\r
- &Private->TransmitBuffer\r
- );\r
-\r
- if (EFI_ERROR (Status) || Private->TransmitBuffer == NULL) {\r
- gBS->FreePool (Private->DhcpPacketBuffer);\r
+ Private->TransmitBuffer = AllocatePool (sizeof (EFI_PXE_BASE_CODE_PACKET));\r
+ if (Private->TransmitBuffer == NULL) {\r
+ FreePool (Private->DhcpPacketBuffer);\r
Private->DhcpPacketBuffer = NULL;\r
Private->DhcpPacketBuffer = NULL;\r
- Private->TransmitBuffer = NULL;\r
FreeMem (Private);\r
return FALSE;\r
}\r
\r
FreeMem (Private);\r
return FALSE;\r
}\r
\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- sizeof (DHCP_RECEIVE_BUFFER) * (MAX_OFFERS),\r
- &Private->ReceiveBuffers\r
- );\r
-\r
- if (EFI_ERROR (Status) || Private->ReceiveBuffers == NULL) {\r
- gBS->FreePool (Private->TransmitBuffer);\r
- gBS->FreePool (Private->DhcpPacketBuffer);\r
+ Private->ReceiveBuffers = AllocatePool (sizeof (DHCP_RECEIVE_BUFFER) * (MAX_OFFERS));\r
+ if (Private->ReceiveBuffers == NULL) {\r
+ FreePool (Private->TransmitBuffer);\r
+ FreePool (Private->DhcpPacketBuffer);\r
Private->DhcpPacketBuffer = NULL;\r
Private->TransmitBuffer = NULL;\r
Private->DhcpPacketBuffer = NULL;\r
Private->TransmitBuffer = NULL;\r
- Private->ReceiveBuffers = NULL;\r
FreeMem (Private);\r
return FALSE;\r
}\r
FreeMem (Private);\r
return FALSE;\r
}\r
PXE_SERVER_LISTS DefaultSrvList;\r
PXE_SERVER_LISTS *ServerListPtr;\r
PXE_SERVER_LISTS *McastServerListPtr;\r
PXE_SERVER_LISTS DefaultSrvList;\r
PXE_SERVER_LISTS *ServerListPtr;\r
PXE_SERVER_LISTS *McastServerListPtr;\r
UNION_PTR LocalPtr;\r
UINTN Index;\r
UINTN Index2;\r
UNION_PTR LocalPtr;\r
UINTN Index;\r
UINTN Index2;\r
}\r
\r
if (ServerListPtr == NULL) {\r
}\r
\r
if (ServerListPtr == NULL) {\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- sizeof (PXEV4_SERVER_LIST) + (Index2 - 1) * sizeof (EFI_IPv4_ADDRESS),\r
- (VOID **) &ServerListPtr\r
+ ServerListPtr = AllocatePool (\r
+ sizeof (PXEV4_SERVER_LIST) + (Index2 - 1) * sizeof (EFI_IPv4_ADDRESS)\r
- if (EFI_ERROR (Status) || ServerListPtr == NULL) {\r
- ServerListPtr = NULL;\r
+ if (ServerListPtr == NULL) {\r
EfiReleaseLock (&Private->Lock);\r
return EFI_OUT_OF_RESOURCES;\r
}\r
EfiReleaseLock (&Private->Lock);\r
return EFI_OUT_OF_RESOURCES;\r
}\r
);\r
\r
if (AcquiredSrvList) {\r
);\r
\r
if (AcquiredSrvList) {\r
- gBS->FreePool (ServerListPtr);\r
+ FreePool (ServerListPtr);\r
}\r
\r
FreeMem (Private);\r
}\r
\r
FreeMem (Private);\r
--*/\r
{\r
EFI_PXE_BASE_CODE_MODE *PxebcMode;\r
--*/\r
{\r
EFI_PXE_BASE_CODE_MODE *PxebcMode;\r
PXE_BASECODE_DEVICE *Private;\r
\r
//\r
PXE_BASECODE_DEVICE *Private;\r
\r
//\r
PxebcMode = Private->EfiBc.Mode;\r
\r
if (Private->DhcpPacketBuffer == NULL) {\r
PxebcMode = Private->EfiBc.Mode;\r
\r
if (Private->DhcpPacketBuffer == NULL) {\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- sizeof (DHCP_RECEIVE_BUFFER) * (PXE_BIS_INDEX + 1),\r
- &Private->DhcpPacketBuffer\r
- );\r
-\r
- if (EFI_ERROR (Status) || Private->DhcpPacketBuffer == NULL) {\r
- Private->DhcpPacketBuffer = NULL;\r
+ Private->DhcpPacketBuffer = AllocatePool (sizeof (DHCP_RECEIVE_BUFFER) * (PXE_BIS_INDEX + 1));\r
+ if (Private->DhcpPacketBuffer == NULL) {\r
EfiReleaseLock (&Private->Lock);\r
return EFI_OUT_OF_RESOURCES;\r
}\r
EfiReleaseLock (&Private->Lock);\r
return EFI_OUT_OF_RESOURCES;\r
}\r
{\r
EFI_PXE_BASE_CODE_IP_FILTER Filter;\r
EFI_STATUS StatCode;\r
{\r
EFI_PXE_BASE_CODE_IP_FILTER Filter;\r
EFI_STATUS StatCode;\r
UINT64 BufferSizeLocal;\r
UINTN PacketSize;\r
UINT8 *BufferPtrLocal;\r
UINT64 BufferSizeLocal;\r
UINTN PacketSize;\r
UINT8 *BufferPtrLocal;\r
}\r
\r
if (DontUseBuffer) {\r
}\r
\r
if (DontUseBuffer) {\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- BUFFER_ALLOCATE_SIZE,\r
- (VOID **) &BufferPtrLocal\r
- );\r
-\r
- if (EFI_ERROR (Status) || BufferPtrLocal == NULL) {\r
+ BufferPtrLocal = AllocatePool (BUFFER_ALLOCATE_SIZE);\r
+ if (BufferPtrLocal == NULL) {\r
DEBUG ((EFI_D_NET, "\nPxeBcMtftp() Exit #4"));\r
return EFI_OUT_OF_RESOURCES;\r
}\r
DEBUG ((EFI_D_NET, "\nPxeBcMtftp() Exit #4"));\r
return EFI_OUT_OF_RESOURCES;\r
}\r
}\r
\r
if (DontUseBuffer) {\r
}\r
\r
if (DontUseBuffer) {\r
- gBS->FreePool (BufferPtrLocal);\r
+ FreePool (BufferPtrLocal);\r
}\r
\r
if (StatCode != EFI_SUCCESS) {\r
}\r
\r
if (StatCode != EFI_SUCCESS) {\r
-Copyright (c) 2006, Intel Corporation \r
+Copyright (c) 2006 - 2007, Intel Corporation \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
//\r
// Allocate credential file buffer.\r
//\r
//\r
// Allocate credential file buffer.\r
//\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- (UINTN) CredentialLen,\r
- &CredentialBuffer\r
- );\r
-\r
- if (EFI_ERROR (Status)) {\r
- return Status;\r
+ CredentialBuffer = AllocatePool ((UINTN) CredentialLen);\r
+ if (CredentialBuffer == NULL) {\r
+ return EFI_OUT_OF_RESOURCES;\r
}\r
//\r
// Download credential file.\r
}\r
//\r
// Download credential file.\r
);\r
\r
if (EFI_ERROR (Status)) {\r
);\r
\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (CredentialBuffer);\r
+ FreePool (CredentialBuffer);\r
return Status;\r
}\r
//\r
return Status;\r
}\r
//\r
Status = EFI_PROTOCOL_ERROR;\r
}\r
\r
Status = EFI_PROTOCOL_ERROR;\r
}\r
\r
- gBS->FreePool (CredentialBuffer);\r
+ FreePool (CredentialBuffer);\r
<Version>1.0</Version>\r
<Abstract>Component description file for Dhcp4 module.</Abstract>\r
<Description>This module can produce PxeDhcp4 protocol on ControllerHandle.</Description>\r
<Version>1.0</Version>\r
<Abstract>Component description file for Dhcp4 module.</Abstract>\r
<Description>This module can produce PxeDhcp4 protocol on ControllerHandle.</Description>\r
- <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
+ <Copyright>Copyright (c) 2006 - 2007, Intel Corporation</Copyright>\r
<License>All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
<License>All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
<OutputFileBasename>Dhcp4</OutputFileBasename>\r
</ModuleDefinitions>\r
<LibraryClassDefinitions>\r
<OutputFileBasename>Dhcp4</OutputFileBasename>\r
</ModuleDefinitions>\r
<LibraryClassDefinitions>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">\r
+ <LibraryClass Usage="ALWAYS_CONSUMED" RecommendedInstanceGuid="bda39d3a-451b-4350-8266-81ab10fa0523">\r
<Keyword>DebugLib</Keyword>\r
<Keyword>DebugLib</Keyword>\r
+ <HelpText>Recommended libary Instance is PeiDxeDebugLibReportStatusCode instance in MdePkg.</HelpText>\r
</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>UefiDriverModelLib</Keyword>\r
</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>UefiDriverModelLib</Keyword>\r
<Package PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>\r
</PackageDependencies>\r
<Protocols>\r
<Package PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>\r
</PackageDependencies>\r
<Protocols>\r
- <Protocol Usage="ALWAYS_CONSUMED">\r
- <ProtocolCName>gEfiPxeDhcp4CallbackProtocolGuid</ProtocolCName>\r
- </Protocol>\r
<Protocol Usage="BY_START">\r
<ProtocolCName>gEfiPxeDhcp4ProtocolGuid</ProtocolCName>\r
</Protocol>\r
<Protocol Usage="BY_START">\r
<ProtocolCName>gEfiPxeDhcp4ProtocolGuid</ProtocolCName>\r
</Protocol>\r
- <Protocol Usage="ALWAYS_CONSUMED">\r
- <ProtocolCName>gEfiSimpleNetworkProtocolGuid</ProtocolCName>\r
- </Protocol>\r
<Protocol Usage="TO_START">\r
<ProtocolCName>gEfiPxeBaseCodeProtocolGuid</ProtocolCName>\r
</Protocol>\r
<Protocol Usage="TO_START">\r
<ProtocolCName>gEfiPxeBaseCodeProtocolGuid</ProtocolCName>\r
</Protocol>\r
+ <Protocol Usage="TO_START">\r
+ <ProtocolCName>gEfiSimpleNetworkProtocolGuid</ProtocolCName>\r
+ </Protocol>\r
+ <Protocol Usage="SOMETIMES_CONSUMED">\r
+ <ProtocolCName>gEfiPxeDhcp4CallbackProtocolGuid</ProtocolCName>\r
+ </Protocol>\r
</Protocols>\r
<Externs>\r
<Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>\r
</Protocols>\r
<Externs>\r
<Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>\r
-Copyright (c) 2006, Intel Corporation \r
+Copyright (c) 2006 - 2007, Intel Corporation \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
//\r
// Initialize the PXE DHCP device instance.\r
//\r
//\r
// Initialize the PXE DHCP device instance.\r
//\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- sizeof (PXE_DHCP4_PRIVATE_DATA),\r
- (VOID **) &Private\r
- );\r
-\r
- if (EFI_ERROR (Status)) {\r
+ Private = AllocateZeroPool (sizeof (PXE_DHCP4_PRIVATE_DATA));\r
+ if (Private == NULL) {\r
+ Status = EFI_OUT_OF_RESOURCES;\r
- //\r
- //\r
- //\r
- ZeroMem (Private, sizeof (PXE_DHCP4_PRIVATE_DATA));\r
\r
Private->Signature = PXE_DHCP4_PRIVATE_DATA_SIGNATURE;\r
Private->PxeBc = PxeBc;\r
\r
Private->Signature = PXE_DHCP4_PRIVATE_DATA_SIGNATURE;\r
Private->PxeBc = PxeBc;\r
// Release allocated resources\r
//\r
if (Private->PxeDhcp4.Data) {\r
// Release allocated resources\r
//\r
if (Private->PxeDhcp4.Data) {\r
- gBS->FreePool (Private->PxeDhcp4.Data);\r
+ FreePool (Private->PxeDhcp4.Data);\r
Private->PxeDhcp4.Data = NULL;\r
}\r
//\r
Private->PxeDhcp4.Data = NULL;\r
}\r
//\r
//\r
// Release our private data\r
//\r
//\r
// Release our private data\r
//\r
- gBS->FreePool (Private);\r
//\r
// Good DHCP (or BOOTP) packet. Cache it!\r
//\r
//\r
// Good DHCP (or BOOTP) packet. Cache it!\r
//\r
- EfiStatus = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- (Private->offers + 1) * sizeof (DHCP4_PACKET),\r
- (VOID **) &tmp\r
- );\r
-\r
- if (EFI_ERROR (EfiStatus)) {\r
+ tmp = AllocatePool ((Private->offers + 1) * sizeof (DHCP4_PACKET));\r
+ if (tmp == NULL) {\r
Private->offers * sizeof (DHCP4_PACKET)\r
);\r
\r
Private->offers * sizeof (DHCP4_PACKET)\r
);\r
\r
- gBS->FreePool (Private->offer_list);\r
+ FreePool (Private->offer_list);\r
}\r
\r
CopyMem (&tmp[Private->offers++], rx_pkt, sizeof (DHCP4_PACKET));\r
}\r
\r
CopyMem (&tmp[Private->offers++], rx_pkt, sizeof (DHCP4_PACKET));\r
\r
if (EFI_ERROR (EfiStatus)) {\r
if (Private->offer_list) {\r
\r
if (EFI_ERROR (EfiStatus)) {\r
if (Private->offer_list) {\r
- gBS->FreePool (Private->offer_list);\r
+ FreePool (Private->offer_list);\r
}\r
\r
Private->offers = 0;\r
}\r
\r
Private->offers = 0;\r
-Copyright (c) 2006, Intel Corporation \r
+Copyright (c) 2006 - 2007, Intel Corporation \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
// packet, just release storage and return.\r
//\r
if (This->Data->IsBootp || !This->Data->IsAck) {\r
// packet, just release storage and return.\r
//\r
if (This->Data->IsBootp || !This->Data->IsAck) {\r
- gBS->FreePool (This->Data);\r
+ FreePool (This->Data);\r
This->Data = NULL;\r
\r
if (Private->StopPxeBc) {\r
This->Data = NULL;\r
\r
if (Private->StopPxeBc) {\r
);\r
\r
if (EFI_ERROR (efi_status)) {\r
);\r
\r
if (EFI_ERROR (efi_status)) {\r
- gBS->FreePool (This->Data);\r
+ FreePool (This->Data);\r
This->Data = NULL;\r
\r
if (Private->StopPxeBc) {\r
This->Data = NULL;\r
\r
if (Private->StopPxeBc) {\r
}\r
\r
if (op->len != 4) {\r
}\r
\r
if (op->len != 4) {\r
- gBS->FreePool (This->Data);\r
+ FreePool (This->Data);\r
This->Data = NULL;\r
\r
if (Private->StopPxeBc) {\r
This->Data = NULL;\r
\r
if (Private->StopPxeBc) {\r
);\r
\r
if (EFI_ERROR (efi_status)) {\r
);\r
\r
if (EFI_ERROR (efi_status)) {\r
- gBS->FreePool (This->Data);\r
+ FreePool (This->Data);\r
This->Data = NULL;\r
\r
if (Private->StopPxeBc) {\r
This->Data = NULL;\r
\r
if (Private->StopPxeBc) {\r
}\r
\r
if (op->len != 4) {\r
}\r
\r
if (op->len != 4) {\r
- gBS->FreePool (This->Data);\r
+ FreePool (This->Data);\r
This->Data = NULL;\r
\r
if (Private->StopPxeBc) {\r
This->Data = NULL;\r
\r
if (Private->StopPxeBc) {\r
efi_status = start_udp (Private, &client_ip, &subnet_mask);\r
\r
if (EFI_ERROR (efi_status)) {\r
efi_status = start_udp (Private, &client_ip, &subnet_mask);\r
\r
if (EFI_ERROR (efi_status)) {\r
- gBS->FreePool (This->Data);\r
+ FreePool (This->Data);\r
This->Data = NULL;\r
\r
if (Private->StopPxeBc) {\r
This->Data = NULL;\r
\r
if (Private->StopPxeBc) {\r
//\r
stop_udp (Private);\r
\r
//\r
stop_udp (Private);\r
\r
- gBS->FreePool (This->Data);\r
+ FreePool (This->Data);\r
This->Data = NULL;\r
\r
if (Private->StopPxeBc) {\r
This->Data = NULL;\r
\r
if (Private->StopPxeBc) {\r
-Copyright (c) 2006, Intel Corporation \r
+Copyright (c) 2006 - 2007, Intel Corporation \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
// No DHCP Acks. Release DHCP Offer list storage.\r
//\r
if (offer_list != NULL) {\r
// No DHCP Acks. Release DHCP Offer list storage.\r
//\r
if (offer_list != NULL) {\r
- gBS->FreePool (offer_list);\r
+ FreePool (offer_list);\r
offer_list = NULL;\r
}\r
//\r
offer_list = NULL;\r
}\r
//\r
-Copyright (c) 2006, Intel Corporation \r
+Copyright (c) 2006 - 2007, Intel Corporation \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
// Allocate data structure. Return error\r
// if there is not enough available memory.\r
//\r
// Allocate data structure. Return error\r
// if there is not enough available memory.\r
//\r
- EfiStatus = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- sizeof (EFI_PXE_DHCP4_DATA),\r
- (VOID **) &This->Data\r
- );\r
-\r
- if (EFI_ERROR (EfiStatus)) {\r
- This->Data = NULL;\r
- return EfiStatus;\r
- }\r
-\r
+ This->Data = AllocatePool (sizeof (EFI_PXE_DHCP4_DATA));\r
if (This->Data == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r
}\r
if (This->Data == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r
}\r
\r
if (EFI_ERROR (EfiStatus)) {\r
if (EfiStatus != EFI_ALREADY_STARTED) {\r
\r
if (EFI_ERROR (EfiStatus)) {\r
if (EfiStatus != EFI_ALREADY_STARTED) {\r
- gBS->FreePool (This->Data);\r
+ FreePool (This->Data);\r
This->Data = NULL;\r
Private->PxeBc->Stop (Private->PxeBc);\r
return EfiStatus;\r
This->Data = NULL;\r
Private->PxeBc->Stop (Private->PxeBc);\r
return EfiStatus;\r
<Version>1.0</Version>\r
<Abstract>Component description file for SNP module.</Abstract>\r
<Description>This module attachs the SNP interface to UNDI layer that it finds on the given handle!</Description>\r
<Version>1.0</Version>\r
<Abstract>Component description file for SNP module.</Abstract>\r
<Description>This module attachs the SNP interface to UNDI layer that it finds on the given handle!</Description>\r
- <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
+ <Copyright>Copyright (c) 2006 - 2007, Intel Corporation</Copyright>\r
<License>All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
<License>All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
<OutputFileBasename>SNP</OutputFileBasename>\r
</ModuleDefinitions>\r
<LibraryClassDefinitions>\r
<OutputFileBasename>SNP</OutputFileBasename>\r
</ModuleDefinitions>\r
<LibraryClassDefinitions>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">\r
+ <LibraryClass Usage="ALWAYS_CONSUMED" RecommendedInstanceGuid="bda39d3a-451b-4350-8266-81ab10fa0523">\r
<Keyword>DebugLib</Keyword>\r
<Keyword>DebugLib</Keyword>\r
+ <HelpText>Recommended libary Instance is PeiDxeDebugLibReportStatusCode instance in MdePkg.</HelpText>\r
</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>UefiDriverModelLib</Keyword>\r
</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>UefiDriverModelLib</Keyword>\r
</SourceFiles>\r
<PackageDependencies>\r
<Package PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
</SourceFiles>\r
<PackageDependencies>\r
<Package PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
- <Package PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>\r
</PackageDependencies>\r
<Protocols>\r
<Protocol Usage="BY_START">\r
</PackageDependencies>\r
<Protocols>\r
<Protocol Usage="BY_START">\r
<Protocol Usage="TO_START">\r
<ProtocolCName>gEfiDevicePathProtocolGuid</ProtocolCName>\r
</Protocol>\r
<Protocol Usage="TO_START">\r
<ProtocolCName>gEfiDevicePathProtocolGuid</ProtocolCName>\r
</Protocol>\r
- <Protocol Usage="SOMETIMES_CONSUMED">\r
+ <Protocol Usage="TO_START">\r
<ProtocolCName>gEfiNetworkInterfaceIdentifierProtocolGuid</ProtocolCName>\r
</Protocol>\r
<Protocol Usage="TO_START">\r
<ProtocolCName>gEfiNetworkInterfaceIdentifierProtocolGuid_31</ProtocolCName>\r
<ProtocolCName>gEfiNetworkInterfaceIdentifierProtocolGuid</ProtocolCName>\r
</Protocol>\r
<Protocol Usage="TO_START">\r
<ProtocolCName>gEfiNetworkInterfaceIdentifierProtocolGuid_31</ProtocolCName>\r
+ <HelpText>This module first look for 3.1 undi, if it is not there then look for 3.0 undi.</HelpText>\r
</Protocol>\r
</Protocols>\r
<Externs>\r
</Protocol>\r
</Protocols>\r
<Externs>\r
-Copyright (c) 2006, Intel Corporation\r
+Copyright (c) 2006 - 2007, Intel Corporation\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- sizeof (struct s_v2p),\r
- (VOID **) v2p\r
- );\r
-\r
- if (Status != EFI_SUCCESS) {\r
- return Status;\r
+ *v2p = AllocatePool (sizeof (struct s_v2p));\r
+ if (*v2p != NULL) {\r
+ return EFI_OUT_OF_RESOURCES;\r
}\r
\r
Status = mPciIoFncs->Map (\r
}\r
\r
Status = mPciIoFncs->Map (\r
&(*v2p)->unmap\r
);\r
if (Status != EFI_SUCCESS) {\r
&(*v2p)->unmap\r
);\r
if (Status != EFI_SUCCESS) {\r
- gBS->FreePool (*v2p);\r
return Status;\r
}\r
(*v2p)->vaddr = vaddr;\r
return Status;\r
}\r
(*v2p)->vaddr = vaddr;\r
\r
Status = mPciIoFncs->Unmap (mPciIoFncs, v->unmap);\r
\r
\r
Status = mPciIoFncs->Unmap (mPciIoFncs, v->unmap);\r
\r
\r
if (Status) {\r
DEBUG ((EFI_D_ERROR, "Unmap failed with status = %x\n", Status));\r
\r
if (Status) {\r
DEBUG ((EFI_D_ERROR, "Unmap failed with status = %x\n", Status));\r
if ((t = v->next)->vaddr == vaddr) {\r
v->next = t->next;\r
Status = mPciIoFncs->Unmap (mPciIoFncs, t->unmap);\r
if ((t = v->next)->vaddr == vaddr) {\r
v->next = t->next;\r
Status = mPciIoFncs->Unmap (mPciIoFncs, t->unmap);\r
\r
if (Status) {\r
DEBUG ((EFI_D_ERROR, "Unmap failed with status = %x\n", Status));\r
\r
if (Status) {\r
DEBUG ((EFI_D_ERROR, "Unmap failed with status = %x\n", Status));\r
-Copyright (c) 2006, Intel Corporation \r
+Copyright (c) 2006 - 2007, Intel Corporation \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
#include <DxeDepex.h>\r
\r
DEPENDENCY_START\r
#include <DxeDepex.h>\r
\r
DEPENDENCY_START\r
<Version>1.0</Version>\r
<Abstract>Component description file for PCD service DXE driver.</Abstract>\r
<Description>This DXE driver implement and produce the PCD protocol.</Description>\r
<Version>1.0</Version>\r
<Abstract>Component description file for PCD service DXE driver.</Abstract>\r
<Description>This DXE driver implement and produce the PCD protocol.</Description>\r
- <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
+ <Copyright>Copyright (c) 2006 - 2007, Intel Corporation</Copyright>\r
<License>All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
<License>All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>BaseLib</Keyword>\r
</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>BaseLib</Keyword>\r
</LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">\r
+ <LibraryClass Usage="ALWAYS_CONSUMED" RecommendedInstanceGuid="bda39d3a-451b-4350-8266-81ab10fa0523">\r
<Keyword>DebugLib</Keyword>\r
<Keyword>DebugLib</Keyword>\r
- </LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">\r
- <Keyword>HiiLib</Keyword>\r
+ <HelpText>Recommended libary Instance is PeiDxeDebugLibReportStatusCode instance in MdePkg.</HelpText>\r
</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>UefiLib</Keyword>\r
</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>UefiLib</Keyword>\r
<Protocol Usage="ALWAYS_PRODUCED">\r
<ProtocolCName>gPcdProtocolGuid</ProtocolCName>\r
</Protocol>\r
<Protocol Usage="ALWAYS_PRODUCED">\r
<ProtocolCName>gPcdProtocolGuid</ProtocolCName>\r
</Protocol>\r
- <Protocol Usage="ALWAYS_CONSUMED">\r
- <ProtocolCName>gEfiVariableArchProtocolGuid</ProtocolCName>\r
- </Protocol>\r
- <Guids>\r
- <GuidCNames Usage="ALWAYS_CONSUMED">\r
- <GuidCName>gPcdDataBaseHobGuid</GuidCName>\r
- </GuidCNames>\r
- </Guids>\r
+ <Hobs>\r
+ <HobTypes Usage="ALWAYS_CONSUMED" HobGuidCName="gPcdDataBaseHobGuid">\r
+ <HobType>GUID_EXTENSION</HobType>\r
+ </HobTypes>\r
+ </Hobs>\r
<Externs>\r
<PcdIsDriver>DXE_PCD_DRIVER</PcdIsDriver>\r
<Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>\r
<Externs>\r
<PcdIsDriver>DXE_PCD_DRIVER</PcdIsDriver>\r
<Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>\r
<GuidValue>9B3ADA4F-AE56-4c24-8DEA-F03B7558AE50</GuidValue>\r
<Version>1.0</Version>\r
<Abstract>Component description file for Pcd Database PEIM module</Abstract>\r
<GuidValue>9B3ADA4F-AE56-4c24-8DEA-F03B7558AE50</GuidValue>\r
<Version>1.0</Version>\r
<Abstract>Component description file for Pcd Database PEIM module</Abstract>\r
- <Description>This DXE driver implement and produce the PCD PPI.</Description>\r
- <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
+ <Description>This PEIM driver implement and produce PCD PPI.</Description>\r
+ <Copyright>Copyright (c) 2006 - 2007, Intel Corporation</Copyright>\r
<License>All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
<License>All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
<OutputFileBasename>PcdPeim</OutputFileBasename>\r
</ModuleDefinitions>\r
<LibraryClassDefinitions>\r
<OutputFileBasename>PcdPeim</OutputFileBasename>\r
</ModuleDefinitions>\r
<LibraryClassDefinitions>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">\r
+ <LibraryClass Usage="ALWAYS_CONSUMED" RecommendedInstanceGuid="bda39d3a-451b-4350-8266-81ab10fa0523">\r
<Keyword>DebugLib</Keyword>\r
<Keyword>DebugLib</Keyword>\r
+ <HelpText>Recommended libary Instance is PeiDxeDebugLibReportStatusCode instance in MdePkg.</HelpText>\r
</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>PeimEntryPoint</Keyword>\r
</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>PeimEntryPoint</Keyword>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>PeiServicesTablePointerLib</Keyword>\r
</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>PeiServicesTablePointerLib</Keyword>\r
</LibraryClass>\r
- <LibraryClass Usage="ALWAYS_CONSUMED">\r
- <Keyword>MemoryAllocationLib</Keyword>\r
- </LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>BaseMemoryLib</Keyword>\r
</LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>BaseMemoryLib</Keyword>\r
</LibraryClass>\r
<Package PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Package PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>\r
</PackageDependencies>\r
<Package PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Package PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>\r
</PackageDependencies>\r
+ <Hobs>\r
+ <HobTypes Usage="ALWAYS_PRODUCED" HobGuidCName="gPcdDataBaseHobGuid">\r
+ <HobType>GUID_EXTENSION</HobType>\r
+ </HobTypes>\r
+ <HobTypes Usage="ALWAYS_PRODUCED" HobGuidCName="gPcdPeiCallbackFnTableHobGuid">\r
+ <HobType>GUID_EXTENSION</HobType>\r
+ </HobTypes>\r
+ </Hobs>\r
<PPIs>\r
<Ppi Usage="ALWAYS_PRODUCED">\r
<PpiCName>gPcdPpiGuid</PpiCName>\r
<PPIs>\r
<Ppi Usage="ALWAYS_PRODUCED">\r
<PpiCName>gPcdPpiGuid</PpiCName>\r
<PpiCName>gEfiPeiReadOnlyVariablePpiGuid</PpiCName>\r
</Ppi>\r
</PPIs>\r
<PpiCName>gEfiPeiReadOnlyVariablePpiGuid</PpiCName>\r
</Ppi>\r
</PPIs>\r
- <Guids>\r
- <GuidCNames Usage="ALWAYS_CONSUMED">\r
- <GuidCName>gPcdDataBaseHobGuid</GuidCName>\r
- </GuidCNames>\r
- <GuidCNames Usage="ALWAYS_CONSUMED">\r
- <GuidCName>gPcdPeiCallbackFnTableHobGuid</GuidCName>\r
- </GuidCNames>\r
- </Guids>\r
<Externs>\r
<PcdIsDriver>PEI_PCD_DRIVER</PcdIsDriver>\r
<Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>\r
<Externs>\r
<PcdIsDriver>PEI_PCD_DRIVER</PcdIsDriver>\r
<Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>\r
<Instance ModuleGuid="52af22ae-9901-4484-8cdc-622dd5838b09" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="3ddc3b12-99ea-4364-b315-6310a2050be5" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="bda39d3a-451b-4350-8266-81ab10fa0523" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="52af22ae-9901-4484-8cdc-622dd5838b09" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="3ddc3b12-99ea-4364-b315-6310a2050be5" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="bda39d3a-451b-4350-8266-81ab10fa0523" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
- <Instance ModuleGuid="50bcb105-6634-441d-b403-659110a03ad2" PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>\r
<Instance ModuleGuid="27d67720-ea68-48ae-93da-a3a074c90e30" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="4674739d-3195-4fb2-8094-ac1d22d00194" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="27d67720-ea68-48ae-93da-a3a074c90e30" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="4674739d-3195-4fb2-8094-ac1d22d00194" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
+ <!--Pkg: MdePkg Mod: BasePrintLib Path: MdePkg\Library\BasePrintLib\BasePrintLib.msa-->\r
+ <Instance ModuleGuid="a86fbfca-0183-4eeb-aa8a-762e3b7da1f3" ModuleVersion="1.0" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec" PackageVersion="0.3"/>\r
</Libraries>\r
<PcdBuildDefinition>\r
<PcdData ItemType="FIXED_AT_BUILD">\r
</Libraries>\r
<PcdBuildDefinition>\r
<PcdData ItemType="FIXED_AT_BUILD">\r
<Instance ModuleGuid="52af22ae-9901-4484-8cdc-622dd5838b09" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="3ddc3b12-99ea-4364-b315-6310a2050be5" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="bda39d3a-451b-4350-8266-81ab10fa0523" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="52af22ae-9901-4484-8cdc-622dd5838b09" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="3ddc3b12-99ea-4364-b315-6310a2050be5" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="bda39d3a-451b-4350-8266-81ab10fa0523" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
- <Instance ModuleGuid="50bcb105-6634-441d-b403-659110a03ad2" PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>\r
<Instance ModuleGuid="27d67720-ea68-48ae-93da-a3a074c90e30" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="4674739d-3195-4fb2-8094-ac1d22d00194" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="27d67720-ea68-48ae-93da-a3a074c90e30" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
<Instance ModuleGuid="4674739d-3195-4fb2-8094-ac1d22d00194" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
+ <!--Pkg: MdePkg Mod: BasePrintLib Path: MdePkg\Library\BasePrintLib\BasePrintLib.msa-->\r
+ <Instance ModuleGuid="a86fbfca-0183-4eeb-aa8a-762e3b7da1f3" ModuleVersion="1.0" PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec" PackageVersion="0.3"/>\r
</Libraries>\r
<PcdBuildDefinition>\r
<PcdData ItemType="FIXED_AT_BUILD">\r
</Libraries>\r
<PcdBuildDefinition>\r
<PcdData ItemType="FIXED_AT_BUILD">\r