fbs/fontandbitmapserver/sfbs/patchableconstantscli.cpp
changeset 0 5d03bc08d59c
child 36 01a6848ebfd7
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     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 */
       
    69 EXPORT_C extern const TInt KFbServLargeChunkMinVirtualSize = 0x04000000;
       
    70 
       
    71 /**
       
    72 @SYMPatchable
       
    73 @publishedPartner
       
    74 @released
       
    75 
       
    76 This constant defines the maximum size of the virtual address range reserved for the large bitmap chunk.
       
    77 @note	Default value: 256MB (0x10000000)
       
    78 */
       
    79 #ifdef __WINS__
       
    80 EXPORT_C extern const TInt KFbServLargeChunkMaxVirtualSize = 0x8000000;
       
    81 #else
       
    82 EXPORT_C extern const TInt KFbServLargeChunkMaxVirtualSize = 0x10000000;
       
    83 #endif
       
    84 
       
    85 // Header files declaring these constants are included to confirm that the definitions match.
       
    86 // They are included at the end because otherwise the ARM compiler refuses to initialise the values.
       
    87 
       
    88 #if (__ARMCC_VERSION >= 310000)
       
    89 //#	include "UTILS.H"	// Commented out to prevent warning dllexport/dllimport conflict
       
    90 #else
       
    91 #	include "UTILS.H"
       
    92 #endif
       
    93 
       
    94 
       
    95