os/kernelhwsrv/userlibandfileserver/fileserver/shostmassstorage/shared/shared.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200 (2014-06-10)
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// Shared client/server definitions 
sl@0
    15
// 
sl@0
    16
// WARNING: This file contains some APIs which are internal and are subject
sl@0
    17
//          to change without notice. Such APIs should therefore not be used
sl@0
    18
//          outside the Kernel and Hardware Services package.
sl@0
    19
//
sl@0
    20
sl@0
    21
/**
sl@0
    22
 @file
sl@0
    23
 @internalTechnology
sl@0
    24
*/
sl@0
    25
sl@0
    26
#ifndef __HOSTUSBMSSHARED_H__
sl@0
    27
#define __HOSTUSBMSSHARED_H__
sl@0
    28
sl@0
    29
const TUint32 KMaxUsbSerialNumLength=256;
sl@0
    30
sl@0
    31
/**
sl@0
    32
This class represents the device configuration.
sl@0
    33
*/
sl@0
    34
class THostMassStorageConfig
sl@0
    35
	{
sl@0
    36
public:
sl@0
    37
    /** Device token */
sl@0
    38
	TUint32 iInterfaceToken;
sl@0
    39
    /** USB Vendor ID */
sl@0
    40
	TUint16 iVendorId;
sl@0
    41
    /** USB Product ID */
sl@0
    42
	TUint16 iProductId;
sl@0
    43
    /** USB Device Release Number in BCD */
sl@0
    44
	TUint16 iBcdDevice;
sl@0
    45
    /** USB Number of possible configurations supported by the device */
sl@0
    46
	TUint8  iConfigurationNumber;
sl@0
    47
    /** USB Interface number */
sl@0
    48
	TUint8  iInterfaceNumber;
sl@0
    49
    /** Device Serial Number */
sl@0
    50
	TBuf8<KMaxUsbSerialNumLength> iSerialNumber;
sl@0
    51
	/** Protocol to be used by the MSC */
sl@0
    52
	TUint8	iProtocolId;
sl@0
    53
	/** Transport to be used by the MSC */
sl@0
    54
	TUint8	iTransportId;
sl@0
    55
	/** Time internval to check media status and finalisation */
sl@0
    56
	TUint8	iStatusPollingInterval;
sl@0
    57
	/** Device's capabilitiy for RemoteWakeup */
sl@0
    58
	TUint8	iRemoteWakeup;
sl@0
    59
	/** OTG capability of the device */
sl@0
    60
	TUint8	iIsOtgClient;	// NOT USED
sl@0
    61
	/** Time interval to delay suspending the interface after finalisation */
sl@0
    62
	TUint8	iOtgSuspendTime;	// NOT USED
sl@0
    63
sl@0
    64
private:
sl@0
    65
	TUint32 iSpare1;
sl@0
    66
	TUint32 iSpare2;
sl@0
    67
	TUint32 iSpare3;
sl@0
    68
	TUint32 iSpare4;
sl@0
    69
	};
sl@0
    70
sl@0
    71
sl@0
    72
struct TCapsInfo
sl@0
    73
    {
sl@0
    74
    /** Size of Media in Blocks */
sl@0
    75
    TUint32 iNumberOfBlocks;
sl@0
    76
    /** Block Length */
sl@0
    77
    TUint32 iBlockLength;
sl@0
    78
    /** Media write protect */
sl@0
    79
    TBool iWriteProtect;
sl@0
    80
    };
sl@0
    81
sl@0
    82
sl@0
    83
sl@0
    84
#endif //__HOSTUSBMSSHARED_H__