X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=NetworkPkg%2FUefiPxeBcDxe%2FPxeBcSupport.h;h=b8519ae8c8de6b7d4bf00d4304fb11b1f7eaa6d5;hb=92ec8772df33f3c758763adcaf42fd42c8da812c;hp=a4f5d3131a1052240f88820413477c3d47f258ba;hpb=19ddbb25872eb727e1751fb842f0f5948a0b3aa7;p=mirror_edk2.git diff --git a/NetworkPkg/UefiPxeBcDxe/PxeBcSupport.h b/NetworkPkg/UefiPxeBcDxe/PxeBcSupport.h index a4f5d3131a..b8519ae8c8 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 - 2011, Intel Corporation. All rights reserved.
+ Copyright (c) 2007 - 2016, 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 @@ -38,7 +38,7 @@ **/ EFI_STATUS -PxeBcFlushStaionIp ( +PxeBcFlushStationIp ( PXEBC_PRIVATE_DATA *Private, EFI_IP_ADDRESS *StationIp, EFI_IP_ADDRESS *SubnetMask OPTIONAL @@ -128,13 +128,15 @@ PxeBcIcmp6ErrorUpdate ( /** This function is to configure a UDPv4 instance for UdpWrite. - @param[in] Udp4 Pointer to EFI_UDP4_PROTOCOL. - @param[in] StationIp Pointer to the station address. - @param[in] SubnetMask Pointer to the subnet mask. - @param[in] Gateway Pointer to the gateway address. - @param[in, out] SrcPort Pointer to the source port. - @param[in] DoNotFragment The flag of DoNotFragment bit in the IPv4 - packet. + @param[in] Udp4 The pointer to EFI_UDP4_PROTOCOL. + @param[in] StationIp The pointer to the station address. + @param[in] SubnetMask The pointer to the subnet mask. + @param[in] Gateway The pointer to the gateway address. + @param[in, out] SrcPort The pointer to the source port. + @param[in] DoNotFragment If TRUE, fragment is not enabled. + Otherwise, fragment is enabled. + @param[in] Ttl The time to live field of the IP header. + @param[in] ToS The type of service field of the IP header. @retval EFI_SUCCESS Successfully configured this instance. @retval Others Failed to configure this instance. @@ -147,7 +149,9 @@ PxeBcConfigUdp4Write ( IN EFI_IPv4_ADDRESS *SubnetMask, IN EFI_IPv4_ADDRESS *Gateway, IN OUT UINT16 *SrcPort, - IN BOOLEAN DoNotFragment + IN BOOLEAN DoNotFragment, + IN UINT8 Ttl, + IN UINT8 ToS ); @@ -448,14 +452,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 ); /** @@ -474,4 +480,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