summaryrefslogtreecommitdiffstats
path: root/src/import/chips/centaur/procedures/vpd_accessors/getMBvpdSpareDramData.H
diff options
context:
space:
mode:
authorLuke Mulkey <lwmulkey@us.ibm.com>2017-06-09 13:38:49 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-09-05 23:39:55 -0400
commitf5ab69cd1fb4f4af912e0dea61979db4195fbe01 (patch)
tree2561cf4cc9dc934be4b98d22568b6b5793d4434d /src/import/chips/centaur/procedures/vpd_accessors/getMBvpdSpareDramData.H
parent9caf663dd9b91fbdc8cad8efa0a07c701c59a46b (diff)
downloadtalos-hostboot-f5ab69cd1fb4f4af912e0dea61979db4195fbe01.tar.gz
talos-hostboot-f5ab69cd1fb4f4af912e0dea61979db4195fbe01.zip
Memory buffer vpd accessor functions
Patch set 1 is fapi1 version for comparison Change-Id: I533ad241a5baa4c13b5b6db9207cf7016761370b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41627 Dev-Ready: Steven B. Janssen <janssens@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Brent Wieman <bwieman@us.ibm.com> Reviewed-by: ANDRE A. MARIN <aamarin@us.ibm.com> Reviewed-by: Steven B. Janssen <janssens@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44824 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/centaur/procedures/vpd_accessors/getMBvpdSpareDramData.H')
-rw-r--r--src/import/chips/centaur/procedures/vpd_accessors/getMBvpdSpareDramData.H62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/import/chips/centaur/procedures/vpd_accessors/getMBvpdSpareDramData.H b/src/import/chips/centaur/procedures/vpd_accessors/getMBvpdSpareDramData.H
new file mode 100644
index 000000000..395ac89a7
--- /dev/null
+++ b/src/import/chips/centaur/procedures/vpd_accessors/getMBvpdSpareDramData.H
@@ -0,0 +1,62 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/import/chips/centaur/procedures/vpd_accessors/getMBvpdSpareDramData.H $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2017 */
+/* [+] International Business Machines Corp. */
+/* */
+/* */
+/* Licensed under the Apache License, Version 2.0 (the "License"); */
+/* you may not use this file except in compliance with the License. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
+/// @file getMBvpdSpareDramData.H
+/// @brief queries the MBvpd to determine spare DRAM availability
+///
+/// *HWP HWP Owner: Luke Mulkey <lwmulkey@us.ibm.com>
+/// *HWP HWP Backup: Andre Marin <aamarin@us.ibm.com>
+/// *HWP Team: Memory
+/// *HWP Level: 2
+/// *HWP Consumed by: HB
+
+#ifndef GETMBVPDSPAREDRAMDATA_H_
+#define GETMBVPDSPAREDRAMDATA_H_
+
+#include <fapi2.H>
+#include <dimmConsts.H>
+
+typedef fapi2::ReturnCode (*getMBvpdSpareDramData_FP_t)(
+ const fapi2::Target<fapi2::TARGET_TYPE_MBA>&,
+ uint8_t (&)[MAX_PORTS_PER_MBA][MAX_DIMM_PER_PORT]
+ [MAX_RANKS_PER_DIMM]);
+extern "C"
+{
+
+///
+/// @brief FW Team HWP that handles the ATTR_VPD_DIMM_SPARE attribute
+/// by querying MBvpd to determine spare DRAM availability for C-DIMMs.
+///
+/// @note This HWP should be called through the VPD_DIMM_SPARE attribute.
+/// @param[in] i_mba Reference to MBA Target.
+/// @param[out] o_data Reference to spare DRAM data.
+/// @return ReturnCode
+///
+ fapi2::ReturnCode getMBvpdSpareDramData(
+ const fapi2::Target<fapi2::TARGET_TYPE_MBA>& i_mba,
+ uint8_t (&o_data)[MAX_PORTS_PER_MBA][MAX_DIMM_PER_PORT]
+ [MAX_RANKS_PER_DIMM]);
+}
+
+#endif
OpenPOWER on IntegriCloud