Skip to content

Commit

Permalink
RedfishPkg/HostInterfaceBmcUsbNic: Set default Redfish service port
Browse files Browse the repository at this point in the history
BZ #4607
Create a PCD for the default Redfish service port.

Signed-off-by: Abner Chang <abner.chang@amd.com>
Cc: Nickle Wang <nicklew@nvidia.com>
Cc: Igor Kulchytskyy <igork@ami.com>
Cc: Mike Maslenkin <mike.maslenkin@gmail.com>
Reviewed-by: Nickle Wang <nicklew@nvidia.com>
  • Loading branch information
changab authored and mergify[bot] committed Dec 1, 2023
1 parent 5340219 commit 70b174e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ RedfishPlatformHostInterfaceProtocolData (
);

// RedfishServiceIpPort
RedfishOverIpData->RedfishServiceIpPort = 0;
RedfishOverIpData->RedfishServiceIpPort = PcdGet16 (PcdRedfishServicePort);

// RedfishServiceVlanId
RedfishOverIpData->RedfishServiceVlanId = ThisInstance->VLanId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
[Pcd]
gEfiRedfishPkgTokenSpaceGuid.PcdRedfishHostName ## CONSUMED
gEfiRedfishPkgTokenSpaceGuid.PcdRedfishServiceUuid ## CONSUMED
gEfiRedfishPkgTokenSpaceGuid.PcdRedfishServicePort ## CONSUMED

[Depex]
gIpmiProtocolGuid
8 changes: 6 additions & 2 deletions RedfishPkg/RedfishPkg.dec
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,16 @@
# specification for that.
#
gEfiRedfishPkgTokenSpaceGuid.PcdRedfishServiceUuid|L"00000000-0000-0000-0000-000000000000"|VOID*|0x00001006
# Use PCD to declare the Redfish service port, default set to port 443.
# Platform can overide this value in platform DSC file.
#
gEfiRedfishPkgTokenSpaceGuid.PcdRedfishServicePort|443|UINT16|0x00001007
#
# This PCD indicates that if BMC bootstrap credential service will be disabled by BIOS or not.
#
gEfiRedfishPkgTokenSpaceGuid.PcdRedfishDisableBootstrapCredentialService|FALSE|BOOLEAN|0x00001007
gEfiRedfishPkgTokenSpaceGuid.PcdRedfishDisableBootstrapCredentialService|FALSE|BOOLEAN|0x00001008
#
# The EFI_REST_EX_HTTP_CONFIG_DATA.SendReceiveTimeout value that RedfishDiscoverDxe driver
# set to EFI_REST_EX_PROTOCOL.
#
gEfiRedfishPkgTokenSpaceGuid.PcdRedfishSendReceiveTimeout|5000|UINT32|0x00001008
gEfiRedfishPkgTokenSpaceGuid.PcdRedfishSendReceiveTimeout|5000|UINT32|0x00001009

0 comments on commit 70b174e

Please sign in to comment.