X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=NetworkPkg%2FUefiPxeBcDxe%2FPxeBcSupport.h;h=0a43aeb79b3e47be8754f2b4e09044e452b03984;hb=5b9a923529dfbbd3951e3a003238d8bfb4285dff;hp=0d782050f9ac9061fc19e69f22b42f36891a2fdf;hpb=a3bcde70e6dc69000f85cc5deee98101d2ae200a;p=mirror_edk2.git diff --git a/NetworkPkg/UefiPxeBcDxe/PxeBcSupport.h b/NetworkPkg/UefiPxeBcDxe/PxeBcSupport.h index 0d782050f9..0a43aeb79b 100644 --- a/NetworkPkg/UefiPxeBcDxe/PxeBcSupport.h +++ b/NetworkPkg/UefiPxeBcDxe/PxeBcSupport.h @@ -1,7 +1,7 @@ /** @file Support functions declaration for UefiPxeBc Driver. - Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.
+ Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -25,20 +25,6 @@ #define ICMP_PARAMETER_PROBLEM 12 -/** - This function obtain the system guid and serial number from the smbios table. - - @param[out] SystemGuid The pointer of returned system guid. - - @retval EFI_SUCCESS Successfully obtained the system guid. - @retval EFI_NOT_FOUND Did not find the SMBIOS table. - -**/ -EFI_STATUS -PxeBcGetSystemGuid ( - OUT EFI_GUID *SystemGuid - ); - /** Flush the previous configration using the new station Ip address. @@ -52,7 +38,7 @@ PxeBcGetSystemGuid ( **/ EFI_STATUS -PxeBcFlushStaionIp ( +PxeBcFlushStationIp ( PXEBC_PRIVATE_DATA *Private, EFI_IP_ADDRESS *StationIp, EFI_IP_ADDRESS *SubnetMask OPTIONAL @@ -286,7 +272,7 @@ PxeBcCheckByDestIp ( /** Check the received packet with the destination port. - @param[in] PxeBcMode Pointer to mode data of PxeBc. + @param[in] Mode Pointer to mode data of PxeBc. @param[in] Session Pointer to the current UDPv4 session. @param[in, out] DestPort Pointer to the destination port. @param[in] OpFlags Operation flag for UdpRead/UdpWrite. @@ -462,14 +448,16 @@ PxeBcUintnToAscDecWithFormat ( @param[in] Number Numeric value to be converted. @param[in] Buffer Pointer to the buffer for ASCII string. - + @param[in] BufferSize The maxsize of the buffer. + @return Length The actual length of the ASCII string. **/ UINTN PxeBcUintnToAscDec ( IN UINTN Number, - IN UINT8 *Buffer + IN UINT8 *Buffer, + IN UINTN BufferSize ); /** @@ -488,4 +476,40 @@ PxeBcUniHexToUint8 ( IN CHAR16 Char ); +/** + Calculate the elapsed time. + + @param[in] Private The pointer to PXE private data + +**/ +VOID +CalcElapsedTime ( + IN PXEBC_PRIVATE_DATA *Private + ); + +/** + Get the Nic handle using any child handle in the IPv4 stack. + + @param[in] ControllerHandle Pointer to child handle over IPv4. + + @return NicHandle The pointer to the Nic handle. + +**/ +EFI_HANDLE +PxeBcGetNicByIp4Children ( + IN EFI_HANDLE ControllerHandle + ); + +/** + Get the Nic handle using any child handle in the IPv6 stack. + + @param[in] ControllerHandle Pointer to child handle over IPv6. + + @return NicHandle The pointer to the Nic handle. + +**/ +EFI_HANDLE +PxeBcGetNicByIp6Children ( + IN EFI_HANDLE ControllerHandle + ); #endif