code scrub for Ip4ConfigDxe

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7149 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jgong5
2008-12-30 02:21:34 +00:00
parent 373ade0eb6
commit c8d8f1e332
7 changed files with 447 additions and 358 deletions

View File

@@ -15,9 +15,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#ifndef _NIC_IP4_VARIABLE_H_
#define _NIC_IP4_VARIABLE_H_
#include <Uefi.h>
#include <Library/NetLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Protocol/NicIp4Config.h>
//
// Return the size of NIC_IP4_CONFIG_INFO and EFI_IP4_IPCONFIG_DATA.
// They are of variable size
@@ -75,7 +84,7 @@ Ip4ConfigReadVariable (
**/
EFI_STATUS
Ip4ConfigWriteVariable (
IN IP4_CONFIG_VARIABLE *Config OPTIONAL
IN IP4_CONFIG_VARIABLE *Config OPTIONAL
);
/**
@@ -107,9 +116,9 @@ Ip4ConfigFindNicVariable (
@param Config The new configuration parameter (NULL to remove the old)
@return The new IP4_CONFIG_VARIABLE variable if the new variable has at
@return least one NIC configure and no EFI_OUT_OF_RESOURCES failure.
@return Return NULL either because failed to locate memory for new variable
@return or the only NIC configure is removed from the Variable.
least one NIC configure and no EFI_OUT_OF_RESOURCES failure.
Return NULL either because failed to locate memory for new variable
or the only NIC configure is removed from the Variable.
**/
IP4_CONFIG_VARIABLE *
@@ -130,7 +139,7 @@ Ip4ConfigModifyVariable (
**/
VOID
Ip4ConfigFixRouteTablePointer (
IN EFI_IP4_IPCONFIG_DATA *ConfigData
IN OUT EFI_IP4_IPCONFIG_DATA *ConfigData
);
#endif