From c4a67582b9dd4bb233c17dd12100c7f18cd1c6f3 Mon Sep 17 00:00:00 2001 From: Matt Ploetz Date: Mon, 29 Sep 2014 11:37:29 -0500 Subject: BMC: HCDB support Called update_hwas_changed_mask on the target passed in, and its children Change-Id: I1d6ae317455b7e7dc48832f54d50150e7c280da5 RTC: 106886 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13652 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK Reviewed-by: A. Patrick Williams III --- src/include/usr/hwas/hwasPlat.H | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) (limited to 'src/include') diff --git a/src/include/usr/hwas/hwasPlat.H b/src/include/usr/hwas/hwasPlat.H index 7a0361c0d..26781a0be 100644 --- a/src/include/usr/hwas/hwasPlat.H +++ b/src/include/usr/hwas/hwasPlat.H @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2013,2014 */ +/* Contributors Listed Below - COPYRIGHT 2013,2014 */ +/* [+] 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. */ @@ -23,6 +25,8 @@ #ifndef __HWAS_PLAT_H #define __HWAS_PLAT_H +#include + /** * @file hwas/hwasPlat.H * @brief hostboot platform specific HWAS functions @@ -31,19 +35,6 @@ namespace HWAS { -/** - * @brief hwasChangeDetection hostboot function - * - * This routine will do 'what is needed' to see if any hardware has - * changed (ie, look at ECID or serial numbers..) - * - * @param none - * - * @return errlHndl_t valid errlHndl_t handle if there was an error - * NULL if no errors; - */ -errlHndl_t hwasChangeDetection(); - /** * @brief hwasPLDDetection hostboot function * @@ -56,6 +47,22 @@ errlHndl_t hwasChangeDetection(); */ bool hwasPLDDetection(); -} +/** + * @brief Wrapper function that updates the bit mask to let consumers + * know that a piece of hardware, and its possible children, have changed. + * + * @param[in] i_target Target of the changed Hardware + */ +#ifndef CONFIG_HOST_HCDB_SUPPORT +inline +#endif +void markTargetChanged(TARGETING::TargetHandle_t i_target) +#ifdef CONFIG_HOST_HCDB_SUPPORT + ; +#else + {}; +#endif + +} // namespace HWAS #endif // __HWAS_PLAT_H -- cgit v1.2.3