userlibandfileserver/fileserver/shostmassstorage/server/protocol/tscsiprimarycmds.cpp
changeset 124 5802e2ce68ed
parent 33 0173bcd7697c
child 297 b2826f67641f
equal deleted inserted replaced
123:fc55edbf3919 124:5802e2ce68ed
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    82 
    82 
    83 // **** INQUIRY ****
    83 // **** INQUIRY ****
    84 void TScsiClientInquiryResp::DecodeInquiry(const TDesC8& aPtr)
    84 void TScsiClientInquiryResp::DecodeInquiry(const TDesC8& aPtr)
    85     {
    85     {
    86 	__MSFNSLOG
    86 	__MSFNSLOG
    87     __SCSIPRINT(_L("--> SCSI INQUIRY"));
       
    88     iPeripheralInfo.iRemovable = (aPtr[1] & 0x80) ? ETrue : EFalse;
    87     iPeripheralInfo.iRemovable = (aPtr[1] & 0x80) ? ETrue : EFalse;
    89 
    88 
    90     iPeripheralInfo.iPeripheralQualifier = aPtr[0] >> 5;
    89     iPeripheralInfo.iPeripheralQualifier = aPtr[0] >> 5;
    91     iPeripheralInfo.iPeripheralDeviceType = aPtr[0] & 0x1F;
    90     iPeripheralInfo.iPeripheralDeviceType = aPtr[0] & 0x1F;
    92     iPeripheralInfo.iVersion = aPtr[2];
    91     iPeripheralInfo.iVersion = aPtr[2];