|
1 /* |
|
2 * Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #if !defined(__R_GLOBAL_H__) |
|
20 #define __R_GLOBAL_H__ |
|
21 |
|
22 #define DEBUG_TRACE |
|
23 #ifdef DEBUG_TRACE |
|
24 #define TRACE(m,s) ( (void) ((TraceMask&(m)) && ((s),0)) ) |
|
25 #define STRACE(m,s) if (TraceMask&(m)) s |
|
26 #define TDIR 0x00000001 |
|
27 #define TTIMING 0x00000002 |
|
28 #define TIMPORT 0x00000004 |
|
29 #define TROMNODE 0x00000008 |
|
30 #define TCOLLAPSE1 0x00000010 |
|
31 #define TCOLLAPSE2 0x00000020 |
|
32 #define TCOLLAPSE3 0x00000040 |
|
33 #define TCOLLAPSE4 0x00000080 |
|
34 #define TAREA 0x00000200 |
|
35 #define TSCRATCH 0x100 |
|
36 #else |
|
37 #define TRACE(m,s) |
|
38 #endif |
|
39 |
|
40 #define DEFAULT_LOG_LEVEL 0x0 |
|
41 |
|
42 #define LOG_LEVEL_FILE_DETAILS 0x00000001 // Destination file name (loglevel1) |
|
43 #define LOG_LEVEL_FILE_ATTRIBUTES 0x00000002 // File attributes (loglevel2) |
|
44 #define LOG_LEVEL_COMPRESSION_INFO 0x00000004 // Compression information (loglevel3) |
|
45 #define LOG_LEVEL_SMP_INFO 0x00000008 // SMP-unsafe components (loglevel4) |
|
46 |
|
47 #include <e32std.h> |
|
48 #include "e32image.h" |
|
49 #include "r_obey.h" |
|
50 |
|
51 // in r_global.cpp |
|
52 extern TRomLoaderHeader *TheRomLoaderHeader; |
|
53 extern ImpTRomHeader *TheRomHeader; |
|
54 extern TRomBuilderEntry *TheRootDirectory; |
|
55 extern TUint32 TheRomMem; |
|
56 extern TUint32 TheRomRootDir; |
|
57 extern TBool Unicode; |
|
58 extern TBool gSortedRomFs; |
|
59 extern TBool gEnableCompress; |
|
60 extern TBool gFastCompress; |
|
61 |
|
62 extern TUint gCompressionMethod; |
|
63 |
|
64 extern TBool gCompressUnpaged; |
|
65 extern TUint gCompressUnpagedMethod; |
|
66 |
|
67 extern TUint32 TheRomLinearAddress; |
|
68 extern TInt NumberOfVariants; |
|
69 extern TInt NumRootDirs; |
|
70 extern TUint TraceMask; |
|
71 extern TBool TypeSafeLink; |
|
72 extern TUint32 LastValidAddress; |
|
73 extern TCpu CPU; |
|
74 extern TInt gHeaderType; |
|
75 extern TInt gPagedRom; |
|
76 extern TInt gCodePagingOverride; |
|
77 extern TInt gDataPagingOverride; |
|
78 extern TBool gPlatSecEnforceSysBin; |
|
79 extern TBool gPlatSecEnforcement; |
|
80 extern TBool gPlatSecDiagnostics; |
|
81 extern SCapabilitySet gPlatSecDisabledCaps; |
|
82 extern SCapabilitySet gPlatSecAllCaps; |
|
83 extern SDemandPagingConfig gDemandPagingConfig; |
|
84 extern TBool gGenInc; // DEF095619 |
|
85 extern TBool gEnableStdPathWarning; |
|
86 extern TInt gLogLevel; |
|
87 extern TBool gLowMem; |
|
88 extern TBool gUseCoreImage; |
|
89 extern TText *gImageFilename; |
|
90 extern TInt gBootstrapSize; // To calculate uncompressed un-paged size CR1258 |
|
91 extern TInt gPageIndexTableSize; // To calculate uncompressed un-paged size CR1258 |
|
92 #endif |