mirror of
				https://gitlab.com/qemu-project/edk2.git
				synced 2025-10-30 07:56:39 +08:00 
			
		
		
		
	NetworkPkg: Add PCD to control http boot enable or disable.
Add PCD to control http boot enable or disable. Signed-off-by: jie.fu <jie.fu@cixtech.com>
This commit is contained in:
		| @ -305,6 +305,10 @@ HttpBootIp4DxeDriverBindingSupported ( | ||||
| { | ||||
|   EFI_STATUS  Status; | ||||
|  | ||||
|   if (PcdGetBool (PcdIPv4HttpSupport) == FALSE) { | ||||
|     return EFI_UNSUPPORTED; | ||||
|   } | ||||
|  | ||||
|   // | ||||
|   // Try to open the DHCP4, HTTP4 and Device Path protocol. | ||||
|   // | ||||
| @ -795,6 +799,10 @@ HttpBootIp6DxeDriverBindingSupported ( | ||||
| { | ||||
|   EFI_STATUS  Status; | ||||
|  | ||||
|   if (PcdGetBool (PcdIPv6HttpSupport) == FALSE) { | ||||
|     return EFI_UNSUPPORTED; | ||||
|   } | ||||
|  | ||||
|   // | ||||
|   // Try to open the DHCP6, HTTP and Device Path protocol. | ||||
|   // | ||||
|  | ||||
| @ -99,6 +99,8 @@ | ||||
|   gEfiNetworkPkgTokenSpaceGuid.PcdHttpIoTimeout                  ## CONSUMES | ||||
|   gEfiNetworkPkgTokenSpaceGuid.PcdMaxHttpResumeRetries           ## CONSUMES | ||||
|   gEfiNetworkPkgTokenSpaceGuid.PcdHttpDelayBetweenResumeRetries  ## CONSUMES | ||||
|   gEfiNetworkPkgTokenSpaceGuid.PcdIPv4HttpSupport                ## CONSUMES | ||||
|   gEfiNetworkPkgTokenSpaceGuid.PcdIPv6HttpSupport                ## CONSUMES | ||||
|  | ||||
| [UserExtensions.TianoCore."ExtraFiles"] | ||||
|   HttpBootDxeExtra.uni | ||||
|  | ||||
| @ -18,3 +18,8 @@ | ||||
|   gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01 | ||||
|   gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01 | ||||
| !endif | ||||
| # | ||||
| # IPv4 and IPv6 HTTP Boot support. | ||||
| # | ||||
|   gEfiNetworkPkgTokenSpaceGuid.PcdIPv4HttpSupport|TRUE | ||||
|   gEfiNetworkPkgTokenSpaceGuid.PcdIPv6HttpSupport|TRUE | ||||
|  | ||||
| @ -187,6 +187,12 @@ | ||||
|   # @Prompt The value of Retry Count,  Default value is 0. | ||||
|   gEfiNetworkPkgTokenSpaceGuid.PcdHttpDnsRetryCount|0|UINT32|0x00000011 | ||||
|  | ||||
|   ## IPv4 HTTP support | ||||
|   gEfiNetworkPkgTokenSpaceGuid.PcdIPv4HttpSupport|TRUE|BOOLEAN|0x10000012 | ||||
|  | ||||
|   ## IPv6 HTTP support | ||||
|   gEfiNetworkPkgTokenSpaceGuid.PcdIPv6HttpSupport|TRUE|BOOLEAN|0x10000013 | ||||
|  | ||||
|   ## The default size of the HTTP transfer data buffer in bytes. | ||||
|   # This size is used for HTTP transfers, with a default value of 2MB. | ||||
|   # Increasing the buffer size can enhance performance for high-bandwidth connections. | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 mark.li
					mark.li