summaryrefslogtreecommitdiffstats
path: root/src/include/usr/hwpf
diff options
context:
space:
mode:
authorPrachi Gupta <pragupta@us.ibm.com>2015-10-14 13:23:26 -0500
committerPatrick Williams <iawillia@us.ibm.com>2015-12-11 15:30:26 -0600
commita4ccd3d722669446c136632b6b501c0748ca3be3 (patch)
tree8721885a550276781b44cf52f896d468995293bd /src/include/usr/hwpf
parent3187da27c464de6422ecb1bc12a085fc5b31f610 (diff)
downloadblackbird-hostboot-a4ccd3d722669446c136632b6b501c0748ca3be3.tar.gz
blackbird-hostboot-a4ccd3d722669446c136632b6b501c0748ca3be3.zip
P9 Isteps: Created directory structure for istep 6/7 wrappers
Change-Id: I8ac216444270b1ea5a2fd550f4e1ea8861de7c4d RTC:137652 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21458 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/hwpf')
-rw-r--r--src/include/usr/hwpf/hwp/hwpisteperror.H165
-rw-r--r--src/include/usr/hwpf/hwp/hwpistepud.H82
2 files changed, 0 insertions, 247 deletions
diff --git a/src/include/usr/hwpf/hwp/hwpisteperror.H b/src/include/usr/hwpf/hwp/hwpisteperror.H
deleted file mode 100644
index cb06fe878..000000000
--- a/src/include/usr/hwpf/hwp/hwpisteperror.H
+++ /dev/null
@@ -1,165 +0,0 @@
-/* IBM_PROLOG_BEGIN_TAG */
-/* This is an automatically generated prolog. */
-/* */
-/* $Source: src/include/usr/hwpf/hwp/hwpisteperror.H $ */
-/* */
-/* OpenPOWER HostBoot Project */
-/* */
-/* Contributors Listed Below - COPYRIGHT 2012,2015 */
-/* [+] 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 */
-#ifndef __ISTEPERROR_H
-#define __ISTEPERROR_H
-/**
- * @file isteperror.H
- *
- * Defines the following classes:
- *
- * IStepError: Handles creation of a top level error to incidate that a
- * particular ISTEP has failed
- */
-
-#include <errl/errlentry.H>
-#include <hwpf/istepreasoncodes.H>
-
-
-namespace ISTEP_ERROR
-{
- /**
- * @class IStepError
- *
- * Contains a top-level IStep failed error log.
- *
- * Isteps can perform operations on multiple components regardless of errors
- * in order to initialize as much hardware as possible. Each IStep creates
- * an IstepError object and for each sub-error, the addErrorDetails()
- * function is called before the caller commits the sub-error. At the end
- * of an IStep, the getErrorHandle() function is called to return the
- * top-level istep error (if any) to the IStep Dispatcher.
- *
- * The top-level IStep error and all sub-errors have the same PLID (matching
- * the EID of the first sub-error) so that the IStep error is linked to all
- * errors that caused the IStep failure.
- */
- class IStepError
- {
- public:
- /**
- * @brief
- */
- IStepError()
- : iv_eHandle(NULL), iv_errorCount(0)
- {
- mutex_init( &iv_mutex );
- };
-
- /**
- * @brief Destructor
- *
- * Will free internal storage if getErrorHandle is not called
- */
- ~IStepError()
- {
- mutex_destroy( &iv_mutex );
-
- if( iv_eHandle )
- {
- delete iv_eHandle;
- }
- };
-
- /**
- * @brief Adds selected error details from the passed in
- * error to the top level istep error log object
- *
- * The first call will initialize the internal object
- * pointer allocating a new errl object as needed.
- * The iStep and subStep is retrieved from the
- * istepdispatcher and added to the log.
- * Subsequent calls to this function will result in a new
- * user data section being added to the top level error
- * log with additional error data from the error handle
- * passed in.
- *
- * NOTE: This function is thread safe.
- *
- * @param i_err - error handle passed in, the internal code
- * will parse specific details from the log
- * passed in to include in the top level elog.
- */
- void addErrorDetails( errlHndl_t i_err );
-
- /**
- * @brief Return an errlHndl_t which points to the internal error
- * log object.
- *
- * Note: Caller must delete the errlHndl_t after use.
- * This function is not thread safe
- *
- * @return iv_eHandle - error handle of top level ISTEP error to
- * be returned to the ISTEP dispatcher.
- *
- */
- errlHndl_t getErrorHandle();
-
- /**
- * @brief Utility function to determine if the internal error
- * handle is null.
- *
- * @return boolean
- * true indicates errl handle is currently NULL;
- * false indicates error object has been
- * allocated;
- *
- * Note: This funciton is not thread safe
- *
- */
- bool isNull() const { return ((iv_eHandle==NULL ) ? true : false);};
-
- private:
-
- // disable copy constructor
- IStepError(const IStepError&);
-
- // serialize access to the internal data area
- mutex_t iv_mutex;
-
- // pointer to the top level ISTEP error log, this log will be
- // passed back to the istep dispatcher when a hardware proceudre
- // fails.
- errlHndl_t iv_eHandle;
-
- // count placed in user data 3 of the error log to indicate how
- // many errors were captured in this top level elog
- uint32_t iv_errorCount;
-
- };
-
- inline errlHndl_t IStepError::getErrorHandle()
- {
- errlHndl_t l_err = iv_eHandle;
-
- // storage will be freed by destructor if the pointer is non-null
- iv_eHandle = NULL;
-
- return l_err;
- };
-
-
-};
-
-#endif
diff --git a/src/include/usr/hwpf/hwp/hwpistepud.H b/src/include/usr/hwpf/hwp/hwpistepud.H
deleted file mode 100644
index ad96c7e1f..000000000
--- a/src/include/usr/hwpf/hwp/hwpistepud.H
+++ /dev/null
@@ -1,82 +0,0 @@
-/* IBM_PROLOG_BEGIN_TAG */
-/* This is an automatically generated prolog. */
-/* */
-/* $Source: src/include/usr/hwpf/hwp/hwpistepud.H $ */
-/* */
-/* OpenPOWER HostBoot Project */
-/* */
-/* COPYRIGHT International Business Machines Corp. 2012,2014 */
-/* */
-/* 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 */
-#ifndef INITSVC_UDSTEP_H
-#define INITSVC_UDSTEP_H
-
-/**
- * @file initsvcudistep.H
- *
- * Defines the HwpUserDetailsIstep class that adds IStep FFDC to an
- * error log as user detail data
- */
-
-#include <errl/errluserdetails.H>
-
-namespace ISTEP_ERROR
-{
-
- /**
- * @struct HwpUserDetailsIstepErrorData
- *
- * Defines the user detail data
- */
- struct HwpUserDetailsIstepErrorData
- {
- uint32_t eid;
- uint32_t reasoncode;
- };
-
- /**
- * @class HwpUserDetailsIstep
- *
- * Adds IStep FFDC to an error log as user detail data
- */
- class HwpUserDetailsIstep : public ERRORLOG::ErrlUserDetails
- {
- public:
- /**
- * @brief Constructor
- *
- * Captures the supplied IStep FFDC data internally
- *
- * @param i_err error log returned by hardware procdure
- *
- */
- HwpUserDetailsIstep( errlHndl_t i_err);
-
- HwpUserDetailsIstep( );
-
- /**
- * @brief Destructor
- */
- virtual ~HwpUserDetailsIstep();
-
- private:
- // Disabled
- HwpUserDetailsIstep(const HwpUserDetailsIstep &);
- HwpUserDetailsIstep & operator=(const HwpUserDetailsIstep &);
- };
-}
-
-#endif
-
OpenPOWER on IntegriCloud