Update contrib.
1 // Copyright (c) 2007-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 "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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Defines all the patchable constants in fbscli.dll.
15 // The definition of the constants must not be in the same file as the usage,
16 // or the compiler will optimise them out, so put them all in here.
17 // Note that existing patchable constants are declared as global,
18 // i.e. not in a namespace, so I have continued the trend.
30 This constant determines the granularity of the section of contiguous committed memory
31 at the beginning of the large bitmap chunk. This granularity equals the memory page size
32 multiplied by 2 to the power of the value of the constant.
33 @note Default value: 1 (2x)
35 EXPORT_C extern const TInt KFbServLargeChunkGrowByShifter = 1;
42 This constant, together with <code>KFbServLargeChunkMinVirtualSize</code> and
43 <code>KFbServLargeChunkMaxVirtualSize</code>, determines the size of the virtual
44 address range reserved for the large bitmap chunk. Between a minimum and a maximum,
45 the size of this virtual address range equals the amount of physical RAM memory
46 multiplied by 2 to the power of the value of the constant.
47 @note Default value: 2 (4x)
49 EXPORT_C extern const TInt KFbServLargeChunkSizeShifter = 2;
56 This constant defines the minimum amount of physical memory committed to the large bitmap chunk.
57 @note Default value: 16KB (0x4000)
59 EXPORT_C extern const TInt KFbServLargeChunkMinPhysicalSize = 0x4000;
66 This constant defines the minimum size of the virtual address range reserved for the large bitmap chunk.
67 @note Default value: 64MB (0x04000000)
68 @note Emulator value 32MB (0x02000000)
71 EXPORT_C extern const TInt KFbServLargeChunkMinVirtualSize = 0x02000000;
73 EXPORT_C extern const TInt KFbServLargeChunkMinVirtualSize = 0x04000000;
81 This constant defines the maximum size of the virtual address range reserved for the large bitmap chunk.
82 @note Default value: 256MB (0x10000000)
83 @note Emulator value 48MB (0x03000000)
86 EXPORT_C extern const TInt KFbServLargeChunkMaxVirtualSize = 0x03000000;
88 EXPORT_C extern const TInt KFbServLargeChunkMaxVirtualSize = 0x10000000;
91 // Header files declaring these constants are included to confirm that the definitions match.
92 // They are included at the end because otherwise the ARM compiler refuses to initialise the values.
94 #if (__ARMCC_VERSION >= 310000)
95 //# include "UTILS.H" // Commented out to prevent warning dllexport/dllimport conflict