summaryrefslogtreecommitdiffstats
path: root/src/include/usr/targeting/attrrp.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/targeting/attrrp.H')
-rw-r--r--src/include/usr/targeting/attrrp.H32
1 files changed, 29 insertions, 3 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
*
OpenPOWER on IntegriCloud