summaryrefslogtreecommitdiffstats
path: root/src/usr/devicefw/userif.C
diff options
context:
space:
mode:
authorVitaly Marin <mvitaly@us.ibm.com>2016-08-28 15:52:35 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-09-18 13:13:11 -0400
commit83efa306d8460f901459b936c341781633c7b507 (patch)
tree86a6b613687f1cbc8e44947dbb42e41aad9084e9 /src/usr/devicefw/userif.C
parentebeb735ad3227137996822e03cf1108b549b8b69 (diff)
downloadtalos-hostboot-83efa306d8460f901459b936c341781633c7b507.tar.gz
talos-hostboot-83efa306d8460f901459b936c341781633c7b507.zip
Added support for 'Put Ring from Image' command on HB for SBE
Change-Id: I4930633f87bdb61acb19e01f17a8006277f7868d RTC:132654 CMVC-Prereq: 1004971 CMVC-Prereq: 1005024 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28887 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Vitaly Marin <mvitaly@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/devicefw/userif.C')
-rw-r--r--src/usr/devicefw/userif.C18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/usr/devicefw/userif.C b/src/usr/devicefw/userif.C
index 79b7b4cd6..e05a2737b 100644
--- a/src/usr/devicefw/userif.C
+++ b/src/usr/devicefw/userif.C
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2011,2014 */
+/* Contributors Listed Below - COPYRIGHT 2011,2016 */
+/* [+] International Business Machines Corp. */
+/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
@@ -26,9 +28,11 @@
#include <devicefw/userif.H>
#include <util/singleton.H>
+#include <trace/interface.H>
#include "associator.H"
+
namespace DeviceFW
{
errlHndl_t deviceRead(TARGETING::Target* i_target,
@@ -48,9 +52,16 @@ namespace DeviceFW
return errl;
}
+ /*
+ * Function: deviceWrite
+ *
+ * Responsible for routing generic driver requests
+ * to appropriate devices
+ *
+ */
errlHndl_t deviceWrite(TARGETING::Target* i_target,
- void* i_buffer, size_t& io_buflen,
- AccessType i_accessType, ...)
+ void* i_buffer, size_t& io_buflen,
+ AccessType i_accessType, ...)
{
va_list args;
errlHndl_t errl;
@@ -60,7 +71,6 @@ namespace DeviceFW
errl = Singleton<Associator>::instance().performOp(
WRITE, i_target, i_buffer, io_buflen,
i_accessType, args);
-
va_end(args);
return errl;
}
OpenPOWER on IntegriCloud