epoc32/include/e32rom.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
permissions -rw-r--r--
Final list of Symbian^2 public API header files
williamr@2
     1
// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     2
// All rights reserved.
williamr@2
     3
// This component and the accompanying materials are made available
williamr@2
     4
// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
williamr@2
     5
// which accompanies this distribution, and is available
williamr@2
     6
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
williamr@2
     7
//
williamr@2
     8
// Initial Contributors:
williamr@2
     9
// Nokia Corporation - initial contribution.
williamr@2
    10
//
williamr@2
    11
// Contributors:
williamr@2
    12
//
williamr@2
    13
// Description:
williamr@2
    14
// e32\include\e32rom.h
williamr@2
    15
// 
williamr@2
    16
//
williamr@2
    17
williamr@2
    18
#ifndef __E32ROM_H__
williamr@2
    19
#define __E32ROM_H__
williamr@2
    20
#include <e32cmn.h>
williamr@2
    21
//
williamr@2
    22
williamr@2
    23
#ifndef __SECURITY_INFO_DEFINED__
williamr@2
    24
#define __SECURITY_INFO_DEFINED__
williamr@2
    25
/**
williamr@2
    26
@internalTechnology
williamr@2
    27
*/
williamr@2
    28
//This struct must be identical in size and offset to the one in e32cmn.h
williamr@2
    29
//Functions need not be duplicated.  But must be same structurally.
williamr@2
    30
struct SCapabilitySet
williamr@2
    31
	{
williamr@2
    32
	enum {ENCapW=2};
williamr@2
    33
	TUint32 iCaps[ENCapW];
williamr@2
    34
	inline const TUint32& operator[] (TInt aIndex) const { return iCaps[aIndex]; }
williamr@2
    35
	inline TUint32& operator[] (TInt aIndex) { return iCaps[aIndex]; }
williamr@2
    36
	};
williamr@2
    37
williamr@2
    38
/**
williamr@2
    39
@internalTechnology
williamr@2
    40
*/
williamr@2
    41
//This struct must be identical in size and offset to the one in e32cmn.h
williamr@2
    42
//Functions need not be duplicated.  But must be same structurally.
williamr@2
    43
struct SSecurityInfo
williamr@2
    44
	{
williamr@2
    45
	TUint32	iSecureId;
williamr@2
    46
	TUint32	iVendorId;
williamr@2
    47
	SCapabilitySet iCaps;	
williamr@2
    48
	};
williamr@2
    49
#endif
williamr@2
    50
williamr@2
    51
/**
williamr@2
    52
@internalTechnology
williamr@2
    53
@prototype
williamr@2
    54
*/
williamr@2
    55
struct SDemandPagingConfig
williamr@2
    56
	{
williamr@2
    57
	TUint16 iMinPages;
williamr@2
    58
	TUint16 iMaxPages;
williamr@2
    59
	TUint16 iYoungOldRatio;
williamr@2
    60
	TUint16 iSpare[3];
williamr@2
    61
	};
williamr@2
    62
williamr@2
    63
/**
williamr@2
    64
@internalTechnology
williamr@2
    65
@prototype
williamr@2
    66
*/
williamr@2
    67
struct SRomPageInfo
williamr@2
    68
	{
williamr@2
    69
	enum TAttributes
williamr@2
    70
		{
williamr@2
    71
		EPageable = 1<<0
williamr@2
    72
		};
williamr@2
    73
	enum TCompression
williamr@2
    74
		{
williamr@2
    75
		ENoCompression,
williamr@2
    76
		EBytePair,
williamr@2
    77
		};
williamr@2
    78
	TUint32 iDataStart;
williamr@2
    79
	TUint16 iDataSize;
williamr@2
    80
	TUint8  iCompressionType;
williamr@2
    81
	TUint8  iPagingAttributes;
williamr@2
    82
	};
williamr@2
    83
williamr@2
    84
/**
williamr@2
    85
@publishedPartner
williamr@2
    86
@released
williamr@2
    87
williamr@2
    88
Defines the size of the header for a ROM image.
williamr@2
    89
williamr@2
    90
@see TRomHeader
williamr@2
    91
*/
williamr@2
    92
const TUint KRomHeaderSize=0x200;
williamr@2
    93
//
williamr@2
    94
williamr@2
    95
williamr@2
    96
/**
williamr@2
    97
@publishedPartner
williamr@2
    98
@released
williamr@2
    99
williamr@2
   100
The format of the header for a ROM image.
williamr@2
   101
williamr@2
   102
This is retained as part of the ROM image.
williamr@2
   103
It is generated by the rombuild tool, and is used by the Bootstrap and
williamr@2
   104
the kernel.
williamr@2
   105
*/
williamr@2
   106
