1230557Sjimharris/*- 2230557Sjimharris * This file is provided under a dual BSD/GPLv2 license. When using or 3230557Sjimharris * redistributing this file, you may do so under either license. 4230557Sjimharris * 5230557Sjimharris * GPL LICENSE SUMMARY 6230557Sjimharris * 7230557Sjimharris * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 8230557Sjimharris * 9230557Sjimharris * This program is free software; you can redistribute it and/or modify 10230557Sjimharris * it under the terms of version 2 of the GNU General Public License as 11230557Sjimharris * published by the Free Software Foundation. 12230557Sjimharris * 13230557Sjimharris * This program is distributed in the hope that it will be useful, but 14230557Sjimharris * WITHOUT ANY WARRANTY; without even the implied warranty of 15230557Sjimharris * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16230557Sjimharris * General Public License for more details. 17230557Sjimharris * 18230557Sjimharris * You should have received a copy of the GNU General Public License 19230557Sjimharris * along with this program; if not, write to the Free Software 20230557Sjimharris * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21230557Sjimharris * The full GNU General Public License is included in this distribution 22230557Sjimharris * in the file called LICENSE.GPL. 23230557Sjimharris * 24230557Sjimharris * BSD LICENSE 25230557Sjimharris * 26230557Sjimharris * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 27230557Sjimharris * All rights reserved. 28230557Sjimharris * 29230557Sjimharris * Redistribution and use in source and binary forms, with or without 30230557Sjimharris * modification, are permitted provided that the following conditions 31230557Sjimharris * are met: 32230557Sjimharris * 33230557Sjimharris * * Redistributions of source code must retain the above copyright 34230557Sjimharris * notice, this list of conditions and the following disclaimer. 35230557Sjimharris * * Redistributions in binary form must reproduce the above copyright 36230557Sjimharris * notice, this list of conditions and the following disclaimer in 37230557Sjimharris * the documentation and/or other materials provided with the 38230557Sjimharris * distribution. 39230557Sjimharris * 40230557Sjimharris * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 41230557Sjimharris * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 42230557Sjimharris * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 43230557Sjimharris * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 44230557Sjimharris * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 45230557Sjimharris * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 46230557Sjimharris * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 47230557Sjimharris * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 48230557Sjimharris * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 49230557Sjimharris * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 50230557Sjimharris * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 51230557Sjimharris * 52230557Sjimharris * $FreeBSD$ 53230557Sjimharris */ 54230557Sjimharris#ifndef _SCIC_REMOTE_DEVICE_H_ 55230557Sjimharris#define _SCIC_REMOTE_DEVICE_H_ 56230557Sjimharris 57230557Sjimharris/** 58230557Sjimharris * @file 59230557Sjimharris * 60230557Sjimharris * @brief This file contains all of the interface methods that can be called 61230557Sjimharris * by an SCIC user on the device object. 62230557Sjimharris */ 63230557Sjimharris 64230557Sjimharris#ifdef __cplusplus 65230557Sjimharrisextern "C" { 66230557Sjimharris#endif // __cplusplus 67230557Sjimharris 68230557Sjimharris#include <dev/isci/scil/sci_types.h> 69230557Sjimharris#include <dev/isci/scil/sci_status.h> 70230557Sjimharris#include <dev/isci/scil/intel_sas.h> 71230557Sjimharris 72230557Sjimharris 73230557Sjimharris/** 74230557Sjimharris * @brief 75230557Sjimharris */ 76230557Sjimharristypedef enum SCIC_REMOTE_DEVICE_NOT_READY_REASON_CODE 77230557Sjimharris{ 78230557Sjimharris SCIC_REMOTE_DEVICE_NOT_READY_START_REQUESTED, 79230557Sjimharris SCIC_REMOTE_DEVICE_NOT_READY_STOP_REQUESTED, 80230557Sjimharris SCIC_REMOTE_DEVICE_NOT_READY_SATA_REQUEST_STARTED, 81230557Sjimharris SCIC_REMOTE_DEVICE_NOT_READY_SATA_SDB_ERROR_FIS_RECEIVED, 82230557Sjimharris SCIC_REMOTE_DEVICE_NOT_READY_SMP_REQUEST_STARTED, 83230557Sjimharris 84230557Sjimharris SCIC_REMOTE_DEVICE_NOT_READY_REASON_CODE_MAX 85230557Sjimharris 86230557Sjimharris} SCIC_REMOTE_DEVICE_NOT_READY_REASON_CODE_T; 87230557Sjimharris 88230557Sjimharris/** 89230557Sjimharris * @brief This method simply returns the maximum memory space needed to 90230557Sjimharris * store a remote device object. 91230557Sjimharris * 92230557Sjimharris * @return a positive integer value indicating the size (in bytes) of the 93230557Sjimharris * remote device object. 94230557Sjimharris */ 95230557SjimharrisU32 scic_remote_device_get_object_size( 96230557Sjimharris void 97230557Sjimharris); 98230557Sjimharris 99230557Sjimharris/** 100230557Sjimharris * @brief This method will perform the construction common to all 101230557Sjimharris * remote device objects. 102230557Sjimharris * 103230557Sjimharris * @note It isn't necessary to call scic_remote_device_destruct() for 104230557Sjimharris * device objects that have only called this method for construction. 105230557Sjimharris * Once subsequent construction methods have been invoked (e.g. 106230557Sjimharris * scic_remote_device_da_construct()), then destruction should occur. 107230557Sjimharris * @note 108230557Sjimharris * 109230557Sjimharris * @param[in] port This parameter specifies the SAS/SATA Port handle 110230557Sjimharris * corresponding to the port through which this device 111230557Sjimharris * is to be accessed. 112230557Sjimharris * @param[in] remote_device_memory This parameter specifies the memory 113230557Sjimharris * location to be used by the SCIC implementation to store the 114230557Sjimharris * SCIC REMOTE DEVICE. 115230557Sjimharris * @param[out] new_remote_device_handle An opaque remote device handle to 116230557Sjimharris * be used by the SCIC user for all subsequent remote device 117230557Sjimharris * operations. 118230557Sjimharris * 119230557Sjimharris * @return none 120230557Sjimharris */ 121230557Sjimharrisvoid scic_remote_device_construct( 122230557Sjimharris SCI_PORT_HANDLE_T port, 123230557Sjimharris void * remote_device_memory, 124230557Sjimharris SCI_REMOTE_DEVICE_HANDLE_T * new_remote_device_handle 125230557Sjimharris); 126230557Sjimharris 127230557Sjimharris/** 128230557Sjimharris * @brief This method will construct a SCIC_REMOTE_DEVICE object for a 129230557Sjimharris * direct attached (da) device. The information (e.g. IAF, Signature 130230557Sjimharris * FIS, etc.) necessary to build the device is known to the SCI Core 131230557Sjimharris * since it is contained in the scic_phy object. 132230557Sjimharris * 133230557Sjimharris * @pre The user must have previously called scic_remote_device_construct() 134230557Sjimharris * 135230557Sjimharris * @note Remote device objects are a limited resource. As such, they 136230557Sjimharris * must be protected. Thus calls to construct and destruct are 137230557Sjimharris * mutually exclusive and non-reentrant. 138230557Sjimharris * 139230557Sjimharris * @param[in] remote_device This parameter specifies the remote device to be 140230557Sjimharris * destructed. 141230557Sjimharris * 142230557Sjimharris * @return Indicate if the remote device was successfully constructed. 143230557Sjimharris * @retval SCI_SUCCESS Returned if the device was successfully constructed. 144230557Sjimharris * @retval SCI_FAILURE_DEVICE_EXISTS Returned if the device has already 145230557Sjimharris * been constructed. If it's an additional phy for the target, then 146230557Sjimharris * call scic_remote_device_da_add_phy(). 147230557Sjimharris * @retval SCI_FAILURE_UNSUPPORTED_PROTOCOL Returned if the supplied 148230557Sjimharris * parameters necessitate creation of a remote device for which 149230557Sjimharris * the protocol is not supported by the underlying controller 150230557Sjimharris * hardware. 151230557Sjimharris * @retval SCI_FAILURE_INSUFFICIENT_RESOURCES This value is returned if 152230557Sjimharris * the core controller associated with the supplied parameters 153230557Sjimharris * is unable to support additional remote devices. 154230557Sjimharris */ 155230557SjimharrisSCI_STATUS scic_remote_device_da_construct( 156230557Sjimharris SCI_REMOTE_DEVICE_HANDLE_T remote_device 157230557Sjimharris); 158230557Sjimharris 159230557Sjimharris/** 160230557Sjimharris * @brief This method will construct an SCIC_REMOTE_DEVICE object for an 161230557Sjimharris * expander attached (ea) device from an SMP Discover Response. 162230557Sjimharris * 163230557Sjimharris * @pre The user must have previously called scic_remote_device_construct() 164230557Sjimharris * 165230557Sjimharris * @note Remote device objects are a limited resource. As such, they 166230557Sjimharris * must be protected. Thus calls to construct and destruct are 167230557Sjimharris * mutually exclusive and non-reentrant. 168230557Sjimharris * 169230557Sjimharris * @param[in] remote_device This parameter specifies the remote device to be 170230557Sjimharris * destructed. 171230557Sjimharris * @param[in] discover_response This parameter specifies the SMP 172230557Sjimharris * Discovery Response to be used in device creation. 173230557Sjimharris * 174230557Sjimharris * @return Indicate if the remote device was successfully constructed. 175230557Sjimharris * @retval SCI_SUCCESS Returned if the device was successfully constructed. 176230557Sjimharris * @retval SCI_FAILURE_DEVICE_EXISTS Returned if the device has already 177230557Sjimharris * been constructed. If it's an additional phy for the target, then 178230557Sjimharris * call scic_ea_remote_device_add_phy(). 179230557Sjimharris * @retval SCI_FAILURE_UNSUPPORTED_PROTOCOL Returned if the supplied 180230557Sjimharris * parameters necessitate creation of a remote device for which 181230557Sjimharris * the protocol is not supported by the underlying controller 182230557Sjimharris * hardware. 183230557Sjimharris * @retval SCI_FAILURE_INSUFFICIENT_RESOURCES This value is returned if 184230557Sjimharris * the core controller associated with the supplied parameters 185230557Sjimharris * is unable to support additional remote devices. 186230557Sjimharris */ 187230557SjimharrisSCI_STATUS scic_remote_device_ea_construct( 188230557Sjimharris SCI_REMOTE_DEVICE_HANDLE_T remote_device, 189230557Sjimharris SMP_RESPONSE_DISCOVER_T * discover_response 190230557Sjimharris); 191230557Sjimharris 192230557Sjimharris/** 193230557Sjimharris * @brief This method is utilized to free up a core's remote device object. 194230557Sjimharris * 195230557Sjimharris * @note Remote device objects are a limited resource. As such, they 196230557Sjimharris * must be protected. Thus calls to construct and destruct are 197230557Sjimharris * mutually exclusive and non-reentrant. 198230557Sjimharris * 199230557Sjimharris * @param[in] remote_device This parameter specifies the remote device to be 200230557Sjimharris * destructed. 201230557Sjimharris * 202230557Sjimharris * @return The return value shall indicate if the device was successfully 203230557Sjimharris * destructed or if some failure occurred. 204230557Sjimharris * @retval SCI_STATUS This value is returned if the device is successfully 205230557Sjimharris * destructed. 206230557Sjimharris * @retval SCI_FAILURE_INVALID_REMOTE_DEVICE This value is returned if the 207230557Sjimharris * supplied device isn't valid (e.g. it's already been destoryed, 208230557Sjimharris * the handle isn't valid, etc.). 209230557Sjimharris */ 210230557SjimharrisSCI_STATUS scic_remote_device_destruct( 211230557Sjimharris SCI_REMOTE_DEVICE_HANDLE_T remote_device 212230557Sjimharris); 213230557Sjimharris 214230557Sjimharris#if !defined(DISABLE_WIDE_PORTED_TARGETS) 215230557Sjimharris/** 216230557Sjimharris * @brief This method will attempt to set port width for a remote device. 217230557Sjimharris * 218230557Sjimharris * @param[in] remote_device This parameter specifies the remote device 219230557Sjimharris * object for which to set new port width. 220230557Sjimharris * @param[in] new_port_width The new port width to update. 221230557Sjimharris * 222230557Sjimharris * @return Indicate if the device port width was successfully updated. 223230557Sjimharris * @retval SCI_SUCCESS This value is returned when port width update was successful. 224230557Sjimharris * @retval SCI_FAILURE The port width update failed. 225230557Sjimharris */ 226230557SjimharrisSCI_STATUS scic_remote_device_set_port_width( 227230557Sjimharris SCI_REMOTE_DEVICE_HANDLE_T remote_device, 228230557Sjimharris U8 new_port_width 229230557Sjimharris); 230230557Sjimharris 231230557Sjimharris/** 232230557Sjimharris * @brief This method retrieve the SCIC's record of a remote device's port width. 233230557Sjimharris * 234230557Sjimharris * @param[in] remote_device This parameter specifies the remote device 235230557Sjimharris * object for which to retrieve the port width value. 236230557Sjimharris * 237230557Sjimharris * @return The SCIC's record of a remote device's port width 238230557Sjimharris */ 239230557SjimharrisU8 scic_remote_device_get_port_width( 240230557Sjimharris SCI_REMOTE_DEVICE_HANDLE_T remote_device 241230557Sjimharris); 242230557Sjimharris 243230557Sjimharris#define scic_remote_device_da_add_phy(device, phy) SCI_FAILURE 244230557Sjimharris#define scic_remote_device_ea_add_phy(device, response) SCI_FAILURE 245230557Sjimharris#define scic_remote_device_remove_phy(device) SCI_FAILURE 246230557Sjimharris 247230557Sjimharris#else // !defined(DISABLE_WIDE_PORTED_TARGETS) 248230557Sjimharris 249230557Sjimharris#define scic_remote_device_set_port_width(device, port_width) SCI_FAILURE 250230557Sjimharris#define scic_remote_device_get_port_width(device) (1) 251230557Sjimharris 252230557Sjimharris#define scic_remote_device_da_add_phy(device, phy) SCI_FAILURE 253230557Sjimharris#define scic_remote_device_ea_add_phy(device, response) SCI_FAILURE 254230557Sjimharris#define scic_remote_device_remove_phy(device) SCI_FAILURE 255230557Sjimharris 256230557Sjimharris#endif // !defined(DISABLE_WIDE_PORTED_TARGETS) 257230557Sjimharris 258230557Sjimharris/** 259230557Sjimharris * @brief This method will start the supplied remote device. This method 260230557Sjimharris * enables normal IO requests to flow through to the remote device. 261230557Sjimharris * 262230557Sjimharris * @param[in] remote_device This parameter specifies the device to be 263230557Sjimharris * started. 264230557Sjimharris * @param[in] timeout This parameter specifies the number of milliseconds 265230557Sjimharris * in which the start operation should complete. 266230557Sjimharris * 267230557Sjimharris * @return An indication of whether the device was successfully started. 268230557Sjimharris * @retval SCI_SUCCESS This value is returned if the device was successfully 269230557Sjimharris * started. 270230557Sjimharris * @retval SCI_FAILURE_INVALID_PHY This value is returned if the user attempts 271230557Sjimharris * to start the device when there have been no phys added to it. 272230557Sjimharris */ 273230557SjimharrisSCI_STATUS scic_remote_device_start( 274230557Sjimharris SCI_REMOTE_DEVICE_HANDLE_T remote_device, 275230557Sjimharris U32 timeout 276230557Sjimharris); 277230557Sjimharris 278230557Sjimharris/** 279230557Sjimharris * @brief This method will stop both transmission and reception of link 280230557Sjimharris * activity for the supplied remote device. This method disables 281230557Sjimharris * normal IO requests from flowing through to the remote device. 282230557Sjimharris * 283230557Sjimharris * @param[in] remote_device This parameter specifies the device to be 284230557Sjimharris * stopped. 285230557Sjimharris * @param[in] timeout This parameter specifies the number of milliseconds 286230557Sjimharris * in which the stop operation should complete. 287230557Sjimharris * 288230557Sjimharris * @return An indication of whether the device was successfully stopped. 289230557Sjimharris * @retval SCI_SUCCESS This value is returned if the transmission and reception 290230557Sjimharris * for the device was successfully stopped. 291230557Sjimharris */ 292230557SjimharrisSCI_STATUS scic_remote_device_stop( 293230557Sjimharris SCI_REMOTE_DEVICE_HANDLE_T remote_device, 294230557Sjimharris U32 timeout 295230557Sjimharris); 296230557Sjimharris 297230557Sjimharris/** 298230557Sjimharris * @brief This method will reset the device making it ready for operation. 299230557Sjimharris * This method must be called anytime the device is reset either 300230557Sjimharris * through a SMP phy control or a port hard reset request. 301230557Sjimharris * 302230557Sjimharris * @note This method does not actually cause the device hardware to be reset. 303230557Sjimharris * This method resets the software object so that it will be operational 304230557Sjimharris * after a device hardware reset completes. 305230557Sjimharris * 306230557Sjimharris * @param[in] remote_device This parameter specifies the device to be 307230557Sjimharris * reset. 308230557Sjimharris * 309230557Sjimharris * @return An indication of whether the device reset was accepted. 310230557Sjimharris * @retval SCI_SUCCESS This value is returned if the device reset is started. 311230557Sjimharris */ 312230557SjimharrisSCI_STATUS scic_remote_device_reset( 313230557Sjimharris SCI_REMOTE_DEVICE_HANDLE_T remote_device 314230557Sjimharris); 315230557Sjimharris 316230557Sjimharris/** 317230557Sjimharris * @brief This method informs the device object that the reset operation is 318230557Sjimharris * complete and the device can resume operation again. 319230557Sjimharris * 320230557Sjimharris * @param[in] remote_device This parameter specifies the device which is to 321230557Sjimharris * be informed of the reset complete operation. 322230557Sjimharris * 323230557Sjimharris * @return An indication that the device is resuming operation. 324230557Sjimharris * @retval SCI_SUCCESS the device is resuming operation. 325230557Sjimharris */ 326230557SjimharrisSCI_STATUS scic_remote_device_reset_complete( 327230557Sjimharris SCI_REMOTE_DEVICE_HANDLE_T remote_device 328230557Sjimharris); 329230557Sjimharris 330230557Sjimharris/** 331230557Sjimharris * @brief This method returns the suggested target reset timeout. SAS and 332230557Sjimharris * SATA devices have different timeout values in milliseconds for 333230557Sjimharris * target reset operations. 334230557Sjimharris * 335230557Sjimharris * @param[in] remote_device This parameter specifies the device which is to 336230557Sjimharris * be informed of the reset complete operation. 337230557Sjimharris * 338230557Sjimharris * @return The suggested reset timeout value for the specified target device 339230557Sjimharris * in milliseconds. 340230557Sjimharris */ 341230557SjimharrisU32 scic_remote_device_get_suggested_reset_timeout( 342230557Sjimharris SCI_REMOTE_DEVICE_HANDLE_T remote_device 343230557Sjimharris); 344230557Sjimharris 345230557Sjimharris/** 346230557Sjimharris * @brief This method will set the maximum link speed to be utilized 347230557Sjimharris * when connections are established for the supplied remote device. 348230557Sjimharris * 349230557Sjimharris * @pre The remote device must previously have been stopped for this 350230557Sjimharris * call to succeed. 351230557Sjimharris * 352230557Sjimharris * @param[in] remote_device This parameter specifies the device for which 353230557Sjimharris * to set the maximum connection rate. 354230557Sjimharris * @param[in] connection_rate This parameter specifies the maximum link rate 355230557Sjimharris * to be utilized for all connections to the supplied remote 356230557Sjimharris * device. 357230557Sjimharris * 358230557Sjimharris * @return An indication as to whether the connection rate was successfully 359230557Sjimharris * updated. 360230557Sjimharris * @retval SCI_SUCCESS This value is returned if the connection rate was 361230557Sjimharris * successfully updated. 362230557Sjimharris * @retval SCI_FAILURE_INVALID_STATE This value is returned if the remote 363230557Sjimharris * device is not in a stopped state or some other state that allows 364230557Sjimharris * for a maximum connection rate change. 365230557Sjimharris */ 366230557SjimharrisSCI_STATUS scic_remote_device_set_max_connection_rate( 367230557Sjimharris SCI_REMOTE_DEVICE_HANDLE_T remote_device, 368230557Sjimharris SCI_SAS_LINK_RATE connection_rate 369230557Sjimharris); 370230557Sjimharris 371230557Sjimharris/** 372230557Sjimharris * @brief This method simply returns the link rate at which communications 373230557Sjimharris * to the remote device occur. 374230557Sjimharris * 375230557Sjimharris * @param[in] remote_device This parameter specifies the device for which 376230557Sjimharris * to get the connection rate. 377230557Sjimharris * 378230557Sjimharris * @return Return the link rate at which we transfer for the supplied 379230557Sjimharris * remote device. 380230557Sjimharris */ 381230557SjimharrisSCI_SAS_LINK_RATE scic_remote_device_get_connection_rate( 382230557Sjimharris SCI_REMOTE_DEVICE_HANDLE_T remote_device 383230557Sjimharris); 384230557Sjimharris 385230557Sjimharris/** 386230557Sjimharris * @brief This method will indicate which protocols are supported by this 387230557Sjimharris * remote device. 388230557Sjimharris * 389230557Sjimharris * @param[in] remote_device This parameter specifies the device for which 390230557Sjimharris * to return the protocol. 391230557Sjimharris * @param[out] protocols This parameter specifies the output values, from 392230557Sjimharris * the remote device object, which indicate the protocols 393230557Sjimharris * supported by the supplied remote_device. 394230557Sjimharris * 395230557Sjimharris * @return The type of protocols supported by this device. The values are 396230557Sjimharris * returned as part of a bit mask in order to allow for multi-protocol 397230557Sjimharris * support. 398230557Sjimharris */ 399230557Sjimharrisvoid scic_remote_device_get_protocols( 400230557Sjimharris SCI_REMOTE_DEVICE_HANDLE_T remote_device, 401230557Sjimharris SMP_DISCOVER_RESPONSE_PROTOCOLS_T * protocols 402230557Sjimharris); 403230557Sjimharris 404230557Sjimharris/** 405230557Sjimharris * @brief This method will indicate the SAS address for the remote device. 406230557Sjimharris * 407230557Sjimharris * @param[in] remote_device This parameter specifies the device for which 408230557Sjimharris * to return the SAS address. 409230557Sjimharris * @param[out] sas_address This parameter specifies a pointer to a SAS 410230557Sjimharris * address structure into which the core will copy the SAS 411230557Sjimharris * address for the remote device. 412230557Sjimharris * 413230557Sjimharris * @return none 414230557Sjimharris */ 415230557Sjimharrisvoid scic_remote_device_get_sas_address( 416230557Sjimharris SCI_REMOTE_DEVICE_HANDLE_T remote_device, 417230557Sjimharris SCI_SAS_ADDRESS_T * sas_address 418230557Sjimharris); 419230557Sjimharris 420230557Sjimharris#if !defined(DISABLE_ATAPI) 421230557Sjimharris/** 422230557Sjimharris * This method first decide whether a device is a stp target, then 423230557Sjimharris * decode the signature fis of a DA STP device to tell whether it 424230557Sjimharris * is a standard end disk or an ATAPI device. 425230557Sjimharris * 426230557Sjimharris * @param[in] this_device The device whose type is to be decided. 427230557Sjimharris * 428230557Sjimharris * @return BOOL Indicate a device is ATAPI device or not. 429230557Sjimharris */ 430230557SjimharrisBOOL scic_remote_device_is_atapi( 431230557Sjimharris SCI_REMOTE_DEVICE_HANDLE_T device_handle 432230557Sjimharris); 433230557Sjimharris#else // !defined(DISABLE_ATAPI) 434230557Sjimharris#define scic_remote_device_is_atapi(device_handle) FALSE 435230557Sjimharris#endif // !defined(DISABLE_ATAPI) 436230557Sjimharris 437230557Sjimharris#ifdef __cplusplus 438230557Sjimharris} 439230557Sjimharris#endif // __cplusplus 440230557Sjimharris 441230557Sjimharris#endif // _SCIC_REMOTE_DEVICE_H_ 442230557Sjimharris 443