1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kerneltest/f32test/loader/security/dlltree.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,806 @@
1.4 +// Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// \F32TEST\loader\gen\dlltree.h
1.18 +//
1.19 +//
1.20 +
1.21 +#ifndef __DLLTREE_H__
1.22 +#define __DLLTREE_H__
1.23 +#include <e32std.h>
1.24 +
1.25 +//#define USESYSLIBS
1.26 +
1.27 +
1.28 +#ifdef USESYSLIBS
1.29 +_LIT(KDllfilename,"Z:\\System\\Libs\\DLLTS");
1.30 +#if defined WIN32
1.31 +_LIT(KNewDllName, "DLLTS");
1.32 +#else
1.33 +_LIT(KNewDllName, "C:\\System\\Libs\\DLLTS");
1.34 +#endif
1.35 +_LIT(KDllExt,".DLL");
1.36 +
1.37 +_LIT(KExefilename,"Z:\\System\\Libs\\EXETS");
1.38 +#if defined WIN32
1.39 +_LIT(KNewExeName, "EXETS");
1.40 +#else
1.41 +_LIT(KNewExeName, "C:\\System\\Libs\\EXETS");
1.42 +#endif
1.43 +_LIT(KExeExt,".EXE");
1.44 +#if defined WIN32
1.45 +_LIT(KDll6,"DLLTS6.dll");
1.46 +_LIT(KDll7,"DLLTS7.dll");
1.47 +_LIT(KDll11,"DLLTS11.dll");
1.48 +#else
1.49 +_LIT(KDll6,"C:\\System\\Libs\\DLLTS6.dll");
1.50 +_LIT(KDll7,"C:\\System\\Libs\\DLLTS7.dll");
1.51 +_LIT(KDll11,"C:\\System\\Libs\\DLLTS11.dll");
1.52 +#endif
1.53 +_LIT(KSystemLibs,"C:\\System\\Libs\\");
1.54 +_LIT(KAnyDirDll,"C:\\Anyoldname\\System\\Libs\\DLLTS");
1.55 +_LIT(KAnyDirExe,"C:\\Anyoldname\\System\\Libs\\EXETS");
1.56 +_LIT(KAnyDirShort,"C:\\Anyoldname\\");
1.57 +_LIT(KJDllName,"N:\\System\\Libs\\DLLTS");
1.58 +_LIT(KJExeName,"N:\\System\\Libs\\EXETS");
1.59 +
1.60 +#else //USESYSLIBS
1.61 +
1.62 +_LIT(KDllfilename,"Z:\\sys\\bin\\DLLTS");//this will need to change
1.63 +#if defined WIN32
1.64 +_LIT(KNewDllName, "DLLTS");
1.65 +#else
1.66 +_LIT(KNewDllName, "C:\\sys\\bin\\DLLTS");
1.67 +#endif
1.68 +_LIT(KDllExt,".DLL");
1.69 +_LIT(KExefilename,"Z:\\sys\\bin\\EXETS");//this will need to change
1.70 +#if defined WIN32
1.71 +_LIT(KNewExeName, "EXETS");
1.72 +#else
1.73 +_LIT(KNewExeName, "C:\\sys\\bin\\EXETS");
1.74 +#endif
1.75 +_LIT(KExeExt,".EXE");
1.76 +#if defined WIN32
1.77 +_LIT(KDll6,"DLLTS6.dll");
1.78 +_LIT(KDll7,"DLLTS7.dll");
1.79 +_LIT(KDll11,"DLLTS11.dll");
1.80 +#else
1.81 +_LIT(KDll6,"C:\\sys\\bin\\DLLTS6.dll");
1.82 +_LIT(KDll7,"C:\\sys\\bin\\DLLTS7.dll");
1.83 +_LIT(KDll11,"C:\\sys\\bin\\DLLTS11.dll");
1.84 +#endif
1.85 +_LIT(KSystemLibs,"C:\\sys\\bin\\");
1.86 +_LIT(KAnyDirDll,"C:\\Anyoldname\\sys\\bin\\DLLTS");
1.87 +_LIT(KAnyDirExe,"C:\\Anyoldname\\sys\\bin\\EXETS");
1.88 +_LIT(KAnyDirShort,"C:\\Anyoldname\\");
1.89 +_LIT(KJDllName,"N:\\sys\\bin\\DLLTS");
1.90 +_LIT(KJExeName,"N:\\sys\\bin\\EXETS");
1.91 +_LIT(KJDllNameOnly,"DLLTS");
1.92 +_LIT(KJExeNameOnly,"EXETS");
1.93 +#endif
1.94 +
1.95 +class MDllList;
1.96 +
1.97 +#if defined(__DLLNUM0)
1.98 +#define DLLNUM 0
1.99 +#define INITFUNC Init0
1.100 +#define CHKCFUNC ChkC0
1.101 +#define BLKIFUNC BlkI0
1.102 +#define RBLKIFUNC RBlkI0
1.103 +#define CHKDEPS(r) (\
1.104 + ((r)=ChkC1())!=0 ||\
1.105 + ((r)=ChkC2())!=0 ||\
1.106 + ((r)=0)!=0 )
1.107 +#define INITDEPS(r,l) (\
1.108 + ((r)=Init1(l))!=0 ||\
1.109 + ((r)=Init2(l))!=0 ||\
1.110 + ((r)=0)!=0 )
1.111 +#define RBLKIFUNC_DEPS(i,g) {\
1.112 + (i)=RBlkI1(i,g);\
1.113 + (i)=RBlkI2(i,g);\
1.114 + }
1.115 +#define __MODULE_EXPORT EXPORT_C
1.116 +#define __MODULE_IMPORT IMPORT_C
1.117 +extern "C" IMPORT_C TInt Init1(MDllList&);
1.118 +extern "C" IMPORT_C TInt ChkC1();
1.119 +extern "C" IMPORT_C TInt RBlkI1(TInt, TInt);
1.120 +extern "C" IMPORT_C TInt Init2(MDllList&);
1.121 +extern "C" IMPORT_C TInt ChkC2();
1.122 +extern "C" IMPORT_C TInt RBlkI2(TInt, TInt);
1.123 +
1.124 +
1.125 +#elif defined(__DLLNUM1)
1.126 +#define DLLNUM 1
1.127 +#define INITFUNC Init1
1.128 +#define CHKCFUNC ChkC1
1.129 +#define BLKIFUNC BlkI1
1.130 +#define RBLKIFUNC RBlkI1
1.131 +#define CHKDEPS(r) (\
1.132 + ((r)=0)!=0 )
1.133 +#define INITDEPS(r,l) (\
1.134 + ((r)=0)!=0 )
1.135 +#define RBLKIFUNC_DEPS(i,g) {\
1.136 + }
1.137 +#define __MODULE_EXPORT EXPORT_C
1.138 +#define __MODULE_IMPORT IMPORT_C
1.139 +
1.140 +
1.141 +#elif defined(__DLLNUM2)
1.142 +#define DLLNUM 2
1.143 +#define INITFUNC Init2
1.144 +#define CHKCFUNC ChkC2
1.145 +#define BLKIFUNC BlkI2
1.146 +#define RBLKIFUNC RBlkI2
1.147 +#define CHKDEPS(r) (\
1.148 + ((r)=0)!=0 )
1.149 +#define INITDEPS(r,l) (\
1.150 + ((r)=0)!=0 )
1.151 +#define RBLKIFUNC_DEPS(i,g) {\
1.152 + }
1.153 +#define __MODULE_EXPORT EXPORT_C
1.154 +#define __MODULE_IMPORT IMPORT_C
1.155 +
1.156 +
1.157 +#elif defined(__DLLNUM3)
1.158 +#define DLLNUM 3
1.159 +#define INITFUNC Init3
1.160 +#define CHKCFUNC ChkC3
1.161 +#define BLKIFUNC BlkI3
1.162 +#define RBLKIFUNC RBlkI3
1.163 +#define CHKDEPS(r) (\
1.164 + ((r)=ChkC4())!=0 ||\
1.165 + ((r)=ChkC5())!=0 ||\
1.166 + ((r)=0)!=0 )
1.167 +#define INITDEPS(r,l) (\
1.168 + ((r)=Init4(l))!=0 ||\
1.169 + ((r)=Init5(l))!=0 ||\
1.170 + ((r)=0)!=0 )
1.171 +#define RBLKIFUNC_DEPS(i,g) {\
1.172 + (i)=RBlkI4(i,g);\
1.173 + (i)=RBlkI5(i,g);\
1.174 + }
1.175 +#define __MODULE_HAS_DATA
1.176 +#define __MODULE_EXPORT EXPORT_C
1.177 +#define __MODULE_IMPORT IMPORT_C
1.178 +extern "C" IMPORT_C TInt Init4(MDllList&);
1.179 +extern "C" IMPORT_C TInt ChkC4();
1.180 +extern "C" IMPORT_C TInt RBlkI4(TInt, TInt);
1.181 +extern "C" IMPORT_C TInt Init5(MDllList&);
1.182 +extern "C" IMPORT_C TInt ChkC5();
1.183 +extern "C" IMPORT_C TInt RBlkI5(TInt, TInt);
1.184 +
1.185 +
1.186 +#elif defined(__DLLNUM4)
1.187 +#define DLLNUM 4
1.188 +#define INITFUNC Init4
1.189 +#define CHKCFUNC ChkC4
1.190 +#define BLKIFUNC BlkI4
1.191 +#define RBLKIFUNC RBlkI4
1.192 +#define CHKDEPS(r) (\
1.193 + ((r)=0)!=0 )
1.194 +#define INITDEPS(r,l) (\
1.195 + ((r)=0)!=0 )
1.196 +#define RBLKIFUNC_DEPS(i,g) {\
1.197 + }
1.198 +#define __MODULE_HAS_DATA
1.199 +#define __MODULE_EXPORT EXPORT_C
1.200 +#define __MODULE_IMPORT IMPORT_C
1.201 +
1.202 +
1.203 +#elif defined(__DLLNUM5)
1.204 +#define DLLNUM 5
1.205 +#define INITFUNC Init5
1.206 +#define CHKCFUNC ChkC5
1.207 +#define BLKIFUNC BlkI5
1.208 +#define RBLKIFUNC RBlkI5
1.209 +#define CHKDEPS(r) (\
1.210 + ((r)=0)!=0 )
1.211 +#define INITDEPS(r,l) (\
1.212 + ((r)=0)!=0 )
1.213 +#define RBLKIFUNC_DEPS(i,g) {\
1.214 + }
1.215 +#define __MODULE_HAS_DATA
1.216 +#define __MODULE_EXPORT EXPORT_C
1.217 +#define __MODULE_IMPORT IMPORT_C
1.218 +
1.219 +
1.220 +#elif defined(__DLLNUM6)
1.221 +#define DLLNUM 6
1.222 +#define INITFUNC Init6
1.223 +#define CHKCFUNC ChkC6
1.224 +#define BLKIFUNC BlkI6
1.225 +#define RBLKIFUNC RBlkI6
1.226 +#define CHKDEPS(r) (\
1.227 + ((r)=ChkC0())!=0 ||\
1.228 + ((r)=ChkC3())!=0 ||\
1.229 + ((r)=0)!=0 )
1.230 +#define INITDEPS(r,l) (\
1.231 + ((r)=Init0(l))!=0 ||\
1.232 + ((r)=Init3(l))!=0 ||\
1.233 + ((r)=0)!=0 )
1.234 +#define RBLKIFUNC_DEPS(i,g) {\
1.235 + (i)=RBlkI0(i,g);\
1.236 + (i)=RBlkI3(i,g);\
1.237 + }
1.238 +#define __MODULE_EXPORT EXPORT_C
1.239 +#define __MODULE_IMPORT IMPORT_C
1.240 +extern "C" IMPORT_C TInt Init0(MDllList&);
1.241 +extern "C" IMPORT_C TInt ChkC0();
1.242 +extern "C" IMPORT_C TInt RBlkI0(TInt, TInt);
1.243 +extern "C" IMPORT_C TInt Init3(MDllList&);
1.244 +extern "C" IMPORT_C TInt ChkC3();
1.245 +extern "C" IMPORT_C TInt RBlkI3(TInt, TInt);
1.246 +
1.247 +
1.248 +#elif defined(__DLLNUM7)
1.249 +#define DLLNUM 7
1.250 +#define INITFUNC Init7
1.251 +#define CHKCFUNC ChkC7
1.252 +#define BLKIFUNC BlkI7
1.253 +#define RBLKIFUNC RBlkI7
1.254 +#define CHKDEPS(r) (\
1.255 + ((r)=ChkC8())!=0 ||\
1.256 + ((r)=ChkC9())!=0 ||\
1.257 + ((r)=0)!=0 )
1.258 +#define INITDEPS(r,l) (\
1.259 + ((r)=Init8(l))!=0 ||\
1.260 + ((r)=Init9(l))!=0 ||\
1.261 + ((r)=0)!=0 )
1.262 +#define RBLKIFUNC_DEPS(i,g) {\
1.263 + (i)=RBlkI8(i,g);\
1.264 + (i)=RBlkI9(i,g);\
1.265 + }
1.266 +#define __MODULE_EXPORT EXPORT_C
1.267 +#define __MODULE_IMPORT IMPORT_C
1.268 +extern "C" IMPORT_C TInt Init8(MDllList&);
1.269 +extern "C" IMPORT_C TInt ChkC8();
1.270 +extern "C" IMPORT_C TInt RBlkI8(TInt, TInt);
1.271 +extern "C" IMPORT_C TInt Init9(MDllList&);
1.272 +extern "C" IMPORT_C TInt ChkC9();
1.273 +extern "C" IMPORT_C TInt RBlkI9(TInt, TInt);
1.274 +
1.275 +
1.276 +#elif defined(__DLLNUM8)
1.277 +#define DLLNUM 8
1.278 +#define INITFUNC Init8
1.279 +#define CHKCFUNC ChkC8
1.280 +#define BLKIFUNC BlkI8
1.281 +#define RBLKIFUNC RBlkI8
1.282 +#define CHKDEPS(r) (\
1.283 + ((r)=ChkC10())!=0 ||\
1.284 + ((r)=0)!=0 )
1.285 +#define INITDEPS(r,l) (\
1.286 + ((r)=Init10(l))!=0 ||\
1.287 + ((r)=0)!=0 )
1.288 +#define RBLKIFUNC_DEPS(i,g) {\
1.289 + (i)=RBlkI10(i,g);\
1.290 + }
1.291 +#define __MODULE_EXPORT EXPORT_C
1.292 +#define __MODULE_IMPORT IMPORT_C
1.293 +extern "C" IMPORT_C TInt Init10(MDllList&);
1.294 +extern "C" IMPORT_C TInt ChkC10();
1.295 +extern "C" IMPORT_C TInt RBlkI10(TInt, TInt);
1.296 +
1.297 +
1.298 +#elif defined(__DLLNUM9)
1.299 +#define DLLNUM 9
1.300 +#define INITFUNC Init9
1.301 +#define CHKCFUNC ChkC9
1.302 +#define BLKIFUNC BlkI9
1.303 +#define RBLKIFUNC RBlkI9
1.304 +#define CHKDEPS(r) (\
1.305 + ((r)=ChkC10())!=0 ||\
1.306 + ((r)=0)!=0 )
1.307 +#define INITDEPS(r,l) (\
1.308 + ((r)=Init10(l))!=0 ||\
1.309 + ((r)=0)!=0 )
1.310 +#define RBLKIFUNC_DEPS(i,g) {\
1.311 + (i)=RBlkI10(i,g);\
1.312 + }
1.313 +#define __MODULE_EXPORT EXPORT_C
1.314 +#define __MODULE_IMPORT IMPORT_C
1.315 +extern "C" IMPORT_C TInt Init10(MDllList&);
1.316 +extern "C" IMPORT_C TInt ChkC10();
1.317 +extern "C" IMPORT_C TInt RBlkI10(TInt, TInt);
1.318 +
1.319 +
1.320 +#elif defined(__DLLNUM10)
1.321 +#define DLLNUM 10
1.322 +#define INITFUNC Init10
1.323 +#define CHKCFUNC ChkC10
1.324 +#define BLKIFUNC BlkI10
1.325 +#define RBLKIFUNC RBlkI10
1.326 +#define CHKDEPS(r) (\
1.327 + ((r)=0)!=0 )
1.328 +#define INITDEPS(r,l) (\
1.329 + ((r)=0)!=0 )
1.330 +#define RBLKIFUNC_DEPS(i,g) {\
1.331 + }
1.332 +#define __MODULE_EXPORT EXPORT_C
1.333 +#define __MODULE_IMPORT IMPORT_C
1.334 +
1.335 +
1.336 +
1.337 +
1.338 +#elif defined(__DLLNUM11)
1.339 +#define DLLNUM 11
1.340 +#define INITFUNC Init11
1.341 +#define CHKCFUNC ChkC11
1.342 +#define BLKIFUNC BlkI11
1.343 +#define RBLKIFUNC RBlkI11
1.344 +#define CHKDEPS(r) (\
1.345 + ((r)=ChkC12())!=0 ||\
1.346 + ((r)=0)!=0 )
1.347 +#define INITDEPS(r,l) (\
1.348 + ((r)=Init12(l))!=0 ||\
1.349 + ((r)=0)!=0 )
1.350 +#define RBLKIFUNC_DEPS(i,g) {\
1.351 + (i)=RBlkI12(i,g);\
1.352 + }
1.353 +#define __DLL_IN_CYCLE
1.354 +#define __MODULE_EXPORT EXPORT_C
1.355 +#define __MODULE_IMPORT IMPORT_C
1.356 +extern "C" IMPORT_C TInt Init12(MDllList&);
1.357 +extern "C" IMPORT_C TInt ChkC12();
1.358 +extern "C" IMPORT_C TInt RBlkI12(TInt, TInt);
1.359 +
1.360 +
1.361 +#elif defined(__DLLNUM12)
1.362 +#define DLLNUM 12
1.363 +#define INITFUNC Init12
1.364 +#define CHKCFUNC ChkC12
1.365 +#define BLKIFUNC BlkI12
1.366 +#define RBLKIFUNC RBlkI12
1.367 +#define CHKDEPS(r) (\
1.368 + ((r)=ChkC13())!=0 ||\
1.369 + ((r)=ChkC7())!=0 ||\
1.370 + ((r)=0)!=0 )
1.371 +#define INITDEPS(r,l) (\
1.372 + ((r)=Init13(l))!=0 ||\
1.373 + ((r)=Init7(l))!=0 ||\
1.374 + ((r)=0)!=0 )
1.375 +#define RBLKIFUNC_DEPS(i,g) {\
1.376 + (i)=RBlkI13(i,g);\
1.377 + (i)=RBlkI7(i,g);\
1.378 + }
1.379 +#define __DLL_IN_CYCLE
1.380 +#define __MODULE_EXPORT EXPORT_C
1.381 +#define __MODULE_IMPORT IMPORT_C
1.382 +extern "C" IMPORT_C TInt Init13(MDllList&);
1.383 +extern "C" IMPORT_C TInt ChkC13();
1.384 +extern "C" IMPORT_C TInt RBlkI13(TInt, TInt);
1.385 +extern "C" IMPORT_C TInt Init7(MDllList&);
1.386 +extern "C" IMPORT_C TInt ChkC7();
1.387 +extern "C" IMPORT_C TInt RBlkI7(TInt, TInt);
1.388 +
1.389 +
1.390 +#elif defined(__DLLNUM13)
1.391 +#define DLLNUM 13
1.392 +#define INITFUNC Init13
1.393 +#define CHKCFUNC ChkC13
1.394 +#define BLKIFUNC BlkI13
1.395 +#define RBLKIFUNC RBlkI13
1.396 +#define CHKDEPS(r) (\
1.397 + ((r)=ChkC11())!=0 ||\
1.398 + ((r)=0)!=0 )
1.399 +#define INITDEPS(r,l) (\
1.400 + ((r)=Init11(l))!=0 ||\
1.401 + ((r)=0)!=0 )
1.402 +#define RBLKIFUNC_DEPS(i,g) {\
1.403 + (i)=RBlkI11(i,g);\
1.404 + }
1.405 +#define __DLL_IN_CYCLE
1.406 +#define __MODULE_EXPORT EXPORT_C
1.407 +#define __MODULE_IMPORT IMPORT_C
1.408 +extern "C" IMPORT_C TInt Init11(MDllList&);
1.409 +extern "C" IMPORT_C TInt ChkC11();
1.410 +extern "C" IMPORT_C TInt RBlkI11(TInt, TInt);
1.411 +
1.412 +
1.413 +#elif defined(__DLLNUM14)
1.414 +#define DLLNUM 14
1.415 +#define EXENUM 14
1.416 +_LIT(KServerName, "ExeA");
1.417 +#define INITFUNC Init14
1.418 +#define CHKCFUNC ChkC14
1.419 +#define BLKIFUNC BlkI14
1.420 +#define RBLKIFUNC RBlkI14 //need to sort out the rest of this dll
1.421 +#define CHKDEPS(r) (\
1.422 + ((r)=ChkC6())!=0 ||\
1.423 +// ((r)=0)!=0 )
1.424 +#define INITDEPS(r,l) (\
1.425 + ((r)=Init6(l))!=0 ||\
1.426 + ((r)=0)!=0 )
1.427 +#define RBLKIFUNC_DEPS(i,g) {\
1.428 + (i)=RBlkI6(i,g);\
1.429 + }
1.430 +#define __MODULE_EXPORT EXPORT_C
1.431 +#define __MODULE_IMPORT IMPORT_C
1.432 +extern "C" IMPORT_C TInt Init6(MDllList&);
1.433 +extern "C" IMPORT_C TInt ChkC6();
1.434 +extern "C" IMPORT_C TInt RBlkI6(TInt, TInt);
1.435 +
1.436 +
1.437 +#elif defined(__DLLNUM15)
1.438 +#define DLLNUM 15
1.439 +#define EXENUM 15
1.440 +_LIT(KServerName, "ExeB");
1.441 +#define INITFUNC Init15
1.442 +#define CHKCFUNC ChkC15
1.443 +#define BLKIFUNC BlkI15
1.444 +#define RBLKIFUNC RBlkI15 //need to sort out the rest of this dll
1.445 +#define CHKDEPS(r) (\
1.446 + ((r)=ChkC11())!=0 ||\
1.447 + ((r)=0)!=0 )
1.448 +#define INITDEPS(r,l) (\
1.449 + ((r)=Init11(l))!=0 ||\
1.450 + ((r)=0)!=0 )
1.451 +#define RBLKIFUNC_DEPS(i,g) {\
1.452 + (i)=RBlkI11(i,g);\
1.453 + }
1.454 +#define __MODULE_EXPORT
1.455 +#define __MODULE_IMPORT
1.456 +extern "C" IMPORT_C TInt Init11(MDllList&);
1.457 +extern "C" IMPORT_C TInt ChkC11();
1.458 +extern "C" IMPORT_C TInt RBlkI11(TInt, TInt);
1.459 +#endif
1.460 +
1.461 +const TInt KNumModules=16;
1.462 +
1.463 +//sorted up to here
1.464 +
1.465 +
1.466 +
1.467 +static const TText* const ModuleName[KNumModules] =
1.468 + {
1.469 + (const TText*)L"STree0", /*0*/
1.470 + (const TText*)L"STree1", /*1*/
1.471 + (const TText*)L"STree2", /*2*/
1.472 + (const TText*)L"SDTree3", /*3*/
1.473 + (const TText*)L"SDTree4", /*4*/
1.474 + (const TText*)L"SDTree5", /*5*/
1.475 + (const TText*)L"SPDTree6", /*6*/
1.476 + (const TText*)L"SLat7", /*7*/
1.477 + (const TText*)L"SLat8", /*8*/
1.478 + (const TText*)L"SLat9", /*9*/
1.479 + (const TText*)L"SLat10", /*10*/
1.480 + (const TText*)L"SCycS11", /*11*/
1.481 + (const TText*)L"SCycS12", /*12*/
1.482 + (const TText*)L"SCycS13", /*13*/
1.483 + (const TText*)L"SExe14", /*14*/
1.484 + (const TText*)L"SExe15" /*15*/
1.485 + };
1.486 +
1.487 +#define MODULE_NAME(n) TPtrC(ModuleName[n])
1.488 +
1.489 +static const TText* const ModuleFileName[KNumModules] =
1.490 + {
1.491 + (const TText*)L"DLLTS0.DLL",
1.492 + (const TText*)L"DLLTS1.DLL",
1.493 + (const TText*)L"DLLTS2.DLL",
1.494 + (const TText*)L"DLLTS3.DLL",
1.495 + (const TText*)L"DLLTS4.DLL",
1.496 + (const TText*)L"DLLTS5.DLL",
1.497 + (const TText*)L"DLLTS6.DLL",
1.498 + (const TText*)L"DLLTS7.DLL",
1.499 + (const TText*)L"DLLTS8.DLL",
1.500 + (const TText*)L"DLLTS9.DLL",
1.501 + (const TText*)L"DLLTS10.DLL",
1.502 + (const TText*)L"DLLTS11.DLL",
1.503 + (const TText*)L"DLLTS12.DLL",
1.504 + (const TText*)L"DLLTS13.DLL",
1.505 + (const TText*)L"EXETS14.EXE",
1.506 + (const TText*)L"EXETS15.EXE"
1.507 + };
1.508 +
1.509 +#define MODULE_FILENAME(n) TPtrC(ModuleFileName[n])
1.510 +
1.511 +static const TInt Module0Deps[] =
1.512 + {2,1,2};
1.513 +static const TInt Module1Deps[] =
1.514 + {0};
1.515 +static const TInt Module2Deps[] =
1.516 + {0};
1.517 +static const TInt Module3Deps[] =
1.518 + {2,4,5};
1.519 +static const TInt Module4Deps[] =
1.520 + {0};
1.521 +static const TInt Module5Deps[] =
1.522 + {0};
1.523 +static const TInt Module6Deps[] =
1.524 + {6,1,2,0,4,5,3};
1.525 +static const TInt Module7Deps[] =
1.526 + {3,10,8,9};
1.527 +static const TInt Module8Deps[] =
1.528 + {1,10};
1.529 +static const TInt Module9Deps[] =
1.530 + {1,10};
1.531 +static const TInt Module10Deps[] =
1.532 + {0};
1.533 +static const TInt Module11Deps[] =
1.534 + {7,11,13,10,8,9,7,12};
1.535 +
1.536 +static const TInt Module12Deps[] =
1.537 + {7,10,8,9,7,12,11,13};
1.538 +
1.539 +static const TInt Module13Deps[] =
1.540 + {7,13,10,8,9,7,12,11};
1.541 +
1.542 +static const TInt Module14Deps[] =
1.543 + {7,1,2,0,4,5,3,6};
1.544 +
1.545 +static const TInt Module15Deps[] =
1.546 + {8,11,13,10,8,9,7,12,11};
1.547 +
1.548 +static const TInt* const ModuleDependencies[KNumModules] =
1.549 + {
1.550 + Module0Deps,
1.551 + Module1Deps,
1.552 + Module2Deps,
1.553 + Module3Deps,
1.554 + Module4Deps,
1.555 + Module5Deps,
1.556 + Module6Deps,
1.557 + Module7Deps,
1.558 + Module8Deps,
1.559 + Module9Deps,
1.560 + Module10Deps,
1.561 + Module11Deps,
1.562 + Module12Deps,
1.563 + Module13Deps,
1.564 + Module14Deps,
1.565 + Module15Deps
1.566 + };
1.567 +
1.568 +const TInt KModuleFlagExe=0x01;
1.569 +const TInt KModuleFlagFixed=0x02;
1.570 +const TInt KModuleFlagData=0x04;
1.571 +const TInt KModuleFlagXIP=0x08;
1.572 +const TInt KModuleFlagDllInCycle=0x10;
1.573 +const TInt KModuleFlagDataInTree=0x20;
1.574 +const TInt KModuleFlagXIPDataInTree=0x40;
1.575 +const TInt KModuleFlagExports=0x80;
1.576 +
1.577 +static const TInt ModuleFlags[KNumModules] =
1.578 + {
1.579 + 0x80, /*0*/
1.580 + 0x80, /*1*/
1.581 + 0x80, /*2*/
1.582 + 0xa4, /*3*/
1.583 + 0xa4, /*4*/
1.584 + 0xa4, /*5*/
1.585 + 0xa0, /*6*/
1.586 + 0x80, /*7*/
1.587 + 0x80, /*8*/
1.588 + 0x80, /*9*/
1.589 + 0x80, /*10*/
1.590 + 0x90, /*11*/
1.591 + 0x90, /*12*/
1.592 + 0x90, /*13*/
1.593 + 0xeb, /*14*/
1.594 + 0x61 /*15*/
1.595 + };
1.596 +
1.597 +static const TInt Module0RBlkIParams[2] = { 0, 0 };
1.598 +static const TInt Module1RBlkIParams[2] = { 0, 0 };
1.599 +static const TInt Module2RBlkIParams[2] = { 0, 0 };
1.600 +static const TInt Module3RBlkIParams[2] = { 3, 34 };
1.601 +static const TInt Module4RBlkIParams[2] = { 1, 12 };
1.602 +static const TInt Module5RBlkIParams[2] = { 1, 13 };
1.603 +static const TInt Module6RBlkIParams[2] = { 0, 0 };
1.604 +static const TInt Module7RBlkIParams[2] = { 0, 0 };
1.605 +static const TInt Module8RBlkIParams[2] = { 0, 0 };
1.606 +static const TInt Module9RBlkIParams[2] = { 0, 0 };
1.607 +static const TInt Module10RBlkIParams[2] = { 0, 0 };
1.608 +static const TInt Module11RBlkIParams[2] = { 0, 0 };
1.609 +static const TInt Module12RBlkIParams[2] = { 0, 0 };
1.610 +static const TInt Module13RBlkIParams[2] = { 0, 0 };
1.611 +static const TInt Module14RBlkIParams[2] = { 0, 0 };
1.612 +static const TInt Module15RBlkIParams[2] = { 0, 0 };
1.613 +
1.614 +static const TInt* const ModuleRBlkIParams[KNumModules] =
1.615 + {
1.616 + Module0RBlkIParams,
1.617 + Module1RBlkIParams,
1.618 + Module2RBlkIParams,
1.619 + Module3RBlkIParams,
1.620 + Module4RBlkIParams,
1.621 + Module5RBlkIParams,
1.622 + Module6RBlkIParams,
1.623 + Module7RBlkIParams,
1.624 + Module8RBlkIParams,
1.625 + Module9RBlkIParams,
1.626 + Module10RBlkIParams,
1.627 + Module11RBlkIParams,
1.628 + Module12RBlkIParams,
1.629 + Module13RBlkIParams,
1.630 + Module14RBlkIParams,
1.631 + Module15RBlkIParams
1.632 + };
1.633 +
1.634 +static const TInt Module0ExeInfo[2] = { -1, -1 };
1.635 +static const TInt Module1ExeInfo[2] = { -1, -1 };
1.636 +static const TInt Module2ExeInfo[2] = { -1, -1 };
1.637 +static const TInt Module3ExeInfo[2] = { -1, -1 };
1.638 +static const TInt Module4ExeInfo[2] = { -1, -1 };
1.639 +static const TInt Module5ExeInfo[2] = { -1, -1 };
1.640 +static const TInt Module6ExeInfo[2] = { -1, -1 };
1.641 +static const TInt Module7ExeInfo[2] = { -1, -1 };
1.642 +static const TInt Module8ExeInfo[2] = { -1, -1 };
1.643 +static const TInt Module9ExeInfo[2] = { -1, -1 };
1.644 +static const TInt Module10ExeInfo[2] = { -1, -1 };
1.645 +static const TInt Module11ExeInfo[2] = { -1, -1 };
1.646 +static const TInt Module12ExeInfo[2] = { -1, -1 };
1.647 +static const TInt Module13ExeInfo[2] = { -1, -1 };
1.648 +static const TInt Module14ExeInfo[2] = { 14, 14 };
1.649 +static const TInt Module15ExeInfo[2] = { 15, 15 };
1.650 +
1.651 +
1.652 +static const TInt* const ModuleExeInfo[KNumModules] =
1.653 + {
1.654 + Module0ExeInfo,
1.655 + Module1ExeInfo,
1.656 + Module2ExeInfo,
1.657 + Module3ExeInfo,
1.658 + Module4ExeInfo,
1.659 + Module5ExeInfo,
1.660 + Module6ExeInfo,
1.661 + Module7ExeInfo,
1.662 + Module8ExeInfo,
1.663 + Module9ExeInfo,
1.664 + Module10ExeInfo,
1.665 + Module11ExeInfo,
1.666 + Module12ExeInfo,
1.667 + Module13ExeInfo,
1.668 + Module14ExeInfo,
1.669 + Module15ExeInfo
1.670 + };
1.671 +
1.672 +
1.673 +const TInt KTestCases = 10;
1.674 +
1.675 +//numbers 0 to 6 are for 14 and 7 to 13 are for 15
1.676 +
1.677 +// 0 1 2 3 4 5 6 7 8 9
1.678 +static const TUint32 Module0Caps[KTestCases] = {0x0, 0xF, 0x7, 0x6, 0x7, 0x7, 0x7, 0x7, 0x7, 0x7};
1.679 +static const TUint32 Module1Caps[KTestCases] = {0x0, 0xF, 0xF, 0xF, 0xE, 0xF, 0xF, 0xF, 0xF, 0xF};
1.680 +
1.681 +static const TUint32 Module2Caps[KTestCases] = {0x0, 0xF, 0xF, 0xF, 0xF, 0xE, 0xF, 0xF, 0xF, 0xF};
1.682 +static const TUint32 Module3Caps[KTestCases] = {0x0, 0xF, 0x7, 0x7, 0x7, 0x7, 0x6, 0x7, 0x7, 0x7};
1.683 +
1.684 +static const TUint32 Module4Caps[KTestCases] = {0x0, 0xF, 0xF, 0xF, 0xF, 0xF, 0xF, 0xE, 0xF, 0xF};
1.685 +static const TUint32 Module5Caps[KTestCases] = {0x0, 0xF, 0xF, 0xF, 0xF, 0xF, 0xF, 0xF, 0xE, 0xF};
1.686 +
1.687 +static const TUint32 Module6Caps[KTestCases] = {0x0, 0xF, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x2};
1.688 +static const TUint32 Module7Caps[KTestCases] = {0x0, 0xF, 0x7, 0x6, 0x7, 0x7, 0x7, 0x7, 0x7, 0x7};
1.689 +
1.690 +static const TUint32 Module8Caps[KTestCases] = {0x0, 0xF, 0xF, 0xF, 0xE, 0xF, 0xF, 0xF, 0xF, 0xF};
1.691 +static const TUint32 Module9Caps[KTestCases] = {0x0, 0xF, 0xF, 0xF, 0xF, 0xE, 0xF, 0xF, 0xF, 0xF};
1.692 +
1.693 +static const TUint32 Module10Caps[KTestCases] = {0x0, 0xF, 0x1F,0x1F,0x1F, 0x1F,0x1E, 0x1F,0x1F, 0x1F};
1.694 +static const TUint32 Module11Caps[KTestCases] = {0x0, 0xF, 0x3, 0x3, 0x3, 0x3, 0x3, 0x2, 0x3, 0x3};
1.695 +
1.696 +static const TUint32 Module12Caps[KTestCases] = {0x0, 0xF, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x2, 0x3};
1.697 +static const TUint32 Module13Caps[KTestCases] = {0x0, 0xF, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x2};
1.698 +
1.699 +static const TUint32 Module14Caps[KTestCases] = {0x0, 0xF, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1}; //exe A
1.700 +static const TUint32 Module15Caps[KTestCases] = {0x0, 0xF, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1}; //exe B
1.701 +
1.702 +/* These go back in when the capability check become mandatory
1.703 +static const TInt ModuleResultsA[KTestCases] =
1.704 + {
1.705 + KErrNone, //all equal 0
1.706 + KErrNone, //all equal 1
1.707 + KErrNone, //asscending 2
1.708 + KErrPermissionDenied, //asscending 3
1.709 + KErrPermissionDenied, //asscending 4
1.710 + KErrPermissionDenied, //asscending 5
1.711 + KErrPermissionDenied, //asscending 6
1.712 + KErrPermissionDenied, //asscending 7
1.713 + KErrPermissionDenied, //asscending 8
1.714 + KErrPermissionDenied //asscending 9
1.715 + };
1.716 +
1.717 +static const TInt ModuleResultsB[KTestCases] =
1.718 + {
1.719 + KErrPermissionDenied, //all equal 0
1.720 + KErrNone, //all equal 1
1.721 + KErrNone, //asscending 2
1.722 + KErrPermissionDenied, //asscending 3
1.723 + KErrPermissionDenied, //asscending 4
1.724 + KErrPermissionDenied, //asscending 5
1.725 + KErrPermissionDenied, //asscending 6
1.726 + KErrPermissionDenied, //asscending 7
1.727 + KErrPermissionDenied, //asscending 8
1.728 + KErrPermissionDenied //asscending 9
1.729 + };
1.730 +
1.731 +static const TInt ModuleResultsC[KTestCases] =
1.732 + {
1.733 + KErrPermissionDenied, //all equal 0
1.734 + KErrNone, //all equal 1
1.735 + KErrNone, //asscending 2
1.736 + KErrPermissionDenied, //asscending 3
1.737 + KErrPermissionDenied, //asscending 4
1.738 + KErrPermissionDenied, //asscending 5
1.739 + KErrPermissionDenied, //asscending 6
1.740 + KErrNone, //asscending 7
1.741 + KErrNone, //asscending 8
1.742 + KErrNone //asscending 9
1.743 + };
1.744 +*/
1.745 +
1.746 +
1.747 +static const TInt ModuleResultsA[KTestCases] =
1.748 + {
1.749 + KErrNone, //all equal 0
1.750 + KErrNone, //all equal 1
1.751 + KErrNone, //asscending 2
1.752 + KErrNone, //asscending 3
1.753 + KErrNone, //asscending 4
1.754 + KErrNone, //asscending 5
1.755 + KErrNone, //asscending 6
1.756 + KErrNone, //asscending 7
1.757 + KErrNone, //asscending 8
1.758 + KErrNone //asscending 9
1.759 + };
1.760 +
1.761 +static const TInt ModuleResultsB[KTestCases] =
1.762 + {
1.763 + KErrNone, //all equal 0
1.764 + KErrNone, //all equal 1
1.765 + KErrNone, //asscending 2
1.766 + KErrNone, //asscending 3
1.767 + KErrNone, //asscending 4
1.768 + KErrNone, //asscending 5
1.769 + KErrNone, //asscending 6
1.770 + KErrNone, //asscending 7
1.771 + KErrNone, //asscending 8
1.772 + KErrNone //asscending 9
1.773 + };
1.774 +
1.775 +static const TInt ModuleResultsC[KTestCases] =
1.776 + {
1.777 + KErrNone, //all equal 0
1.778 + KErrNone, //all equal 1
1.779 + KErrNone, //asscending 2
1.780 + KErrNone, //asscending 3
1.781 + KErrNone, //asscending 4
1.782 + KErrNone, //asscending 5
1.783 + KErrNone, //asscending 6
1.784 + KErrNone, //asscending 7
1.785 + KErrNone, //asscending 8
1.786 + KErrNone //asscending 9
1.787 + };
1.788 +
1.789 +static const TUint32* const ModuleCaps[KNumModules] =
1.790 + {
1.791 + Module0Caps,
1.792 + Module1Caps,
1.793 + Module2Caps,
1.794 + Module3Caps,
1.795 + Module4Caps,
1.796 + Module5Caps,
1.797 + Module6Caps,
1.798 + Module7Caps,
1.799 + Module8Caps,
1.800 + Module9Caps,
1.801 + Module10Caps,
1.802 + Module11Caps,
1.803 + Module12Caps,
1.804 + Module13Caps,
1.805 + Module14Caps,
1.806 + Module15Caps
1.807 + };
1.808 +
1.809 +#endif