class TRomHeader
williamr@2
   107
	{
williamr@2
   108
public:
williamr@2
   109
	enum { KDefaultDebugPort = -1 };
williamr@2
   110
	enum { KNumTraceMask = 8 };  // this is also defined in e23const.h
williamr@2
   111
williamr@2
   112
__ASSERT_COMPILE(KNumTraceMask==KNumTraceMaskWords);
williamr@2
   113
williamr@2
   114
public:
williamr@2
   115
    /**
williamr@2
   116
    Reserved for a small amount of Bootstrap code, if required.
williamr@2
   117
    The first 4 bytes of the binary image typically contains
williamr@2
   118
    a branch instruction which jumps to code at offset 0x100.
williamr@2
   119
    */
williamr@2
   120
	TUint8 iJump[124]; 
williamr@2
   121
	
williamr@2
   122
	                                     
williamr@2
   123
    /**
williamr@2
   124
    The restart vector.
williamr@2
   125
    */	                                     
williamr@2
   126
	TLinAddr iRestartVector;
williamr@2
   127
	
williamr@2
   128
	
williamr@2
   129
	/**
williamr@2
   130
	The date and time that the ROM image was built, in microseconds.
williamr@2
   131
	*/
williamr@2
   132
	TInt64 iTime;
williamr@2
   133
	
williamr@2
   134
	
williamr@2
   135
	/**
williamr@2
   136
	The high order 32 bits of the ROM image build date & time.
williamr@2
   137
	*/
williamr@2
   138
	TUint32 iTimeHi;
williamr@2
   139
	
williamr@2
   140
	
williamr@2
   141
	/**
williamr@2
   142
	The virtual address of the base of the ROM.
williamr@2
   143
	*/
williamr@2
   144
	TLinAddr iRomBase;
williamr@2
   145
	
williamr@2
   146
	
williamr@2
   147
	/**
williamr@2
   148
	The size of the ROM image, in bytes.
williamr@2
   149
	
williamr@2
   150
	This includes the second section for sectioned ROMs.
williamr@2
   151
	*/
williamr@2
   152
	TUint32 iRomSize;
williamr@2
   153
	
williamr@2
   154
	
williamr@2
   155
	/**
williamr@2
   156
	The virtual address of the TRomRootDirectoryList structure.
williamr@2
   157
williamr@2
   158
    @see TRomRootDirectoryList 
williamr@2
   159
	*/
williamr@2
   160
	TLinAddr iRomRootDirectoryList;
williamr@2
   161
	
williamr@2
   162
	
williamr@2
   163
	/**
williamr@2
   164
	The virtual address of kernel data, when in RAM.
williamr@2
   165
	*/
williamr@2
   166
	TLinAddr iKernDataAddress;
williamr@2
   167
	
williamr@2
   168
	
williamr@2
   169
	/**
williamr@2
   170
	The virtual address of the top of the kernel region, when in RAM.
williamr@2
   171
	*/
williamr@2
   172
	TLinAddr iKernelLimit;
williamr@2
   173
	
williamr@2
   174
	
williamr@2
   175
	/**
williamr@2
   176
	The virtual address of the primarys ROM file image header.
williamr@2
   177
williamr@2
   178
    @see TRomImageHeader 
williamr@2
   179
	*/
williamr@2
   180
	TLinAddr iPrimaryFile;
williamr@2
   181
	
williamr@2
   182
	
williamr@2
   183
	/**
williamr@2
   184
	The virtual address of the secondarys ROM file image header.
williamr@2
   185
	
williamr@2
   186
	@see TRomImageHeader 
williamr@2
   187
	*/
williamr@2
   188
	TLinAddr iSecondaryFile;
williamr@2
   189
	
williamr@2
   190
	
williamr@2
   191
	/**
williamr@2
   192
	A computed constant that causes the 32-bit checksum of the image to equal
williamr@2
   193
	the value specified by the "romchecksum" keyword.
williamr@2
   194
	*/
williamr@2
   195
	TUint iCheckSum;
williamr@2
   196
	
williamr@2
   197
	
williamr@2
   198
	/**
williamr@2
   199
	A unique number identifying the hardware for which this ROM image
williamr@2
   200
	has been built.
williamr@2
   201
williamr@2
   202
    Note that this is only used for testing purposes.
williamr@2
   203
	*/
williamr@2
   204
	TUint32 iHardware;
williamr@2
   205
	
williamr@2
   206
	
williamr@2
   207
	/**
williamr@2
   208
	A bitmask identifying which of the languages are supported by the ROM image,
williamr@2
   209
	as specified by the "languages" keyword.
williamr@2
   210
williamr@2
   211
    Note that this is only used for testing purposes.
williamr@2
   212
	*/
williamr@2
   213
	TInt64 iLanguage;
williamr@2
   214
	
williamr@2
   215
	
williamr@2
   216
	/**
williamr@2
   217
	Contains the flags that define the security options in force.
williamr@2
   218
	
williamr@2
   219
	@see TKernelConfigFlags
williamr@2
   220
	*/
williamr@2
   221
	TUint32 iKernelConfigFlags;
williamr@2
   222
williamr@2
   223
	/**
williamr@2
   224
	The virtual address of the TRomExceptionSearchTable structure.
williamr@2
   225
williamr@2
   226
	@see TRomExceptionSearchTable
williamr@2
   227
	*/
williamr@2
   228
	TLinAddr iRomExceptionSearchTable;
williamr@2
   229
	
williamr@2
   230
	/**
williamr@2
   231
	Current size of ROM header (Previously iUnused3)
williamr@2
   232
	If value is 0x69966996 then header size = 0x100
williamr@2
   233
	*/
williamr@2
   234
	TUint32 iRomHeaderSize;
williamr@2
   235
	
williamr@2
   236
	
williamr@2
   237
	/**
williamr@2
   238
	The virtual address of the ROM section header, if the ROM is sectioned.
williamr@2
   239
	
williamr@2
   240
	@see TRomSectionHeader
williamr@2
   241
	*/
williamr@2
   242
	TLinAddr iRomSectionHeader;
williamr@2
   243
	
williamr@2
   244
	
williamr@2
   245
	/**
williamr@2
   246
	The total supervisor data size, i.e. the amount of memory mapped for
williamr@2
   247
	the kernel data chunk.
williamr@2
   248
	*/
williamr@2
   249
	TInt iTotalSvDataSize;
williamr@2
   250
	
williamr@2
   251
	
williamr@2
   252
	/**
williamr@2
   253
	The virtual address of the TRomEntry for the Variant file.
williamr@2
   254
	
williamr@2
   255
	@see TRomEntry
williamr@2
   256
	*/
williamr@2
   257
	TLinAddr iVariantFile;
williamr@2
   258
williamr@2
   259
	
williamr@2
   260
	/**
williamr@2
   261
	The virtual address of TRomEntry for the first extension file, if it exists.
williamr@2
   262
	
williamr@2
   263
	If there is more than one extension, then the next extension field in
williamr@2
   264
	the extensions TRomImageHeader points to the TRomEntry for
williamr@2
   265
	that next extension.
williamr@2
   266
	
williamr@2
   267
    @see TRomImageHeader::iNextExtension
williamr@2
   268
   	@see TRomImageHeader
williamr@2
   269
	@see TRomEntry
williamr@2
   270
	*/
williamr@2
   271
	TLinAddr iExtensionFile;
williamr@2
   272
	
williamr@2
   273
	
williamr@2
   274
	/**
williamr@2
   275
	The virtual adress of the first area to be relocated into RAM, as defined
williamr@2
   276
	using the "area" keyword.
williamr@2
   277
	*/
williamr@2
   278
	TLinAddr iRelocInfo;
williamr@2
   279
	
williamr@2
   280
	
williamr@2
   281
	/**
williamr@2
   282
	The old position of the kernel trace mask, see iTraceMask below
williamr@2
   283
	*/
williamr@2
   284
	TUint32  iOldTraceMask;		// The old location of the kernel tracemask
williamr@2
   285
	
williamr@2
   286
	
williamr@2
   287
	/**
williamr@2
   288
	The virtual address of the user data area.
williamr@2
   289
	*/
williamr@2
   290
	TLinAddr iUserDataAddress;	// non-MMU stuff
williamr@2
   291
williamr@2
   292
	
williamr@2
   293
	/**
williamr@2
   294
	The total size of the user data.
williamr@2
   295
	*/
williamr@2
   296
	TInt iTotalUserDataSize;	// non-MMU stuff
williamr@2
   297
	
williamr@2
   298
	
williamr@2
   299
	/**
williamr@2
   300
	A value that is interpreted by the Bootstrap and kernel as the debug port
williamr@2
   301
	to be used.
williamr@2
   302
	*/
williamr@2
   303
	TUint32 iDebugPort;			// semantic is ASSP-specific
williamr@2
   304
	
williamr@2
   305
	
williamr@2
   306
	/**
williamr@2
   307
	The ROM version number.
williamr@2
   308
	*/
williamr@2
   309
	TVersion iVersion;
williamr@2
   310
	
williamr@2
   311
	
williamr@2
   312
	/**
williamr@2
   313
	The type of compression used for the image.
williamr@2
   314
	
williamr@2
   315
	This is a UID, or 0 if there is no compression.
williamr@2
   316
	*/
williamr@2
   317
	TUint32 iCompressionType;	// compression type used
williamr@2
   318
	
williamr@2
   319
	
williamr@2
   320
	/**
williamr@2
   321
	The size of the image after compression.
williamr@2
   322
	*/
williamr@2
   323
	TUint32 iCompressedSize;	// Size after compression
williamr@2
   324
	
williamr@2
   325
	
williamr@2
   326
	/**
williamr@2
   327
	The size of the image before compression.
williamr@2
   328
	*/
williamr@2
   329
	TUint32 iUncompressedSize;	// Size before compression
williamr@2
   330
	
williamr@2
   331
	
williamr@2
   332
	/**
williamr@2
   333
	*/
williamr@2
   334
	TUint32 iDisabledCapabilities[2];   // 2==SSecurityInfo::ENCapW
williamr@2
   335
williamr@2
   336
williamr@2
   337
	/**
williamr@2
   338
	The initial value for the kernel trace masks.
williamr@2
   339
	*/
williamr@2
   340
	TUint32  iTraceMask[KNumTraceMask];  // The kernel debug trace masks
williamr@2
   341
williamr@2
   342
	/**
williamr@2
   343
	Initial values for fast-trace filter.
williamr@2
   344
	*/
williamr@2
   345
	TUint32 iInitialBTraceFilter[8];
williamr@2
   346
williamr@2
   347
	/**
williamr@2
   348
	Initial value for size of fast-trace buffer.
williamr@2
   349
	*/
williamr@2
   350
	TInt iInitialBTraceBuffer;
williamr@2
   351
williamr@2
   352
	/**
williamr@2
   353
	Initial value for size of fast-trace mode.
williamr@2
   354
	*/
williamr@2
   355
	TInt iInitialBTraceMode;
williamr@2
   356
williamr@2
   357
	/**
williamr@2
   358
	Offset, in bytes from ROM start, for the start of the pageable ROM area.
williamr@2
   359
	*/
williamr@2
   360
	TInt iPageableRomStart;
williamr@2
   361
williamr@2
   362
	/**
williamr@2
   363
	Size, in bytes, of the pageable ROM area.
williamr@2
   364
	*/
williamr@2
   365
	TInt iPageableRomSize;
williamr@2
   366
williamr@2
   367
	/**
williamr@2
   368
	Offset, in bytes from ROM start, for the page index. (Array of SRomPageInfo objects.)
williamr@2
   369
	@internalTechnology
williamr@2
   370
	@prototype
williamr@2
   371
	*/
williamr@2
   372
	TInt iRomPageIndex;
williamr@2
   373
williamr@2
   374
	/**
williamr@2
   375
	@internalTechnology
williamr@2
   376
	@prototype
williamr@2
   377
	*/
williamr@2
   378
	SDemandPagingConfig iDemandPagingConfig;
williamr@2
   379
williamr@2
   380
	/**
williamr@2
   381
	@internalComponent
williamr@2
   382
	*/
williamr@2
   383
	TUint32 iSpare[40];   // spare : force size to be correct
williamr@2
   384
williamr@2
   385
	};
