os/kernelhwsrv/userlibandfileserver/fileserver/shostmassstorage/server/protocol/include/tscsiclientreq.inl
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 /**
    17  @file
    18  @internalTechnology
    19  
    20  Constructor initialised with the SCSI OPERATION CODE for this object.
    21  
    22  @param aOperationCode The SCSI OPERATION CODE of the request
    23 */
    24 inline TScsiClientReq::TScsiClientReq(TOperationCode aOperationCode)
    25     :
    26     iOperationCode(aOperationCode),
    27     iNaca(0),
    28     iLink(0)
    29     {
    30     __MSFNSLOG
    31     }
    32 
    33 inline TUint8 TScsiClientReq::GetControlByte() const
    34     {
    35     __MSFNSLOG
    36     TUint8 control = 0;
    37 
    38     if (iLink)
    39         {
    40         control |= 0x01;
    41         }
    42     if (iNaca)
    43         {
    44         control |= 0x4;
    45         }
    46     return control;
    47     }
    48 
    49 inline TGroupCode TScsiClientReq::GetGroupCode() const
    50     {
    51     __MSFNSLOG
    52     return iOperationCode >> 5;
    53     }
    54