summaryrefslogtreecommitdiffstats
path: root/src/include/usr/devicefw
diff options
context:
space:
mode:
authorMissy Connell <missyc@us.ibm.com>2012-07-16 14:46:47 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-08-27 17:36:28 -0500
commit428319443515f3eca49f4537422103f9534b8dd3 (patch)
treebd3f8fa557088eab78af0eb8e3af4b458fd5730d /src/include/usr/devicefw
parent0bbf9079c5659d43a79daf54ccf3b1aad7665193 (diff)
downloadtalos-hostboot-428319443515f3eca49f4537422103f9534b8dd3.tar.gz
talos-hostboot-428319443515f3eca49f4537422103f9534b8dd3.zip
Scan Functionality
Supports Scan read/write Change-Id: I3ccecb772cff3de80062a35219fbfd9fdefd3d82 RTC:34014 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1470 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/devicefw')
-rw-r--r--src/include/usr/devicefw/userif.H61
1 files changed, 38 insertions, 23 deletions
diff --git a/src/include/usr/devicefw/userif.H b/src/include/usr/devicefw/userif.H
index 5fa17dae7..9f4463661 100644
--- a/src/include/usr/devicefw/userif.H
+++ b/src/include/usr/devicefw/userif.H
@@ -1,26 +1,25 @@
-/* IBM_PROLOG_BEGIN_TAG
- * This is an automatically generated prolog.
- *
- * $Source: src/include/usr/devicefw/userif.H $
- *
- * IBM CONFIDENTIAL
- *
- * COPYRIGHT International Business Machines Corp. 2011-2012
- *
- * p1
- *
- * Object Code Only (OCO) source materials
- * Licensed Internal Code Source Materials
- * IBM HostBoot Licensed Internal Code
- *
- * The source code for this program is not published or other-
- * wise divested of its trade secrets, irrespective of what has
- * been deposited with the U.S. Copyright Office.
- *
- * Origin: 30
- *
- * IBM_PROLOG_END_TAG
- */
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/usr/devicefw/userif.H $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2011,2012 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
/** @file userif.H
* @brief Provides the user application interfaces for performing device
* access.
@@ -50,6 +49,7 @@ namespace DeviceFW
FSI,
SPD,
MVPD,
+ SCAN,
LAST_ACCESS_TYPE,
};
@@ -109,6 +109,21 @@ namespace DeviceFW
static_cast<uint64_t>(( i_keyword ))
/**
+ * Construct the device addressing parameters for the SCAN device ops.
+ * @param[in] i_ring - The ring address to scan
+ * @param[in] i_ringlen - The length of the ring to scan in bits
+ * NOTE: This value is the scanring length must
+ * match the scandef file value.
+ * @param[in] i_flag - Specific requests on the scan such as
+ * check the header, or set pulse option.
+ * Flag options are located in: src/include/usr/scan/scanif.H
+ */
+ #define DEVICE_SCAN_ADDRESS( i_ring, i_ringlen, i_flag )\
+ DeviceFW::SCAN, static_cast<uint64_t>(( i_ring )),\
+ static_cast<uint64_t>(( i_ringlen )),\
+ static_cast<uint64_t>(( i_flag ))
+
+ /**
* @brief Perform a hardware read operation.
*
* @param[in] i_target Device target to operate on.
OpenPOWER on IntegriCloud