williamr@2
   386
williamr@2
   387
__ASSERT_COMPILE(sizeof(TRomHeader)==KRomHeaderSize);
williamr@2
   388
__ASSERT_COMPILE(SCapabilitySet::ENCapW==2); // TRomHeader::iDisabledCapabilities has hard coded 2 because h2inc.pl does not parse scoped identifiers
williamr@2
   389
williamr@2
   390
williamr@2
   391
williamr@2
   392
williamr@2
   393
/**
williamr@2
   394
@publishedPartner
williamr@2
   395
@released
williamr@2
   396
williamr@2
   397
Contains information about a root directory.
williamr@2
   398
williamr@2
   399
A variable number of these are contained in a TRomRootDirectoryList structure.
williamr@2
   400
williamr@2
   401
@see TRomRootDirectoryList
williamr@2
   402
*/
williamr@2
   403
class TRootDirInfo
williamr@2
   404
	{
williamr@2
   405
public:
williamr@2
   406
    /**
williamr@2
   407
    The hardware variant for this root directory entry.
williamr@2
   408
    */
williamr@2
   409
	TUint iHardwareVariant;
williamr@2
   410
	
williamr@2
   411
	
williamr@2
   412
	/**
williamr@2
   413
	The virtual address of the root directory.
williamr@2
   414
	
williamr@2
   415
	@see TRomDir
williamr@2
   416
	*/
williamr@2
   417
	TLinAddr iAddressLin;
williamr@2
   418
	};
williamr@2
   419
williamr@2
   420
williamr@2
   421
williamr@2
   422
williamr@2
   423
/**
williamr@2
   424
@publishedPartner
williamr@2
   425
@released
williamr@2
   426
williamr@2
   427
A structure that allows you to find the root directories for each hardware
williamr@2
   428
Variant supported by the ROM.
williamr@2
   429
williamr@2
   430
Usually, there is only one Variant and one root directory. However, a ROM can
williamr@2
   431
have multiple root directories and directory trees, one for each hardware Variant
williamr@2
   432
supported by the ROM. This ensures that the file server only sees the files
williamr@2
   433
that are relevant to the hardware on which it is running. In this case, there
williamr@2
   434
are multiple entries in the table describing each root directory.
williamr@2
   435
*/
williamr@2
   436
class TRomRootDirectoryList
williamr@2
   437
	{
williamr@2
   438
public:
williamr@2
   439
    /**
williamr@2
   440
    The number of root directory entries.
williamr@2
   441
    */
williamr@2
   442
	TInt iNumRootDirs;
williamr@2
   443
	
williamr@2
   444
	
williamr@2
   445
	/**
williamr@2
   446
	The root directory entries.
williamr@2
   447
williamr@2
   448
    The number of entries is defined by iNumRootDirs.
williamr@2
   449
	*/
williamr@2
   450
	TRootDirInfo iRootDir[1];
williamr@2
   451
	};
williamr@2
   452
williamr@2
   453
williamr@2
   454
williamr@2
   455
williamr@2
   456
