userlibandfileserver/fileserver/shostmassstorage/server/protocol/include/tscsiclientreq.inl
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". |
14 // |
14 // |
15 |
15 |
16 /** |
16 /** |
17 @file |
17 @file |
18 @internalTechnology |
18 @internalTechnology |
19 |
19 |
20 Constructor initialised with the SCSI OPERATION CODE for this object. |
20 Constructor initialised with the SCSI OPERATION CODE for this object. |
21 |
21 |
22 @param aOperationCode The SCSI OPERATION CODE of the request |
22 @param aOperationCode The SCSI OPERATION CODE of the request |
23 */ |
23 */ |
24 inline TScsiClientReq::TScsiClientReq(TOperationCode aOperationCode) |
24 inline TScsiClientReq::TScsiClientReq(TOperationCode aOperationCode) |
25 : |
25 : |
26 iOperationCode(aOperationCode), |
26 iOperationCode(aOperationCode), |
27 iNaca(0), |
27 iNaca(0), |
28 iLink(0) |
28 iLink(0) |
29 { |
29 { |
30 __MSFNSLOG |
|
31 } |
30 } |
32 |
31 |
33 inline TUint8 TScsiClientReq::GetControlByte() const |
32 inline TUint8 TScsiClientReq::GetControlByte() const |
34 { |
33 { |
35 __MSFNSLOG |
|
36 TUint8 control = 0; |
34 TUint8 control = 0; |
37 |
35 |
38 if (iLink) |
36 if (iLink) |
39 { |
37 { |
40 control |= 0x01; |
38 control |= 0x01; |
46 return control; |
44 return control; |
47 } |
45 } |
48 |
46 |
49 inline TGroupCode TScsiClientReq::GetGroupCode() const |
47 inline TGroupCode TScsiClientReq::GetGroupCode() const |
50 { |
48 { |
51 __MSFNSLOG |
|
52 return iOperationCode >> 5; |
49 return iOperationCode >> 5; |
53 } |
50 } |
54 |
51 |