1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/fbs/fontandbitmapserver/sfbs/patchableconstantscli.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,101 @@
1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// Defines all the patchable constants in fbscli.dll.
1.18 +// The definition of the constants must not be in the same file as the usage,
1.19 +// or the compiler will optimise them out, so put them all in here.
1.20 +// Note that existing patchable constants are declared as global,
1.21 +// i.e. not in a namespace, so I have continued the trend.
1.22 +//
1.23 +//
1.24 +
1.25 +#include <e32def.h>
1.26 +
1.27 +
1.28 +/**
1.29 +@SYMPatchable
1.30 +@publishedPartner
1.31 +@released
1.32 +
1.33 +This constant determines the granularity of the section of contiguous committed memory
1.34 +at the beginning of the large bitmap chunk. This granularity equals the memory page size
1.35 +multiplied by 2 to the power of the value of the constant.
1.36 +@note Default value: 1 (2x)
1.37 +*/
1.38 +EXPORT_C extern const TInt KFbServLargeChunkGrowByShifter = 1;
1.39 +
1.40 +/**
1.41 +@SYMPatchable
1.42 +@publishedPartner
1.43 +@released
1.44 +
1.45 +This constant, together with <code>KFbServLargeChunkMinVirtualSize</code> and
1.46 +<code>KFbServLargeChunkMaxVirtualSize</code>, determines the size of the virtual
1.47 +address range reserved for the large bitmap chunk. Between a minimum and a maximum,
1.48 +the size of this virtual address range equals the amount of physical RAM memory
1.49 +multiplied by 2 to the power of the value of the constant.
1.50 +@note Default value: 2 (4x)
1.51 +*/
1.52 +EXPORT_C extern const TInt KFbServLargeChunkSizeShifter = 2;
1.53 +
1.54 +/**
1.55 +@SYMPatchable
1.56 +@publishedPartner
1.57 +@released
1.58 +
1.59 +This constant defines the minimum amount of physical memory committed to the large bitmap chunk.
1.60 +@note Default value: 16KB (0x4000)
1.61 +*/
1.62 +EXPORT_C extern const TInt KFbServLargeChunkMinPhysicalSize = 0x4000;
1.63 +
1.64 +/**
1.65 +@SYMPatchable
1.66 +@publishedPartner
1.67 +@released
1.68 +
1.69 +This constant defines the minimum size of the virtual address range reserved for the large bitmap chunk.
1.70 +@note Default value: 64MB (0x04000000)
1.71 +@note Emulator value 32MB (0x02000000)
1.72 +*/
1.73 +#ifdef __WINS__
1.74 +EXPORT_C extern const TInt KFbServLargeChunkMinVirtualSize = 0x02000000;
1.75 +#else
1.76 +EXPORT_C extern const TInt KFbServLargeChunkMinVirtualSize = 0x04000000;
1.77 +#endif
1.78 +
1.79 +/**
1.80 +@SYMPatchable
1.81 +@publishedPartner
1.82 +@released
1.83 +
1.84 +This constant defines the maximum size of the virtual address range reserved for the large bitmap chunk.
1.85 +@note Default value: 256MB (0x10000000)
1.86 +@note Emulator value 48MB (0x03000000)
1.87 +*/
1.88 +#ifdef __WINS__
1.89 +EXPORT_C extern const TInt KFbServLargeChunkMaxVirtualSize = 0x03000000;
1.90 +#else
1.91 +EXPORT_C extern const TInt KFbServLargeChunkMaxVirtualSize = 0x10000000;
1.92 +#endif
1.93 +
1.94 +// Header files declaring these constants are included to confirm that the definitions match.
1.95 +// They are included at the end because otherwise the ARM compiler refuses to initialise the values.
1.96 +
1.97 +#if (__ARMCC_VERSION >= 310000)
1.98 +//# include "UTILS.H" // Commented out to prevent warning dllexport/dllimport conflict
1.99 +#else
1.100 +# include "UTILS.H"
1.101 +#endif
1.102 +
1.103 +
1.104 +