From 428319443515f3eca49f4537422103f9534b8dd3 Mon Sep 17 00:00:00 2001 From: Missy Connell Date: Mon, 16 Jul 2012 14:46:47 -0500 Subject: 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 --- src/include/usr/devicefw/userif.H | 61 ++++++++++++++++++++++++--------------- 1 file changed, 38 insertions(+), 23 deletions(-) (limited to 'src/include/usr/devicefw') 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, }; @@ -108,6 +108,21 @@ namespace DeviceFW DeviceFW::MVPD, static_cast(( i_record )),\ static_cast(( 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(( i_ring )),\ + static_cast(( i_ringlen )),\ + static_cast(( i_flag )) + /** * @brief Perform a hardware read operation. * -- cgit v1.2.1