diff -r 000000000000 -r a41df078684a kerneltest/e32test/defrag/t_ramdefrag.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/kerneltest/e32test/defrag/t_ramdefrag.h Mon Oct 19 15:55:17 2009 +0100 @@ -0,0 +1,325 @@ +// Copyright (c) 2006-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: +// e32test\defrag\t_ramdefrag.h +// +// + +#ifndef _T_RAMDEFRAG_H_ +#define _T_RAMDEFRAG_H_ + +#include +#ifndef __KERNEL_MODE__ +#include +#endif + +#define DEFRAG_TYPE_GEN (1) +#define DEFRAG_TYPE_EMPTY (2) +#define DEFRAG_TYPE_CLAIM (3) + +#define DEFRAG_VER_SYNC (1) +#define DEFRAG_VER_SEM (2) +#define DEFRAG_VER_DFC (3) + +#define NO_FIXED_FLAG (1) +#define NO_MOVE_FLAG (2) +#define NO_DISCARD_FLAG (3) +#define NO_ALLOC_FLAG (4) +#define ONLY_DISCARD_FLAG (5) +#define RESET_FLAG (6) +#define ORIG_FLAG (7) + +#define FREE_ALL_FIXED (0) +#define FILL_ALL_FIXED (-1) + +#define FREE_VALID (0) +#define FREE_INVALID (-1) +//#define DEBUG_VER +#ifdef DEBUG_VER +#define TESTDEBUG(a) {a;} +#else +#define TESTDEBUG(a) {} +#endif + +struct SCapsPageMoveV01 + { + TVersion iVersion; + }; + +struct STestRamDefragVars + { + TInt iRamSize; + TInt iFreeRam; + TInt iPageSize; + TInt iRamUsed; + TInt iNumFreePages; + }; + +struct STestUserSidePageCount + { + TUint iFreePages; /**