/**
williamr@2
   457
@publishedPartner
williamr@2
   458
@released
williamr@2
   459
williamr@2
   460
The format of a ROM section header.
williamr@2
   461
*/
williamr@2
   462
class TRomSectionHeader
williamr@2
   463
	{
williamr@2
   464
public:
williamr@2
   465
williamr@2
   466
    /**
williamr@2
   467
    The ROM version number.
williamr@2
   468
    */
williamr@2
   469
	TVersion iVersion;
williamr@2
   470
	
williamr@2
   471
	
williamr@2
   472
	/**
williamr@2
   473
	A computed constant that causes the 32-bit checksum of the upper
williamr@2
   474
	section to equal zero.
williamr@2
   475
williamr@2
   476
	Upper sections checksum to zero so that the overall ROM checksum in
williamr@2
   477
	the TRomHeader is unaffected by changes to this section.
williamr@2
   478
	
williamr@2
   479
	@see TRomHeader
williamr@2
   480
	*/
williamr@2
   481
	TUint iCheckSum;
williamr@2
   482
	
williamr@2
   483
	
williamr@2
   484
	/**
williamr@2
   485
	The date and time that the ROM image was built, in microseconds.
williamr@2
   486
	*/
williamr@2
   487
	TInt64 iTime;
williamr@2
   488
williamr@2
   489
	
williamr@2
   490
	/**
williamr@2
   491
	A bitmask identifying which of the languages are supported by the ROM image,
williamr@2
   492
	as specified by the "languages" keyword.
williamr@2
   493
    */
williamr@2
   494
	TInt64 iLanguage;
williamr@2
   495
	};
williamr@2
   496
//
williamr@2
   497
williamr@2
   498
williamr@2
   499
williamr@2
   500
williamr@2
   501
/**
williamr@2
   502
@publishedPartner
williamr@2
   503
@released
williamr@2
   504
williamr@2
   505
A structure that describes a file or a directory.
williamr@2
   506
*/
williamr@2
   507
class TRomEntry
williamr@2
   508
	{
williamr@2
   509
public:
williamr@2
   510
    
williamr@2
   511
     
williamr@2
   512
    /**
williamr@2
   513
    The size of the file.
williamr@2
   514
    */
williamr@2
   515
	TInt iSize;
williamr@2
   516
	
williamr@2
   517
	
williamr@2
   518
	/**
williamr@2
   519
	The virtual address of the file, or of a TRomDir structure if this entry
williamr@2
   520
	describes another directory.
williamr@2
   521
	
williamr@2
   522
	@see TRomDir
williamr@2
   523
	*/
williamr@2
   524
	TUint32 iAddressLin;
williamr@2
   525
williamr@2
   526
williamr@2
   527
	/**
williamr@2
   528
	Attributes.
williamr@2
   529
	*/
williamr@2
   530
	TUint8 iAtt;
williamr@2
   531
williamr@2
   532
williamr@2
   533
	/**
williamr@2
   534
	The length of the file or directory name.
williamr@2
   535
	*/
williamr@2
   536
	TUint8 iNameLength;
williamr@2
   537
williamr@2
   538
williamr@2
   539
	/**
williamr@2
   540
	A variable length field containing the file or directory name.
williamr@2
   541
	*/
williamr@2
   542
	TUint8 iName[2];
williamr@2
   543
	};
williamr@2
   544
williamr@2
   545
williamr@2
   546
williamr@2
   547
williamr@2
   548
/**
williamr@2
   549
@publishedPartner
williamr@2
   550
@released
williamr@2
   551
williamr@2
   552
The size of the fixed part of a TRomEntry structure.
williamr@2
   553
*/
williamr@2
   554
const TInt KRomEntrySize=(sizeof(TRomEntry)-2);
williamr@2
   555
williamr@2
   556
williamr@2
   557
williamr@2
   558
williamr@2
   559
//
williamr@2
   560
class TRomDirSortInfo;
williamr@2
   561
williamr@2
   562
/**
williamr@2
   563
@publishedPartner
williamr@2
   564
@released
williamr@2
   565
williamr@2
   566
A structure that describes the first part of a ROM directory.
williamr@2
   567
williamr@2
   568
This part of a ROM directory is a sequence of variable length entries,
williamr@2
   569
each describing a file or a subdirectory, in the order that the members
williamr@2
   570
were specified in the original obey file; the variable length entries are
williamr@2
   571
the TRomEntry structures that follow the iSize member.
williamr@2
   572
williamr@2
   573
This part of the ROM directory is followed by a structure defined
williamr@2
   574
by TRomDirSortInfo, which contains a pair of sorted tables suitable for
williamr@2
   575
a binary search.
williamr@2
   576
williamr@2
   577
@see TRomDirSortInfo
williamr@2
   578
*/
williamr@2
   579
class TRomDir
williamr@2
   580
	{
williamr@2
   581
public:
williamr@2
   582
	inline const TRomDirSortInfo* SortInfo() const;
williamr@2
   583
	inline const TRomEntry* SortedEntry(TInt aIndex) const;
williamr@2
   584
	inline TInt SubDirCount() const;
williamr@2
   585
	inline TInt FileCount() const;
williamr@2
   586
	inline TInt EntryCount() const;
williamr@2
   587
	TInt BinarySearch(const TDesC& aName, TInt aLengthLimit, TInt aMode, TBool aDir) const;
williamr@2
   588
	const TRomDir* FindLeafDir(const TDesC& aPath) const;
williamr@2
   589
public:
williamr@2
   590
williamr@2
   591
    /**
williamr@2
   592
    The number of bytes occupied by the set of TRomEntry structures
williamr@2
   593
    that follow this field.
williamr@2
   594
    
williamr@2
   595
    @see TRomDir::iEntry
williamr@2
   596
    */
williamr@2
   597
	TInt iSize;
williamr@2
   598
williamr@2
   599
	
williamr@2
   600
	/**
williamr@2
   601
	A variable number of entries, each of which describes a file or a directory.
williamr@2
   602
	
williamr@2
   603
	Each entry is 4-byte aligned, and may have padding to ensure that the entry
williamr@2
   604
	is 4-bye aligned.
williamr@2
   605
	*/
williamr@2
   606
	TRomEntry iEntry;
williamr@2
   607
	};
williamr@2
   608
williamr@2
   609
williamr@2
   610
williamr@2
   611
williamr@2
   612
/**
williamr@2
   613
@publishedPartner
williamr@2
   614
@released
williamr@2
   615
williamr@2
   616
A structure that describes the second part of a ROM directory.
williamr@2
   617
williamr@2
   618
It contains a pair of sorted tables suitable for
williamr@2
   619
a binary search. The sorted tables contain unsigned 16-bit scaled offsets,
williamr@2
   620
which point to the start of the corresponding TRomEntry in the TRomDir.
williamr@2
   621
williamr@2
   622
@see TRomDir
williamr@2
   623
*/
williamr@2
   624
