summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Include/Library/NetLib.h
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2010-11-17 03:39:19 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2010-11-17 03:39:19 +0000
commit4886a0a9374398a42a4fe4c4732abcf2781caa0e (patch)
treed4871c52769c25aa51485c4a12aea29b1e4c8869 /MdeModulePkg/Include/Library/NetLib.h
parent8830867de1d311a9566270441826f5d94b0d4cc0 (diff)
downloadedk2-4886a0a9374398a42a4fe4c4732abcf2781caa0e.tar.gz
edk2-4886a0a9374398a42a4fe4c4732abcf2781caa0e.tar.bz2
edk2-4886a0a9374398a42a4fe4c4732abcf2781caa0e.zip
sync patch r10180, r10191, r10628, r10720, r10772 from main trunk.
1. Update to use 1 EFI Variable per NIC (instead of converge all NIC configuration into one EFI Variable), this remove the limitation that max NIC configuration will depend on PcdMaxVariableSize. 2. Remove unnecessary Unload function EfiIp4ConfigUnload (use default Unload function NetLibDefaultUnload instead), remove global array for NIC handle tracking since it's driver model driver. 3. Add Ip4Config Variable reclaim to HiiConfigAccess.RouteConfig() to remove variable for NIC which has been removed from the system. 4. Update HiiConfigAccess.ExtractConfig interface produced by the following drivers to support NULL request string and ConfigHdr request string without any request element according to the latest UEFI specification. 5. Update the title Network Configuration to IPv4 Network Configuration. 6. Fix one issue: Some last IP settings may be lost when IP setting was re-set. 7. Fix a typo in Ip4ConfigDriverBindingStart(): it should be gEfiManagedNetworkServiceBindingProtocolGuid instead of gEfiManagedNetworkProtocolGuid. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2008@11072 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Include/Library/NetLib.h')
-rw-r--r--MdeModulePkg/Include/Library/NetLib.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/MdeModulePkg/Include/Library/NetLib.h b/MdeModulePkg/Include/Library/NetLib.h
index 7addeeef79..d920a2a842 100644
--- a/MdeModulePkg/Include/Library/NetLib.h
+++ b/MdeModulePkg/Include/Library/NetLib.h
@@ -734,6 +734,30 @@ NetLibDestroyServiceChild (
);
/**
+ Get MAC address associated with the network service handle.
+
+ There should be MNP Service Binding Protocol installed on the input ServiceHandle.
+ If SNP is installed on the ServiceHandle or its parent handle, MAC address will
+ be retrieved from SNP. If no SNP found, try to get SNP mode data use MNP.
+
+ @param[in] ServiceHandle The handle where network service binding protocols are
+ installed on.
+ @param[out] MacAddress The pointer to store the returned MAC address.
+ @param[out] AddressSize The length of returned MAC address.
+
+ @retval EFI_SUCCESS MAC address was returned successfully.
+ @retval Others Failed to get SNP mode data.
+
+**/
+EFI_STATUS
+EFIAPI
+NetLibGetMacAddress (
+ IN EFI_HANDLE ServiceHandle,
+ OUT EFI_MAC_ADDRESS *MacAddress,
+ OUT UINTN *AddressSize
+ );
+
+/**
Convert the mac address of the simple network protocol installed on
SnpHandle to a unicode string. Callers are responsible for freeing the
string storage.