os/graphics/fbs/fontandbitmapserver/sfbs/patchableconstantscli.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    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.
    19 // 
    20 //
    21 
    22 #include <e32def.h>
    23 
    24 
    25 /**
    26 @SYMPatchable
    27 @publishedPartner
    28 @released
    29 
    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)
    34 */
    35 EXPORT_C extern const TInt KFbServLargeChunkGrowByShifter = 1;
    36 
    37 /**
    38 @SYMPatchable
    39 @publishedPartner
    40 @released
    41 
    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)
    48 */
    49 EXPORT_C extern const TInt KFbServLargeChunkSizeShifter = 2;
    50 
    51 /**
    52 @SYMPatchable
    53 @publishedPartner
    54 @released
    55 
    56 This constant defines the minimum amount of physical memory committed to the large bitmap chunk.
    57 @note	Default value: 16KB (0x4000)
    58 */
    59 EXPORT_C extern const TInt KFbServLargeChunkMinPhysicalSize = 0x4000;
    60 
    61 /**
    62 @SYMPatchable
    63 @publishedPartner
    64 @released
    65 
    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)
    69 */
    70 #ifdef __WINS__
    71 EXPORT_C extern const TInt KFbServLargeChunkMinVirtualSize = 0x02000000;
    72 #else
    73 EXPORT_C extern const TInt KFbServLargeChunkMinVirtualSize = 0x04000000;
    74 #endif
    75 
    76 /**
    77 @SYMPatchable
    78 @publishedPartner
    79 @released
    80 
    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)
    84 */
    85 #ifdef __WINS__
    86 EXPORT_C extern const TInt KFbServLargeChunkMaxVirtualSize = 0x03000000;
    87 #else
    88 EXPORT_C extern const TInt KFbServLargeChunkMaxVirtualSize = 0x10000000;
    89 #endif
    90 
    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.
    93 
    94 #if (__ARMCC_VERSION >= 310000)
    95 //#	include "UTILS.H"	// Commented out to prevent warning dllexport/dllimport conflict
    96 #else
    97 #	include "UTILS.H"
    98 #endif
    99 
   100 
   101