sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: sl@0: Constructor initialised with the SCSI OPERATION CODE for this object. sl@0: sl@0: @param aOperationCode The SCSI OPERATION CODE of the request sl@0: */ sl@0: inline TScsiClientReq::TScsiClientReq(TOperationCode aOperationCode) sl@0: : sl@0: iOperationCode(aOperationCode), sl@0: iNaca(0), sl@0: iLink(0) sl@0: { sl@0: __MSFNSLOG sl@0: } sl@0: sl@0: inline TUint8 TScsiClientReq::GetControlByte() const sl@0: { sl@0: __MSFNSLOG sl@0: TUint8 control = 0; sl@0: sl@0: if (iLink) sl@0: { sl@0: control |= 0x01; sl@0: } sl@0: if (iNaca) sl@0: { sl@0: control |= 0x4; sl@0: } sl@0: return control; sl@0: } sl@0: sl@0: inline TGroupCode TScsiClientReq::GetGroupCode() const sl@0: { sl@0: __MSFNSLOG sl@0: return iOperationCode >> 5; sl@0: } sl@0: