userlibandfileserver/fileserver/shostmassstorage/server/protocol/tscsiprimarycmds.cpp
equal
deleted
inserted
replaced
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]; |