summaryrefslogtreecommitdiffstats
path: root/src/include/usr/devicefw
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/devicefw')
-rw-r--r--src/include/usr/devicefw/driverif.H7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/usr/devicefw/driverif.H b/src/include/usr/devicefw/driverif.H
index a3c5b37b6..c7f094d8a 100644
--- a/src/include/usr/devicefw/driverif.H
+++ b/src/include/usr/devicefw/driverif.H
@@ -56,6 +56,13 @@ namespace DeviceFW
WILDCARD = -1,
};
+ /** Construct the device addressing parameters for XSCOM device ops.
+ * @param[in] i_address - XSCom address to operate on.
+ */
+ #define DEVICE_XSCOM_ADDRESS(i_address) \
+ DeviceFW::XSCOM, static_cast<uint64_t>((i_address))
+
+
/** @class InvalidParameterType
* @brief Unused type to cause compiler fails for invalid template types.
*
OpenPOWER on IntegriCloud