usbmgmt/usbmgr/device/classdrivers/ncm/inc/ncmcommon.h
branchRCL_3
changeset 16 012cc2ee6408
parent 15 f92a4f87e424
equal deleted inserted replaced
15:f92a4f87e424 16:012cc2ee6408
     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 @internalTechnology
       
    21  */
       
    22 
       
    23 #ifndef NCMCOMMON_H
       
    24 #define NCMCOMMON_H
       
    25 
       
    26 #ifndef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY
       
    27 #error "NCM needs the 3-plane comms environment!"
       
    28 #endif
       
    29 
       
    30 #include <usb/usbncm.h>
       
    31 
       
    32 #ifndef __OVER_DUMMYUSBSCLDD__
       
    33 #include <comms-infras/nifprvar.h>
       
    34 #include <d32ethernet.h> //FOR KEthernetAddressLength
       
    35 #else
       
    36 #include <usb/testncm/ethinter.h>
       
    37 #endif
       
    38 
       
    39 //property's category UID.
       
    40 //This Property is used to indicate the Packet Driver that it's started by NCM Class Controller.
       
    41 #ifdef OVERDUMMY_NCMCC
       
    42 static const TUid KUsbmanSvrUid = {0x2002EA88}; //
       
    43 #else
       
    44 static const TUid KUsbmanSvrUid = {0x101fe1db};
       
    45 #endif // OVERDUMMY_NCMCC
       
    46 
       
    47 //property's sub-key.
       
    48 static const TUint KKeyNcmSharedState = 0x2002C340;
       
    49 
       
    50 //Platform Security for the property.
       
    51 static _LIT_SECURITY_POLICY_PASS(KAllowAllPolicy);
       
    52 static _LIT_SECURITY_POLICY_C1(KNetworkControlPolicy, ECapabilityNetworkControl);
       
    53 static _LIT_SECURITY_POLICY_C1(KCommDDPolicy, ECapabilityCommDD);
       
    54 
       
    55 
       
    56 /**
       
    57 NCM network device MAC address.
       
    58 */
       
    59 typedef TBuf8<KEthernetAddressLength> TNcmMacAddress;
       
    60 
       
    61 /**
       
    62 NCM SharedState between NCM Class Controller and Packet Driver.
       
    63 */
       
    64 enum TNcmSharedState
       
    65     {
       
    66     ENcmStateIntial = 0,
       
    67     ENcmStartRequested = 1, // NCM class controller is request NCM packet driver
       
    68     ENcmStateEndMark
       
    69     };
       
    70 
       
    71 /**
       
    72  Packet driver progress to Comms
       
    73  */
       
    74 enum TNcmNifProgress
       
    75     {
       
    76     ENcmPktDrvFatalError    = KMinNifProgress   // NCM packet driver fatal error
       
    77     };
       
    78 
       
    79 #endif // NCMCOMMON_H