class TRomDirSortInfo
williamr@2
   625
	{
williamr@2
   626
public:
williamr@2
   627
williamr@2
   628
	/**
williamr@2
   629
    The number of subdirectories in this directory.
williamr@2
   630
	*/
williamr@2
   631
	TUint16	iSubDirCount;		// number of subdirectories in this directory
williamr@2
   632
	
williamr@2
   633
	
williamr@2
   634
	/**
williamr@2
   635
	The number of files in this directory.
williamr@2
   636
	*/
williamr@2
   637
	TUint16 iFileCount;			// number of non-directory files in this directory
williamr@2
   638
	
williamr@2
   639
	
williamr@2
   640
	/**
williamr@2
   641
	The two sorted tables:
williamr@2
   642
	
williamr@2
   643
	1. First one is a table of 16-bit scaled offsets to the directory entries.
williamr@2
   644
	
williamr@2
   645
	2. Second one is a table of 16-bit scaled ofsets to the file entries.
williamr@2
   646
	   This table starts at offset 2*iSubDirCount from the start of the first table.
williamr@2
   647
	   
williamr@2
   648
	If the offset is X, then the corresponding TRomEntry is at address:
williamr@2
   649
	@code
williamr@2
   650
	4*X +(char*)address of the first TRomEntry
williamr@2
   651
	@endcode
williamr@2
   652
	For example, the first entry is at offset zero.
williamr@2
   653
	
williamr@2
   654
	The entries are sorted in the order of the UTF-8 representation of
williamr@2
   655
	the names in a case insensitive way (compare the C function stricmp()).
williamr@2
   656
	In effect, this folds upper and lowercase ASCII characters but leaves all
williamr@2
   657
	other Unicode characters unchanged.
williamr@2
   658
	*/
williamr@2
   659
	TUint16 iEntryOffset[1];	// offsets of each entry from TRomDir::iEntry; extend
williamr@2
   660
								// order of offsets is directories first, then files, lexicographic order within each group
williamr@2
   661
	};
williamr@2
   662
williamr@2
   663
williamr@2
   664
/**
williamr@2
   665
Gets a pointer to the start of the second part of the ROM directory,
williamr@2
   666
as described by the TRomDirSortInfo structure.
williamr@2
   667
williamr@2
   668
@return The pointer to the start of the second part of the ROM directory.
williamr@2
   669
*/
williamr@2
   670
inline const TRomDirSortInfo* TRomDir::SortInfo() const
williamr@2
   671
	{ return (const TRomDirSortInfo*)( ((TLinAddr)&iEntry) + ( (iSize+sizeof(TUint32)-1) &~ (sizeof(TUint32)-1) )); }
williamr@2
   672
williamr@2
   673
williamr@2
   674
williamr@2
   675
williamr@2
   676
/**
williamr@2
   677
Gets the TRomEntry corresponding to the file or directory located at
williamr@2
   678
the specified index position within the sorted tables.
williamr@2
   679
williamr@2
   680
@param aIndex The index of the entry within the sorted tables.
williamr@2
   681
              Note that for the purpose of this function, the two tables
williamr@2
   682
              are treated as one single table.
williamr@2
   683
              
williamr@2
   684
@return The required TRomEntry              
williamr@2
   685
*/
williamr@2
   686
inline const TRomEntry* TRomDir::SortedEntry(TInt aIndex) const
williamr@2
   687
	{
williamr@2
   688
	const TRomDirSortInfo* s = SortInfo();
williamr@2
   689
	return (const TRomEntry*)(((TLinAddr)&iEntry) + s->iEntryOffset[aIndex] * sizeof(TUint32));
williamr@2
   690
	}
williamr@2
   691
williamr@2
   692
williamr@2
   693
williamr@2
   694
williamr@2
   695
/**
williamr@2
   696
Gets the number of subdirectories in the directory.
williamr@2
   697
williamr@2
   698
@return The number of subdirectories.
williamr@2
   699
*/
williamr@2
   700
inline TInt TRomDir::SubDirCount() const
williamr@2
   701
	{ return SortInfo()->iSubDirCount; }
williamr@2
   702
williamr@2
   703
	
williamr@2
   704
	
williamr@2
   705
	
williamr@2
   706
/**
williamr@2
   707
Gets the number of files in the directory.
williamr@2
   708
williamr@2
   709
@return The number of files.
williamr@2
   710
*/	
williamr@2
   711
inline TInt TRomDir::FileCount() const
williamr@2
   712
	{ return SortInfo()->iFileCount; }
williamr@2
   713
williamr@2
   714
williamr@2
   715
williamr@2
   716
williamr@2
   717
/**
williamr@2
   718
Gets the total number of files and subdirectories in the directory.
williamr@2
   719
williamr@2
   720
@return The total number of files and subdirectories.
williamr@2
   721
*/	
williamr@2
   722
inline TInt TRomDir::EntryCount() const
williamr@2
   723
	{
williamr@2
   724
	const TRomDirSortInfo* s = SortInfo();
williamr@2
   725
	return s->iSubDirCount + s->iFileCount;
williamr@2
   726
	}
williamr@2
   727
williamr@2
   728
williamr@2
   729
williamr@2
   730
williamr@2
   731
//
williamr@2
   732
// Header of ROM image files under the new scheme. (dlls & exes)
williamr@2
   733
//
williamr@2
   734
/**
williamr@2
   735
@publishedPartner
williamr@2
   736
@released
williamr@2
   737
*/
williamr@2
   738
const TUint32 KRomImageFlagPrimary			=0x80000000u;
williamr@2
   739
williamr@2
   740
/**
williamr@2
   741
@publishedPartner
williamr@2
   742
@released
williamr@2
   743
*/
williamr@2
   744
const TUint32 KRomImageFlagVariant			=0x40000000u;
williamr@2
   745
williamr@2
   746
/**
williamr@2
   747
@publishedPartner
williamr@2
   748
@released
williamr@2
   749
*/
williamr@2
   750
const TUint32 KRomImageFlagExtension		=0x20000000u;
williamr@2
   751
williamr@2
   752
/**
williamr@2
   753
@publishedPartner
williamr@2
   754
@released
williamr@2
   755
*/
williamr@2
   756
const TUint32 KRomImageFlagDevice			=0x10000000u;
williamr@2
   757
williamr@2
   758
/**
williamr@2
   759
@publishedPartner
williamr@2
   760
@released
williamr@2
   761
*/
williamr@2
   762
const TUint32 KRomImageFlagsKernelMask		=0xf0000000u;
williamr@2
   763
williamr@2
   764
