Skip to content

Commit

Permalink
PRD: moved prdfCenMbaDataBundle.H to common code
Browse files Browse the repository at this point in the history
In preparation of additional changes.

Change-Id: I02ea8a40e602c974fc986deade7ca94ae5110d15
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56262
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Benjamin J. Weisenbeck <bweisenb@us.ibm.com>
Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com>
Reviewed-by: Brian J. Stegmiller <bjs@us.ibm.com>
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56410
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
  • Loading branch information
zane131 committed Mar 29, 2018
1 parent 0bd003a commit 42e4c42
Showing 1 changed file with 21 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/diag/prdf/plat/mem/prdfCenMbaDataBundle.H $ */
/* $Source: src/usr/diag/prdf/common/plat/mem/prdfCenMbaDataBundle.H $ */
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2017 */
/* Contributors Listed Below - COPYRIGHT 2017,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand All @@ -30,9 +30,14 @@
#include <prdfExtensibleChip.H>

// Platform includes
#include <prdfMemTdCtlr.H>
#include <prdfPlatServices.H>

#ifdef __HOSTBOOT_MODULE

#include <prdfMemTdCtlr.H>

#endif

namespace PRDF
{

Expand All @@ -43,22 +48,26 @@ class MbaDataBundle : public DataBundle

/**
* @brief Constructor.
* @param i_mbaChip The MBA chip.
* @param i_chip The MBA chip.
*/
explicit MbaDataBundle( ExtensibleChip * i_mbaChip ) :
iv_chip(i_mbaChip)
explicit MbaDataBundle( ExtensibleChip * i_chip ) :
iv_chip(i_chip)
{}

/** @brief Destructor. */
~MbaDataBundle()
{
#ifdef __HOSTBOOT_MODULE
delete iv_tdCtlr; iv_tdCtlr = nullptr;
#endif
}

// Don't allow copy or assignment.
MbaDataBundle( const MbaDataBundle & ) = delete;
const MbaDataBundle & operator=( const MbaDataBundle & ) = delete;

#ifdef __HOSTBOOT_MODULE

/** @return The Targeted Diagnostics controller. */
MemTdCtlr<TARGETING::TYPE_MBA> * getTdCtlr()
{
Expand All @@ -70,13 +79,19 @@ class MbaDataBundle : public DataBundle
return iv_tdCtlr;
}

#endif

private: // instance variables

/** The MBA chip associated with this data bundle. */
ExtensibleChip * const iv_chip;

#ifdef __HOSTBOOT_MODULE

/** The Targeted Diagnostics controller. */
MemTdCtlr<TARGETING::TYPE_MBA> * iv_tdCtlr = nullptr;

#endif
};

/**
Expand Down

0 comments on commit 42e4c42

Please sign in to comment.