297
|
1 |
// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
|
0
|
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
|
297
|
19 |
|
0
|
20 |
Constructor initialised with the SCSI OPERATION CODE for this object.
|
297
|
21 |
|
0
|
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 |
}
|
|
31 |
|
|
32 |
inline TUint8 TScsiClientReq::GetControlByte() const
|
|
33 |
{
|
|
34 |
TUint8 control = 0;
|
|
35 |
|
|
36 |
if (iLink)
|
|
37 |
{
|
|
38 |
control |= 0x01;
|
|
39 |
}
|
|
40 |
if (iNaca)
|
|
41 |
{
|
|
42 |
control |= 0x4;
|
|
43 |
}
|
|
44 |
return control;
|
|
45 |
}
|
|
46 |
|
|
47 |
inline TGroupCode TScsiClientReq::GetGroupCode() const
|
|
48 |
{
|
|
49 |
return iOperationCode >> 5;
|
|
50 |
}
|
|
51 |
|