tsrc/testtools/usbman_stub/usbman/server/public/rusb.h
branchRCL_3
changeset 92 dde4619868dc
parent 86 703a2b94c06c
child 95 55a3258355ea
equal deleted inserted replaced
86:703a2b94c06c 92:dde4619868dc
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #ifndef __RUSB_H__
       
    24 #define __RUSB_H__
       
    25 
       
    26 #include <e32std.h>
       
    27 #include <usb/usbshared.h>
       
    28 
       
    29 const TInt KUsbSrvMajorVersionNumber = 1;
       
    30 const TInt KUsbSrvMinorVersionNumber = 1;
       
    31 const TInt KUsbSrvBuildVersionNumber = 0;
       
    32 
       
    33 const TInt KUsbMaxSupportedClasses = 64;		// Max number of supported USB classes by a personality
       
    34 
       
    35 const TInt KUsbMaxSupportedPersonalities = 64;	// Max number of supported personalities
       
    36 
       
    37 _LIT(KUsbServerName, "!usbman");
       
    38 
       
    39 enum TUsbMessages
       
    40 	{
       
    41 	EUsbStart,
       
    42 	EUsbStop,
       
    43 	EUsbRegisterObserver,
       
    44 	EUsbGetCurrentState,
       
    45 	EUsbStartCancel,
       
    46 	EUsbCancelObserver,
       
    47 	EUsbStopCancel,
       
    48 	EUsbGetCurrentDeviceState,
       
    49 	EUsbRegisterServiceObserver,
       
    50 	EUsbCancelServiceObserver,
       
    51 	EUsbDbgMarkHeap,
       
    52 	EUsbDbgCheckHeap,
       
    53 	EUsbDbgMarkEnd,
       
    54 	EUsbDbgFailNext,
       
    55 	EUsbTryStart,
       
    56 	EUsbTryStop,
       
    57 	EUsbCancelInterest,
       
    58 	EUsbGetCurrentPersonalityId,
       
    59 	EUsbGetSupportedClasses,
       
    60 	EUsbGetPersonalityIds,
       
    61 	EUsbGetDescription,
       
    62 	EUsbClassSupported,
       
    63 
       
    64 	
       
    65 	EUsbSetCtlSessionMode,
       
    66 	EUsbBusRequest,
       
    67 	EUsbBusRespondSrp,
       
    68 	EUsbBusClearError,
       
    69 
       
    70 	EUsbBusDrop,
       
    71 	EUsbRegisterMessageObserver,
       
    72 	EUsbCancelMessageObserver,
       
    73 	EUsbRegisterHostObserver,
       
    74 	EUsbCancelHostObserver,
       
    75 	EUsbEnableFunctionDriverLoading,
       
    76 	EUsbDisableFunctionDriverLoading,
       
    77 	EUsbGetSupportedLanguages,
       
    78 	EUsbGetManufacturerStringDescriptor,
       
    79 	EUsbGetProductStringDescriptor,
       
    80 	EUsbGetOtgDescriptor,
       
    81 	EUsbDbgAlloc,
       
    82 	EUsbRequestSession,
       
    83 	EUsbGetDetailedDescription,
       
    84 	EUsbGetPersonalityProperty
       
    85 	};
       
    86 
       
    87 _LIT(KUsbCliPncCat, "UsbMan-Client");
       
    88 
       
    89 enum TUsbPanicClient
       
    90 	{
       
    91 	EUsbCreateFailure,
       
    92 	EUsbPanicIllegalIPC,
       
    93 	EUsbPanicRemovedExport
       
    94 	};
       
    95 
       
    96 const TUid KUsbmanSvrUid = {0x101fe1db};
       
    97 
       
    98 #ifdef __USBMAN_NO_PROCESSES__
       
    99 
       
   100 const TUint KUsbmanStackSize = 0x3000;			//  12KB
       
   101 const TUint KUsbmanMinHeapSize = 0x1000;		//   4KB
       
   102 const TUint KUsbmanMaxHeapSize = 0x40000;		// 256KB
       
   103 
       
   104 _LIT(KUsbmanImg, "usbsvr");
       
   105 
       
   106 #else
       
   107 
       
   108 #ifndef __OVER_DUMMYUSBDI__
       
   109 _LIT(KUsbmanImg, "z:\\system\\programs\\usbsvr.exe");
       
   110 #else
       
   111 _LIT(KUsbmanImg, "z:\\system\\programs\\usbsvr_over_dummyusbdi.exe");
       
   112 #endif
       
   113 
       
   114 #endif //__USBMAN_NO_PROCESSES__
       
   115 
       
   116 #endif //__RUSB_H__