/**
williamr@2
   765
@publishedPartner
williamr@2
   766
@released
williamr@2
   767
*/
williamr@2
   768
const TUint32 KRomImageFlagSecondary		=0x08000000u;
williamr@2
   769
williamr@2
   770
/**
williamr@2
   771
@publishedPartner
williamr@2
   772
@released
williamr@2
   773
*/
williamr@2
   774
const TUint32 KRomImageFlagData				=0x04000000u;	// image has data and is not extension or variant
williamr@2
   775
williamr@2
   776
/**
williamr@2
   777
@publishedPartner
williamr@2
   778
@released
williamr@2
   779
*/
williamr@2
   780
const TUint32 KRomImageFlagDataInit			=0x02000000u;	// image or non-EXE dependencies would require data initialisation
williamr@2
   781
williamr@2
   782
/**
williamr@2
   783
@publishedPartner
williamr@2
   784
@released
williamr@2
   785
*/
williamr@2
   786
const TUint32 KRomImageFlagDataPresent		=0x01000000u;	// image or any dependencies have data
williamr@2
   787
williamr@2
   788
/**
williamr@2
   789
@publishedPartner
williamr@2
   790
@released
williamr@2
   791
*/
williamr@2
   792
const TUint32 KRomImageFlagExeInTree		=0x00800000u;	// image depends on EXE
williamr@2
   793
williamr@2
   794
/**
williamr@2
   795
@publishedPartner
williamr@2
   796
@released
williamr@2
   797
*/
williamr@2
   798
const TUint32 KRomImageFlagDll				=0x00000001u;
williamr@2
   799
williamr@2
   800
/**
williamr@2
   801
@publishedPartner
williamr@2
   802
@released
williamr@2
   803
*/
williamr@2
   804
const TUint32 KRomImageFlagFixedAddressExe	=0x00000004u;
williamr@2
   805
williamr@2
   806
/**
williamr@2
   807
@publishedPartner
williamr@2
   808
@released
williamr@2
   809
*/
williamr@2
   810
const TUint32 KRomImageABIMask				=0x00000018u;
williamr@2
   811
williamr@2
   812
/**
williamr@2
   813
@publishedPartner
williamr@2
   814
@released
williamr@2
   815
*/
williamr@2
   816
const TUint32 KRomImageABI_GCC98r2			=0x00000000u;	// for ARM
williamr@2
   817
williamr@2
   818
/**
williamr@2
   819
@publishedPartner
williamr@2
   820
@released
williamr@2
   821
*/
williamr@2
   822
const TUint32 KRomImageABI_EABI				=0x00000008u;	// for ARM
williamr@2
   823
williamr@2
   824
/**
williamr@2
   825
@publishedPartner
williamr@2
   826
@released
williamr@2
   827
*/
williamr@2
   828
const TUint32 KRomImageEptMask				=0x000000e0u;	// entry point type
williamr@2
   829
williamr@2
   830
/**
williamr@2
   831
@publishedPartner
williamr@2
   832
@released
williamr@2
   833
*/
williamr@2
   834
const TInt	  KRomImageEptShift				=5;
williamr@2
   835
williamr@2
   836
/**
williamr@2
   837
@publishedPartner
williamr@2
   838
@released
williamr@2
   839
*/
williamr@2
   840
const TUint32 KRomImageEpt_Eka1				=0x00000000u;
williamr@2
   841
williamr@2
   842
/**
williamr@2
   843
@publishedPartner
williamr@2
   844
@released
williamr@2
   845
*/
williamr@2
   846
const TUint32 KRomImageEpt_Eka2				=0x00000020u;
williamr@2
   847
williamr@2
   848
/**
williamr@2
   849
@internalTechnology
williamr@2
   850
@released
williamr@2
   851
*/
williamr@2
   852
const TUint KRomImageFlagUnpaged			=0x00000100u;
williamr@2
   853
williamr@2
   854
williamr@2
   855
/**
williamr@2
   856
@internalTechnology
williamr@2
   857
@released
williamr@2
   858
*/
williamr@2
   859
const TUint KRomImageFlagPaged				=0x00000200u;
williamr@2
   860
williamr@2
   861
williamr@2
   862
/**
williamr@2
   863
@internalTechnology
williamr@2
   864
@released
williamr@2
   865
Flag to indicate when named symbol export data present in image
williamr@2
   866
*/
williamr@2
   867
const TUint KRomImageNmdExpData				=0x00000400u;
williamr@2
   868
williamr@2
   869
/**
williamr@2
   870
@internalTechnology
williamr@2
   871
@released
williamr@2
   872
Flag to indicate debuggability of this image.
williamr@2
   873
*/
williamr@2
   874
const TUint KRomImageDebuggable			=0x00000800u;
williamr@2
   875
williamr@2
   876
class TDllRefTable;
williamr@2
   877
williamr@2
   878
/**
williamr@2
   879
@publishedPartner
williamr@2
   880
@released
williamr@2
   881
williamr@2
   882
The format of the header for a ROM file image.
williamr@2
   883
williamr@2
   884
The structure of a file image is based on the native image file format,
williamr@2
   885
but this can be compressed in the ROM image, as the relocation information
williamr@2
   886
and the .idata section are discarded once the file is fixed up.
williamr@2
   887
williamr@2
   888
The Import Address Table (IAT) is also removed and each reference to
williamr@2
   889
an IAT entry is converted into a reference to the associated Export Directory
williamr@2
   890
entry in the corresponding DLL.
williamr@2
   891
williamr@2
   892
ROM file images have the following sections:
williamr@2
   893
williamr@2
   894
@code
williamr@2
   895
The header (as described by this structure)
williamr@2
   896
.text  - code
williamr@2
   897
.rdata - constant (read-only) data
williamr@2
   898
.edata - the export directory
williamr@2
   899
.data  - initialised data that is copied to RAM when the executable runs.
williamr@2
   900
The DLL reference table (a TDllRefTable structure), which is a list of DLLs
williamr@2
   901
used by the executable.
williamr@2
   902
@endcode
williamr@2
   903
williamr@2
   904
@see TRomImageHeader::iDllRefTable
williamr@2
   905
@see TDllRefTable
williamr@2
   906
*/
williamr@2
   907
