os/kernelhwsrv/kernel/eka/drivers/debug/common/d_debug_functionality.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2006-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 // Internal class used to assemble debug functionality data block
    15 // 
    16 
    17 #ifndef T_DEBUG_FUNCTIONALITY_H
    18 #define T_DEBUG_FUNCTIONALITY_H
    19 
    20 /**
    21  * This class is used to represent and assemble the debug functionality
    22  * block
    23  */
    24 class TDebugFunctionality
    25 	{
    26 
    27 	public:
    28 		TUint32 GetDebugFunctionalityBufSize(void);
    29 		TBool GetDebugFunctionality(TDes8& aDFBlock);
    30 		TUint32 GetStopModeFunctionalityBufSize(void);
    31 		TBool GetStopModeFunctionality(TDes8& aDFBlock);
    32 		static TInt GetRegister(const Debug::TRegisterInfo aRegisterInfo, Debug::TTag& aTag);
    33 		static TUint32 GetMemoryOperationMaxBlockSize();
    34 
    35 	private:
    36 
    37 		// Helper functions when assembling the buffer
    38 		void AppendBlock(const Debug::TSubBlock& aDFSubBlock, TDes8& aDFBlock);
    39 		TUint32 ComputeBlockSize(const Debug::TSubBlock& aDFSubBlock);
    40 };
    41 
    42 #endif	// T_DEBUG_FUNCTIONALITY_H