sl@0
|
1 |
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// Defines all the patchable constants in fbscli.dll.
|
sl@0
|
15 |
// The definition of the constants must not be in the same file as the usage,
|
sl@0
|
16 |
// or the compiler will optimise them out, so put them all in here.
|
sl@0
|
17 |
// Note that existing patchable constants are declared as global,
|
sl@0
|
18 |
// i.e. not in a namespace, so I have continued the trend.
|
sl@0
|
19 |
//
|
sl@0
|
20 |
//
|
sl@0
|
21 |
|
sl@0
|
22 |
#include <e32def.h>
|
sl@0
|
23 |
|
sl@0
|
24 |
|
sl@0
|
25 |
/**
|
sl@0
|
26 |
@SYMPatchable
|
sl@0
|
27 |
@publishedPartner
|
sl@0
|
28 |
@released
|
sl@0
|
29 |
|
sl@0
|
30 |
This constant determines the granularity of the section of contiguous committed memory
|
sl@0
|
31 |
at the beginning of the large bitmap chunk. This granularity equals the memory page size
|
sl@0
|
32 |
multiplied by 2 to the power of the value of the constant.
|
sl@0
|
33 |
@note Default value: 1 (2x)
|
sl@0
|
34 |
*/
|
sl@0
|
35 |
EXPORT_C extern const TInt KFbServLargeChunkGrowByShifter = 1;
|
sl@0
|
36 |
|
sl@0
|
37 |
/**
|
sl@0
|
38 |
@SYMPatchable
|
sl@0
|
39 |
@publishedPartner
|
sl@0
|
40 |
@released
|
sl@0
|
41 |
|
sl@0
|
42 |
This constant, together with <code>KFbServLargeChunkMinVirtualSize</code> and
|
sl@0
|
43 |
<code>KFbServLargeChunkMaxVirtualSize</code>, determines the size of the virtual
|
sl@0
|
44 |
address range reserved for the large bitmap chunk. Between a minimum and a maximum,
|
sl@0
|
45 |
the size of this virtual address range equals the amount of physical RAM memory
|
sl@0
|
46 |
multiplied by 2 to the power of the value of the constant.
|
sl@0
|
47 |
@note Default value: 2 (4x)
|
sl@0
|
48 |
*/
|
sl@0
|
49 |
EXPORT_C extern const TInt KFbServLargeChunkSizeShifter = 2;
|
sl@0
|
50 |
|
sl@0
|
51 |
/**
|
sl@0
|
52 |
@SYMPatchable
|
sl@0
|
53 |
@publishedPartner
|
sl@0
|
54 |
@released
|
sl@0
|
55 |
|
sl@0
|
56 |
This constant defines the minimum amount of physical memory committed to the large bitmap chunk.
|
sl@0
|
57 |
@note Default value: 16KB (0x4000)
|
sl@0
|
58 |
*/
|
sl@0
|
59 |
EXPORT_C extern const TInt KFbServLargeChunkMinPhysicalSize = 0x4000;
|
sl@0
|
60 |
|
sl@0
|
61 |
/**
|
sl@0
|
62 |
@SYMPatchable
|
sl@0
|
63 |
@publishedPartner
|
sl@0
|
64 |
@released
|
sl@0
|
65 |
|
sl@0
|
66 |
This constant defines the minimum size of the virtual address range reserved for the large bitmap chunk.
|
sl@0
|
67 |
@note Default value: 64MB (0x04000000)
|
sl@0
|
68 |
@note Emulator value 32MB (0x02000000)
|
sl@0
|
69 |
*/
|
sl@0
|
70 |
#ifdef __WINS__
|
sl@0
|
71 |
EXPORT_C extern const TInt KFbServLargeChunkMinVirtualSize = 0x02000000;
|
sl@0
|
72 |
#else
|
sl@0
|
73 |
EXPORT_C extern const TInt KFbServLargeChunkMinVirtualSize = 0x04000000;
|
sl@0
|
74 |
#endif
|
sl@0
|
75 |
|
sl@0
|
76 |
/**
|
sl@0
|
77 |
@SYMPatchable
|
sl@0
|
78 |
@publishedPartner
|
sl@0
|
79 |
@released
|
sl@0
|
80 |
|
sl@0
|
81 |
This constant defines the maximum size of the virtual address range reserved for the large bitmap chunk.
|
sl@0
|
82 |
@note Default value: 256MB (0x10000000)
|
sl@0
|
83 |
@note Emulator value 48MB (0x03000000)
|
sl@0
|
84 |
*/
|
sl@0
|
85 |
#ifdef __WINS__
|
sl@0
|
86 |
EXPORT_C extern const TInt KFbServLargeChunkMaxVirtualSize = 0x03000000;
|
sl@0
|
87 |
#else
|
sl@0
|
88 |
EXPORT_C extern const TInt KFbServLargeChunkMaxVirtualSize = 0x10000000;
|
sl@0
|
89 |
#endif
|
sl@0
|
90 |
|
sl@0
|
91 |
// Header files declaring these constants are included to confirm that the definitions match.
|
sl@0
|
92 |
// They are included at the end because otherwise the ARM compiler refuses to initialise the values.
|
sl@0
|
93 |
|
sl@0
|
94 |
#if (__ARMCC_VERSION >= 310000)
|
sl@0
|
95 |
//# include "UTILS.H" // Commented out to prevent warning dllexport/dllimport conflict
|
sl@0
|
96 |
#else
|
sl@0
|
97 |
# include "UTILS.H"
|
sl@0
|
98 |
#endif
|
sl@0
|
99 |
|
sl@0
|
100 |
|
sl@0
|
101 |
|