class TRomImageHeader
williamr@2
   908
	{
williamr@2
   909
public:
williamr@2
   910
williamr@2
   911
    /**
williamr@2
   912
    The UID1 for the file.
williamr@2
   913
    
williamr@2
   914
    @see TUidType
williamr@2
   915
    */
williamr@2
   916
	TUint32	iUid1;
williamr@2
   917
williamr@2
   918
	
williamr@2
   919
    /**
williamr@2
   920
    The UID2 for the file.
williamr@2
   921
williamr@2
   922
    @see TUidType
williamr@2
   923
    */
williamr@2
   924
	TUint32	iUid2;
williamr@2
   925
williamr@2
   926
	
williamr@2
   927
    /**
williamr@2
   928
    The UID3 for the file.
williamr@2
   929
williamr@2
   930
    @see TUidType
williamr@2
   931
    */
williamr@2
   932
	TUint32	iUid3;
williamr@2
   933
	
williamr@2
   934
	
williamr@2
   935
	/**
williamr@2
   936
	The checksum of the UIDs
williamr@2
   937
	*/
williamr@2
   938
	TUint32	iUidChecksum;
williamr@2
   939
	
williamr@2
   940
	
williamr@2
   941
	/**
williamr@2
   942
	The entrypoint of this executable, i.e. the offset within this file.
williamr@2
   943
	*/
williamr@2
   944
	TUint32 iEntryPoint;
williamr@2
   945
	
williamr@2
   946
	
williamr@2
   947
	/**
williamr@2
   948
	This executables code address.
williamr@2
   949
	*/
williamr@2
   950
	TUint32 iCodeAddress;
williamr@2
   951
williamr@2
   952
williamr@2
   953
	/**
williamr@2
   954
	This executables data address.
williamr@2
   955
	*/
williamr@2
   956
	TUint32 iDataAddress;
williamr@2
   957
williamr@2
   958
	
williamr@2
   959
	/**
williamr@2
   960
	The size of the code.
williamr@2
   961
	
williamr@2
   962
	This includes the size of the constant data.
williamr@2
   963
	*/
williamr@2
   964
	TInt iCodeSize;
williamr@2
   965
	
williamr@2
   966
	
williamr@2
   967
	/**
williamr@2
   968
	The size of the executable code.
williamr@2
   969
	
williamr@2
   970
	This is the value of (iCodeSize - the size of the constant data).
williamr@2
   971
	*/
williamr@2
   972
	TInt iTextSize;
williamr@2
   973
	
williamr@2
   974
	
williamr@2
   975
	/**
williamr@2
   976
	The data size.
williamr@2
   977
	*/
williamr@2
   978
	TInt iDataSize;
williamr@2
   979
	
williamr@2
   980
	
williamr@2
   981
	/**
williamr@2
   982
	The size of the .bss (the zero-filled data)
williamr@2
   983
	*/
williamr@2
   984
	TInt iBssSize;
williamr@2
   985
	
williamr@2
   986
	
williamr@2
   987
	/**
williamr@2
   988
	The minimum size of the heap.
williamr@2
   989
	*/
williamr@2
   990
	TInt iHeapSizeMin;
williamr@2
   991
	
williamr@2
   992
	
williamr@2
   993
	/**
williamr@2
   994
	The maximum size of the heap.
williamr@2
   995
	*/
williamr@2
   996
	TInt iHeapSizeMax;
williamr@2
   997
	
williamr@2
   998
	
williamr@2
   999
	/**
williamr@2
  1000
	The size of the stack.
williamr@2
  1001
	*/
williamr@2
  1002
	TInt iStackSize;
williamr@2
  1003
	
williamr@2
  1004
	
williamr@2
  1005
	/**
williamr@2
  1006
	The address of the DLL reference table.
williamr@2
  1007
	
williamr@2
  1008
	@see TDllRefTable
williamr@2
  1009
	*/
williamr@2
  1010
	TDllRefTable* iDllRefTable;
williamr@2
  1011
	
williamr@2
  1012
	
williamr@2
  1013
	/**
williamr@2
  1014
	The number of functions exported by this executable.
williamr@2
  1015
	*/
williamr@2
  1016
	TInt iExportDirCount;
williamr@2
  1017
	
williamr@2
  1018
	
williamr@2
  1019
	/**
williamr@2
  1020
	The address of the export directory, which is a simple list of functions
williamr@2
  1021
	that can be indexed by ordinal.
williamr@2
  1022
	*/
williamr@2
  1023
	TUint32 iExportDir;
williamr@2
  1024
	
williamr@2
  1025
	
williamr@2
  1026
	/**
williamr@2
  1027
	Security information, details of which are internal to Symbian.
williamr@2
  1028
	*/
williamr@2
  1029
	SSecurityInfo iS;
williamr@2
  1030
	
williamr@2
  1031
	
williamr@2
  1032
	/**
williamr@2
  1033
	The version number of the tools used to generate this file image.
williamr@2
  1034
	*/
williamr@2
  1035
	TVersion iToolsVersion;
williamr@2
  1036
	
williamr@2
  1037
	
williamr@2
  1038
	/**
williamr@2
  1039
	Flags field.
williamr@2
  1040
	*/
williamr@2
  1041
	TUint32 iFlags;
williamr@2
  1042
	
williamr@2
  1043
	
williamr@2
  1044
	/**
williamr@2
  1045
	The priority of the process.
williamr@2
  1046
	*/
williamr@2
  1047
	TProcessPriority iPriority;
williamr@2
  1048
	
williamr@2
  1049
	
williamr@2
  1050
	/**
williamr@2
  1051
	The virtual base address of the data and .bss, where the process expects
williamr@2
  1052
	its data chunk to be when it runs.
williamr@2
  1053
	*/
williamr@2
  1054
	TUint32 iDataBssLinearBase;
williamr@2
  1055
	
williamr@2
  1056
	
williamr@2
  1057
	/**
williamr@2
  1058
	The address of the TRomEntry for the next extension file.
williamr@2
  1059
	
williamr@2
  1060
	This field is only used if there is more than one extension.
williamr@2
  1061
	The first extension is found using the TRomHeader.
williamr@2
  1062
	
williamr@2
  1063
	@see TRomEntry
williamr@2
  1064
	@see TRomHeader
williamr@2
  1065
	*/
williamr@2
  1066
	TLinAddr iNextExtension;
williamr@2
  1067
	
williamr@2
  1068
	
williamr@2
  1069
	/**
williamr@2
  1070
	A number denoting the hardware Variant.
williamr@2
  1071
	
williamr@2
  1072
	It is used to determine whether this executable can run
williamr@2
  1073
	on a given system.
williamr@2
  1074
	*/
williamr@2
  1075
	TUint32 iHardwareVariant;
williamr@2
  1076
	
williamr@2
  1077
	
williamr@2
  1078
	/**
williamr@2
  1079
	The total data size, including space reserved for DLLs
williamr@2
  1080
	*/
williamr@2
  1081
	TInt iTotalDataSize;	// data+bss + space reserved for DLLs
williamr@2
  1082
	
williamr@2
  1083
	
williamr@2
  1084
	/**
williamr@2
  1085
	The module version.
williamr@2
  1086
	*/
williamr@2
  1087
	TUint32 iModuleVersion;
williamr@2
  1088
williamr@2
  1089
	/**
williamr@2
  1090
	The address of the Exception Descriptor if present.
williamr@2
  1091
	0 if no Exception descriptor
williamr@2
  1092
	*/
williamr@2
  1093
	TLinAddr iExceptionDescriptor;
williamr@2
  1094
	};	
