userlibandfileserver/fileserver/shostmassstorage/shared/shared.h
author Tom Cosgrove <tom.cosgrove@nokia.com>
Fri, 28 May 2010 16:29:07 +0100
changeset 30 8aab599e3476
parent 0 a41df078684a
child 24 41f0cfe18c80
permissions -rw-r--r--
Fix for bug 2283 (RVCT 4.0 support is missing from PDK 3.0.h) Have multiple extension sections in the bld.inf, one for each version of the compiler. The RVCT version building the tools will build the runtime libraries for its version, but make sure we extract all the other versions from zip archives. Also add the archive for RVCT4.

// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// Shared client/server definitions 
// 
// WARNING: This file contains some APIs which are internal and are subject
//          to change without notice. Such APIs should therefore not be used
//          outside the Kernel and Hardware Services package.
//

/**
 @file
 @internalTechnology
*/

#ifndef __HOSTUSBMSSHARED_H__
#define __HOSTUSBMSSHARED_H__

const TUint32 KMaxUsbSerialNumLength=256;

/**
This class represents the device configuration.
*/
class THostMassStorageConfig
	{
public:
    /** Device token */
	TUint32 iInterfaceToken;
    /** USB Vendor ID */
	TUint16 iVendorId;
    /** USB Product ID */
	TUint16 iProductId;
    /** USB Device Release Number in BCD */
	TUint16 iBcdDevice;
    /** USB Number of possible configurations supported by the device */
	TUint8  iConfigurationNumber;
    /** USB Interface number */
	TUint8  iInterfaceNumber;
    /** Device Serial Number */
	TBuf8<KMaxUsbSerialNumLength> iSerialNumber;
	/** Protocol to be used by the MSC */
	TUint8	iProtocolId;
	/** Transport to be used by the MSC */
	TUint8	iTransportId;
	/** Time internval to check media status and finalisation */
	TUint8	iStatusPollingInterval;
	/** Device's capabilitiy for RemoteWakeup */
	TUint8	iRemoteWakeup;
	/** OTG capability of the device */
	TUint8	iIsOtgClient;	// NOT USED
	/** Time interval to delay suspending the interface after finalisation */
	TUint8	iOtgSuspendTime;	// NOT USED

private:
	TUint32 iSpare1;
	TUint32 iSpare2;
	TUint32 iSpare3;
	TUint32 iSpare4;
	};


struct TCapsInfo
    {
    /** Size of Media in Blocks */
    TUint32 iNumberOfBlocks;
    /** Block Length */
    TUint32 iBlockLength;
    /** Media write protect */
    TBool iWriteProtect;
    };



#endif //__HOSTUSBMSSHARED_H__