summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2014-01-14 18:58:57 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-02-06 17:40:11 -0600
commit6454fc5ee6f30a98202f1595c458f32b26393f70 (patch)
tree1453ff26f498b46009e44baf5103ec365a2988ed /src/include
parent6155c62ab8eae064a0160bf8c042953637113d66 (diff)
downloadtalos-hostboot-6454fc5ee6f30a98202f1595c458f32b26393f70.tar.gz
talos-hostboot-6454fc5ee6f30a98202f1595c458f32b26393f70.zip
HBRT: Support full targeting in Sapphire.
Change-Id: Ib8119e3c11cfa1171b76f2260871d2de5e99d502 RTC: 87716 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8145 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/targeting/attrrp.H32
-rw-r--r--src/include/usr/targeting/targplatreasoncodes.H3
2 files changed, 31 insertions, 4 deletions
diff --git a/src/include/usr/targeting/attrrp.H b/src/include/usr/targeting/attrrp.H
index af27b6359..abd21ee8f 100644
--- a/src/include/usr/targeting/attrrp.H
+++ b/src/include/usr/targeting/attrrp.H
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2011,2013 */
+/* COPYRIGHT International Business Machines Corp. 2011,2014 */
/* */
/* p1 */
/* */
@@ -105,9 +105,13 @@ class AttrRP
void* translateAddr(
void* i_pAddress,
const Target* i_pUnused)
+#ifndef __HOSTBOOT_RUNTIME
{
return i_pAddress;
}
+#else
+ ;
+#endif
/**
* @brief Translates given address, according to the resource
@@ -129,11 +133,14 @@ class AttrRP
void* translateAddr(
void* i_pAddress,
const TARGETING::NODE_ID i_unused)
+#ifndef __HOSTBOOT_RUNTIME
{
return i_pAddress;
}
+#else
+ ;
+#endif
-#ifndef __HOSTBOOT_RUNTIME
/**
* @brief Initializes and starts the AttrRP daemon.
*
@@ -147,6 +154,21 @@ class AttrRP
* service.
*/
static void init(errlHndl_t& io_taskRetErrl);
+
+#ifndef __HOSTBOOT_RUNTIME
+ /**
+ * @brief Copies all present attribute sections to memory.
+ *
+ * The copy will grow down from the input address.
+ *
+ * @param[in,out] i_addr
+ * Physical address at the top of the desired region to
+ * place. After function will be the address at the bottom of
+ * the region.
+ *
+ * @return Virtual address to the region.
+ */
+ static void* save(uint64_t& io_addr);
#endif
protected:
@@ -211,7 +233,6 @@ class AttrRP
private:
-#ifndef __HOSTBOOT_RUNTIME
/**
* @brief Performs the startup of the daemon instance.
*
@@ -227,6 +248,8 @@ class AttrRP
*/
void startup(errlHndl_t& io_taskRetErrl);
+#ifndef __HOSTBOOT_RUNTIME
+
/**
* @brief Processes daemon messages
*
@@ -264,6 +287,9 @@ class AttrRP
*/
errlHndl_t createVmmSections();
+ /** Internal implementation of save function. */
+ void* _save(uint64_t&);
+
/**
* @brief Starts the attribute provider's message processor
*
diff --git a/src/include/usr/targeting/targplatreasoncodes.H b/src/include/usr/targeting/targplatreasoncodes.H
index 1f3d18dbc..4895bd8db 100644
--- a/src/include/usr/targeting/targplatreasoncodes.H
+++ b/src/include/usr/targeting/targplatreasoncodes.H
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2013 */
+/* COPYRIGHT International Business Machines Corp. 2013,2014 */
/* */
/* p1 */
/* */
@@ -53,6 +53,7 @@ enum PlatTargetingModuleId
{
TARG_MOD_QUERY_MASTER_PROC_CHIP = 0x80,
TARG_MOD_SET_MASTER_NODE = 0x81,
+ TARG_MOD_ATTRRP_RT = 0x82,
};
/**
OpenPOWER on IntegriCloud