|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
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 // Shared client/server definitions |
|
15 // |
|
16 // WARNING: This file contains some APIs which are internal and are subject |
|
17 // to change without notice. Such APIs should therefore not be used |
|
18 // outside the Kernel and Hardware Services package. |
|
19 // |
|
20 |
|
21 /** |
|
22 @file |
|
23 @internalTechnology |
|
24 */ |
|
25 |
|
26 #ifndef __HOSTUSBMSSHARED_H__ |
|
27 #define __HOSTUSBMSSHARED_H__ |
|
28 |
|
29 const TUint32 KMaxUsbSerialNumLength=256; |
|
30 |
|
31 /** |
|
32 This class represents the device configuration. |
|
33 */ |
|
34 class THostMassStorageConfig |
|
35 { |
|
36 public: |
|
37 /** Device token */ |
|
38 TUint32 iInterfaceToken; |
|
39 /** USB Vendor ID */ |
|
40 TUint16 iVendorId; |
|
41 /** USB Product ID */ |
|
42 TUint16 iProductId; |
|
43 /** USB Device Release Number in BCD */ |
|
44 TUint16 iBcdDevice; |
|
45 /** USB Number of possible configurations supported by the device */ |
|
46 TUint8 iConfigurationNumber; |
|
47 /** USB Interface number */ |
|
48 TUint8 iInterfaceNumber; |
|
49 /** Device Serial Number */ |
|
50 TBuf8<KMaxUsbSerialNumLength> iSerialNumber; |
|
51 /** Protocol to be used by the MSC */ |
|
52 TUint8 iProtocolId; |
|
53 /** Transport to be used by the MSC */ |
|
54 TUint8 iTransportId; |
|
55 /** Time internval to check media status and finalisation */ |
|
56 TUint8 iStatusPollingInterval; |
|
57 /** Device's capabilitiy for RemoteWakeup */ |
|
58 TUint8 iRemoteWakeup; |
|
59 /** OTG capability of the device */ |
|
60 TUint8 iIsOtgClient; // NOT USED |
|
61 /** Time interval to delay suspending the interface after finalisation */ |
|
62 TUint8 iOtgSuspendTime; // NOT USED |
|
63 |
|
64 private: |
|
65 TUint32 iSpare1; |
|
66 TUint32 iSpare2; |
|
67 TUint32 iSpare3; |
|
68 TUint32 iSpare4; |
|
69 }; |
|
70 |
|
71 |
|
72 struct TCapsInfo |
|
73 { |
|
74 /** Size of Media in Blocks */ |
|
75 TUint32 iNumberOfBlocks; |
|
76 /** Block Length */ |
|
77 TUint32 iBlockLength; |
|
78 /** Media write protect */ |
|
79 TBool iWriteProtect; |
|
80 }; |
|
81 |
|
82 |
|
83 |
|
84 #endif //__HOSTUSBMSSHARED_H__ |