From 83efa306d8460f901459b936c341781633c7b507 Mon Sep 17 00:00:00 2001 From: Vitaly Marin Date: Sun, 28 Aug 2016 15:52:35 -0500 Subject: 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 Tested-by: FSP CI Jenkins Reviewed-by: Vitaly Marin Reviewed-by: William G. Hoffa Reviewed-by: Daniel M. Crowell --- src/usr/devicefw/userif.C | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'src/usr/devicefw/userif.C') 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 #include +#include #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::instance().performOp( WRITE, i_target, i_buffer, io_buflen, i_accessType, args); - va_end(args); return errl; } -- cgit v1.2.1