williamr@2
  1095
	
williamr@2
  1096
	
williamr@2
  1097
	
williamr@2
  1098
	
williamr@2
  1099
//
williamr@2
  1100
// Header for extension ROMs
williamr@2
  1101
// Equivalent to TRomHeader
williamr@2
  1102
//
williamr@2
  1103
williamr@2
  1104
/**
williamr@2
  1105
@publishedPartner
williamr@2
  1106
@released
williamr@2
  1107
williamr@2
  1108
The format of a ROM extension header.
williamr@2
  1109
*/
williamr@2
  1110
class TExtensionRomHeader
williamr@2
  1111
	{	
williamr@2
  1112
public:
williamr@2
  1113
    
williamr@2
  1114
    /**
williamr@2
  1115
    The extension ROM image version number.
williamr@2
  1116
    */
williamr@2
  1117
	TVersion iVersion;
williamr@2
  1118
	
williamr@2
  1119
	
williamr@2
  1120
	/**
williamr@2
  1121
	The virtual address of the base of the extension ROM.
williamr@2
  1122
	*/
williamr@2
  1123
	TLinAddr iRomBase;
williamr@2
  1124
	
williamr@2
  1125
	
williamr@2
  1126
	/**
williamr@2
  1127
	The size of the extension ROM image.
williamr@2
  1128
	*/
williamr@2
  1129
	TUint32 iRomSize;
williamr@2
  1130
	
williamr@2
  1131
	
williamr@2
  1132
	/**
williamr@2
  1133
	The virtual address of the TRomRootDirList structure for
williamr@2
  1134
	the combined kernel+extension ROM image.
williamr@2
  1135
	
williamr@2
  1136
	@see TRomRootDirList
williamr@2
  1137
	*/
williamr@2
  1138
	TLinAddr iRomRootDirectoryList;
williamr@2
  1139
	
williamr@2
  1140
	
williamr@2
  1141
	/**
williamr@2
  1142
	The date and time that the extension ROM image was built, in microseconds.
williamr@2
  1143
	*/
williamr@2
  1144
	TInt64 iTime;
williamr@2
  1145
	
williamr@2
  1146
	
williamr@2
  1147
	/**
williamr@2
  1148
	The extension ROM image checksum
williamr@2
  1149
	*/
williamr@2
  1150
	TUint iCheckSum;
williamr@2
  1151
williamr@2
  1152
williamr@2
  1153
	//
williamr@2
  1154
	/**
williamr@2
  1155
	Copy of the kernel ROM image version number.
williamr@2
  1156
	*/
williamr@2
  1157
	TVersion iKernelVersion;
williamr@2
  1158
	
williamr@2
  1159
	
williamr@2
  1160
	/**
williamr@2
  1161
	Copy of the kernel ROM image build date & time.
williamr@2
  1162
	*/
williamr@2
  1163
	TInt64 iKernelTime;
williamr@2
  1164
	
williamr@2
  1165
	
williamr@2
  1166
	/**
williamr@2
  1167
	Copy of the kernel ROM image checksum.
williamr@2
  1168
	*/
williamr@2
  1169
	TUint iKernelCheckSum;
williamr@2
  1170
	//
williamr@2
  1171
williamr@2
  1172
williamr@2
  1173
	/**
williamr@2
  1174
	The type of compression used for the image.
williamr@2
  1175
	
williamr@2
  1176
	This is a UID, or 0 if there is no compression.
williamr@2
  1177
	*/
williamr@2
  1178
	TUint32 iCompressionType;	// compression type used
williamr@2
  1179
	
williamr@2
  1180
	
williamr@2
  1181
	/**
williamr@2
  1182
	The size of the image after compression.
williamr@2
  1183
	*/
williamr@2
  1184
	TUint32 iCompressedSize;	// Size after compression
williamr@2
  1185
	
williamr@2
  1186
	
williamr@2
  1187
	/**
williamr@2
  1188
	The size of the image before compression.
williamr@2
  1189
	*/
williamr@2
  1190
	TUint32 iUncompressedSize;	// Size before compression
williamr@2
  1191
	
williamr@2
  1192
	
williamr@2
  1193
	/**
williamr@2
  1194
	The virtual address of the TRomExceptionSearchTable structure.
williamr@2
  1195
williamr@2
  1196
	@see TRomExceptionSearchTable
williamr@2
  1197
	*/
williamr@2
  1198
	TLinAddr iRomExceptionSearchTable;
williamr@2
  1199
williamr@2
  1200
	
williamr@2
  1201
	/**
williamr@2
  1202
	Reserved for future use.
williamr@2
  1203
	*/
williamr@2
  1204
	TUint32 iPad[32-15]; // sizeof(TExtensionRomHeader)=128
williamr@2
  1205
	};
williamr@2
  1206
williamr@2
  1207
williamr@2
  1208
williamr@2
  1209
williamr@2
  1210
williamr@2
  1211
/**
williamr@2
  1212
@publishedPartner
williamr@2
  1213
@released
williamr@2
  1214
williamr@2
  1215
A list of DLLs that an executable needs in order to run.
williamr@2
  1216
williamr@2
  1217
Each DLL referenced in this list has a pointer to a TRomImageHeader structure
williamr@2
  1218
that describes that DLL. This allows the DLL loader to search
williamr@2
  1219
a dependency chain, and ensure that all required DLLs are loaded.
williamr@2
  1220
williamr@2
  1221
@see TRomImageHeader
williamr@2
  1222
*/
williamr@2
  1223
class TDllRefTable
williamr@2
  1224
	{
williamr@2
  1225
public:
williamr@2
  1226
williamr@2
  1227
    /**
williamr@2
  1228
    Flags field.
williamr@2
  1229
    */
williamr@2
  1230
	TUint16 iFlags;
williamr@2
  1231
	
williamr@2
  1232
	
williamr@2
  1233
	/**
williamr@2
  1234
	The number of referenced DLLs in this list.
williamr@2
  1235
	*/
williamr@2
  1236
	TUint16 iNumberOfEntries;
williamr@2
  1237
	
williamr@2
  1238
	
williamr@2
  1239
	/**
williamr@2
  1240
	A set of pointers to the TRomImageHeader structures for each referenced DLL.
williamr@2
  1241
	*/
williamr@2
  1242
	TRomImageHeader* iEntry[1];
williamr@2
  1243
	};
williamr@2
  1244
williamr@2
  1245
#endif