]> xenbits.xensource.com Git - ovmf.git/commitdiff
MdePkg: Add new PCDs for IPMI SSIF
authorTinh Nguyen <tinhnguyen@os.amperecomputing.com>
Sun, 7 May 2023 09:29:12 +0000 (17:29 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 12 May 2023 04:00:18 +0000 (04:00 +0000)
BZ#: 4434 - Add IPMI SSIF definitions.

This change adds new PCDs for IPMI SSIF.

Specification reference:
https://www.intel.com/content/www/us/en/products/docs/servers/ipmi/ipmi-second-gen-interface-spec-v2-rev1-1.html

Signed-off-by: Tinh Nguyen <tinhnguyen@os.amperecomputing.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Abner Chang <abner.chang@amd.com>
Reviewed-by: Abner Chang <abner.chang@amd.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
MdePkg/MdePkg.dec

index 597f4f7137f9e2bcb964850e87e5343fdeed15ef..b85614992b947dee638bf62f71d98df7594f13ad 100644 (file)
@@ -10,6 +10,7 @@
 # Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>\r
 # Copyright (c) 2021 - 2022, Arm Limited. All rights reserved.<BR>\r
 # Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.<BR>\r
+# Copyright (c) 2023, Ampere Computing LLC. All rights reserved.<BR>\r
 #\r
 # SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
   # @Prompt IPMI KCS Interface I/O Base Address\r
   gEfiMdePkgTokenSpaceGuid.PcdIpmiKcsIoBaseAddress|0xca2|UINT16|0x00000031\r
 \r
+  ## This is SMBus slave address for the SSIF to the BMC.\r
+  #  The recommended value defined by IPMI specification is 0x20 (section 12.12).\r
+  # @Prompt IPMI SSIF SMBus slave address\r
+  gEfiMdePkgTokenSpaceGuid.PcdIpmiSsifSmbusSlaveAddr|0x20|UINT8|0x00000032\r
+\r
+  ## This is the maximum number of IPMI SSIF request retries.\r
+  #  The IPMI specification specified min value is 5 (section 12.17).\r
+  # @Prompt Number of IPMI SSIF request retries.\r
+  gEfiMdePkgTokenSpaceGuid.PcdIpmiSsifRequestRetryCount|0x05|UINT8|0x00000033\r
+\r
+  ## This is the required interval for each IPMI request retry.\r
+  #  The IPMI specification specified a time range of 60ms to 250ms (section 12.17).\r
+  #  The default setting is min.\r
+  # @Prompt Time between IPMI SSIF request retries.\r
+  gEfiMdePkgTokenSpaceGuid.PcdIpmiSsifRequestRetryIntervalMicrosecond|60000|UINT32|0x00000034\r
+\r
+  ## This value is the maximum retries of an IPMI SSIF response\r
+  #  The default value is the same as the Linux Kernel ipmi_ssif driver.\r
+  # @Prompt Number of IPMI SSIF response retries.\r
+  gEfiMdePkgTokenSpaceGuid.PcdIpmiSsifResponseRetryCount|250|UINT8|0x00000035\r
+\r
+  ## This is the required interval for each IPMI response retry.\r
+  #  The IPMI specification specified min value is 60ms (section 12.17).\r
+  # @Prompt Time-out for a response, internal\r
+  gEfiMdePkgTokenSpaceGuid.PcdIpmiSsifResponseRetryIntervalMicrosecond|60000|UINT32|0x00000036\r
+\r
 [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx]\r
   ## This value is used to set the base address of PCI express hierarchy.\r
   # @Prompt PCI Express Base Address.\r