diff options
Diffstat (limited to 'src/include/usr/hwpf/hwp')
| -rw-r--r-- | src/include/usr/hwpf/hwp/fapiFfdcHwpData.H | 32 | ||||
| -rw-r--r-- | src/include/usr/hwpf/hwp/fapiTestHwp.H | 17 | ||||
| -rwxr-xr-x | src/include/usr/hwpf/hwp/fapiTestHwpAttr.H | 4 | ||||
| -rw-r--r-- | src/include/usr/hwpf/hwp/fapiTestHwpError.H | 36 | ||||
| -rw-r--r-- | src/include/usr/hwpf/hwp/fapiTestHwpFfdc.H | 39 |
5 files changed, 113 insertions, 15 deletions
diff --git a/src/include/usr/hwpf/hwp/fapiFfdcHwpData.H b/src/include/usr/hwpf/hwp/fapiFfdcHwpData.H new file mode 100644 index 000000000..b7ed10788 --- /dev/null +++ b/src/include/usr/hwpf/hwp/fapiFfdcHwpData.H @@ -0,0 +1,32 @@ +/** + * @file fapiFfdcHwpData.H + * + * @brief Defines all FFDC data that can be returned by FFDC HWPs + */ + +/* + * Change Log ****************************************************************** + * Flag Defect/Feature User Date Description + * ------ -------------- ---------- ----------- ---------------------------- + * mjjones 08/08/2011 Created. + * + */ + +#ifndef FAPIFFDCHWPDATA_H_ +#define FAPIFFDCHWPDATA_H_ + +namespace fapi +{ + +/** + * @brief An FFDC structure contining a single uint64_t of data + */ +struct TestFfdc1 +{ + uint64_t iv_data; +}; + +} + +#endif // FAPIFFDCHWPDATA_H_ + diff --git a/src/include/usr/hwpf/hwp/fapiTestHwp.H b/src/include/usr/hwpf/hwp/fapiTestHwp.H index 4dc5a4dab..81f632361 100644 --- a/src/include/usr/hwpf/hwp/fapiTestHwp.H +++ b/src/include/usr/hwpf/hwp/fapiTestHwp.H @@ -10,6 +10,7 @@ * ------ -------------- ---------- ----------- ---------------------------- * mjjones 04/21/2011 Created. * mjjones 06/28/2011 Updated comment + * mjjones 08/11/2011 Removed Clock HWP * */ @@ -24,21 +25,9 @@ extern "C" { /** - * @brief Finds if a P7 EM0 chiplet clock is on + * @brief A simple HWP. Can easily be modified by HW dev team for test * - * @param[in] i_chip Target chip - * @param[out] o_clocksOn True if clocks are on, else false - * - * @return ReturnCode - */ -fapi::ReturnCode hwpIsP7EM0ChipletClockOn(const fapi::Target & i_chip, - bool & o_clocksOn); - -/** - * @brief Run a sample test function that can be overloaded by the hw dev - * team. - * - * @param[in] i_chip Target chip + * @param[in] i_chip Reference to target chip * * @return ReturnCode */ diff --git a/src/include/usr/hwpf/hwp/fapiTestHwpAttr.H b/src/include/usr/hwpf/hwp/fapiTestHwpAttr.H index d24fe748e..78aca0949 100755 --- a/src/include/usr/hwpf/hwp/fapiTestHwpAttr.H +++ b/src/include/usr/hwpf/hwp/fapiTestHwpAttr.H @@ -24,9 +24,11 @@ extern "C" /** * @brief HWP that exercises attributes * + * @param[in] i_target Reference to target (unused by HWP) + * * @return ReturnCode */ -fapi::ReturnCode hwpTestAttributes(); +fapi::ReturnCode hwpTestAttributes(const fapi::Target & i_target); } // extern "C" diff --git a/src/include/usr/hwpf/hwp/fapiTestHwpError.H b/src/include/usr/hwpf/hwp/fapiTestHwpError.H new file mode 100644 index 000000000..5d7954e35 --- /dev/null +++ b/src/include/usr/hwpf/hwp/fapiTestHwpError.H @@ -0,0 +1,36 @@ +/** + * @file fapiTestHwpError.H + * + * @brief Defines a simple test Hardware Procedure that returns an error + */ + +/* + * Change Log ****************************************************************** + * Flag Defect/Feature User Date Description + * ------ -------------- ---------- ----------- ---------------------------- + * mjjones 08/08/2011 Created. + * + */ + +#ifndef FAPITESTHWPERROR_H_ +#define FAPITESTHWPERROR_H_ + +#include <fapi.H> + +// HWPs are defined as C functions because platforms may wish to package them +// in linux shared libraries which are DL-Opened +extern "C" +{ + +/** + * @brief Simple HWP that returns an error (RC_TEST_ERROR_A) + * + * @param[in] i_target Reference to target (unused by HWP) + * + * @return ReturnCode + */ +fapi::ReturnCode hwpTestError(const fapi::Target & i_target); + +} // extern "C" + +#endif // FAPITESTHWPERROR_H_ diff --git a/src/include/usr/hwpf/hwp/fapiTestHwpFfdc.H b/src/include/usr/hwpf/hwp/fapiTestHwpFfdc.H new file mode 100644 index 000000000..e5eecc637 --- /dev/null +++ b/src/include/usr/hwpf/hwp/fapiTestHwpFfdc.H @@ -0,0 +1,39 @@ +/** + * @file fapiTestHwpFfdc.H + * + * @brief Defines a simple test Hardware Procedure that collects FFDC data + */ + +/* + * Change Log ****************************************************************** + * Flag Defect/Feature User Date Description + * ------ -------------- ---------- ----------- ---------------------------- + * mjjones 08/08/2011 Created. + * + */ + +#ifndef FAPITESTHWPFFDC_H_ +#define FAPITESTHWPFFDC_H_ + +#include <fapi.H> +#include <fapiFfdcHwpData.H> + +// HWPs are defined as C functions because platforms may wish to package them +// in linux shared libraries which are DL-Opened +extern "C" +{ + +/** + * @brief Simple FFDC HWP that collects TestFfdc1 data + * + * @param[in] i_target Reference to target (unused by HWP) + * @param[out] o_ffdc Reference to TestFfdc1 that is filled in with FFDC + * + * @return ReturnCode + */ +fapi::ReturnCode hwpTestFfdc1(const fapi::Target & i_target, + fapi::TestFfdc1 & o_ffdc); + +} // extern "C" + +#endif // FAPITESTHWPFFDC_H_ |

