1 uint32_t g98_psec_data[] = { 2 /* 0x0000: ctx_dma */ 3 /* 0x0000: ctx_dma_query */ 4 0x00000000, 5 /* 0x0004: ctx_dma_src */ 6 0x00000000, 7 /* 0x0008: ctx_dma_dst */ 8 0x00000000, 9 /* 0x000c: ctx_query_address_high */ 10 0x00000000, 11 /* 0x0010: ctx_query_address_low */ 12 0x00000000, 13 /* 0x0014: ctx_query_counter */ 14 0x00000000, 15 /* 0x0018: ctx_cond_address_high */ 16 0x00000000, 17 /* 0x001c: ctx_cond_address_low */ 18 0x00000000, 19 /* 0x0020: ctx_cond_off */ 20 0x00000000, 21 /* 0x0024: ctx_src_address_high */ 22 0x00000000, 23 /* 0x0028: ctx_src_address_low */ 24 0x00000000, 25 /* 0x002c: ctx_dst_address_high */ 26 0x00000000, 27 /* 0x0030: ctx_dst_address_low */ 28 0x00000000, 29 /* 0x0034: ctx_mode */ 30 0x00000000, 31 0x00000000, 32 0x00000000, 33 /* 0x0040: ctx_key */ 34 0x00000000, 35 0x00000000, 36 0x00000000, 37 0x00000000, 38 /* 0x0050: ctx_iv */ 39 0x00000000, 40 0x00000000, 41 0x00000000, 42 0x00000000, 43 0x00000000, 44 0x00000000, 45 0x00000000, 46 0x00000000, 47 0x00000000, 48 0x00000000, 49 0x00000000, 50 0x00000000, 51 /* 0x0080: swap */ 52 0x00000000, 53 0x00000000, 54 0x00000000, 55 0x00000000, 56 0x00000000, 57 0x00000000, 58 0x00000000, 59 0x00000000, 60 /* 0x00a0: common_cmd_dtable */ 61 0x0002000c, 62 0xffffff00, 63 0x00020010, 64 0x0000000f, 65 0x00020014, 66 0x00000000, 67 0x00000192, 68 0xfffffffe, 69 0x00020018, 70 0xffffff00, 71 0x0002001c, 72 0x0000000f, 73 0x000001d7, 74 0xfffffff8, 75 0x00000260, 76 0xffffffff, 77 /* 0x00e0: engine_cmd_dtable */ 78 0x00020040, 79 0x00000000, 80 0x00020044, 81 0x00000000, 82 0x00020048, 83 0x00000000, 84 0x0002004c, 85 0x00000000, 86 0x00020050, 87 0x00000000, 88 0x00020054, 89 0x00000000, 90 0x00020058, 91 0x00000000, 92 0x0002005c, 93 0x00000000, 94 0x00020024, 95 0xffffff00, 96 0x00020028, 97 0x0000000f, 98 0x0002002c, 99 0xffffff00, 100 0x00020030, 101 0x0000000f, 102 0x00000271, 103 0xfffffff0, 104 0x00010285, 105 0xf000000f, 106 /* 0x0150: sec_dtable */ 107 0x04db0321, 108 0x04b1032f, 109 0x04db0339, 110 0x04db034b, 111 0x04db0361, 112 0x04db0377, 113 0x04db0395, 114 0x04db03af, 115 0x04db03cd, 116 0x04db03e3, 117 0x04db03f9, 118 0x04db040f, 119 0x04830429, 120 0x0483043b, 121 0x0483045d, 122 0x00000000, 123 0x00000000, 124 0x00000000, 125 0x00000000, 126 0x00000000, 127 0x00000000, 128 0x00000000, 129 0x00000000, 130 0x00000000, 131 0x00000000, 132 0x00000000, 133 0x00000000, 134 0x00000000, 135 0x00000000, 136 0x00000000, 137 0x00000000, 138 0x00000000, 139 0x00000000, 140 0x00000000, 141 0x00000000, 142 0x00000000, 143 0x00000000, 144 0x00000000, 145 0x00000000, 146 0x00000000, 147 0x00000000, 148 0x00000000, 149 0x00000000, 150 0x00000000, 151 }; 152 153 uint32_t g98_psec_code[] = { 154 0x17f004bd, 155 0x0010fe35, 156 0xf10004fe, 157 0xf0fff017, 158 0x27f10013, 159 0x21d00400, 160 0x0c15f0c0, 161 0xf00021d0, 162 0x27f10317, 163 0x21d01200, 164 0x1031f400, 165 /* 0x002f: spin */ 166 0xf40031f4, 167 0x0ef40028, 168 /* 0x0035: ih */ 169 0x8001cffd, 170 0xb00812c4, 171 0x0bf40024, 172 0x0027f167, 173 0x002bfe77, 174 0xf00007fe, 175 0x23f00027, 176 0x0037f105, 177 0x0034cf14, 178 0xb0014594, 179 0x18f40055, 180 0x0602fa17, 181 0x4af003f8, 182 0x0034d01e, 183 0xd00147f0, 184 0x0ef48034, 185 /* 0x0075: ctxload */ 186 0x4034cf33, 187 0xb0014f94, 188 0x18f400f5, 189 0x0502fa21, 190 0x57f003f8, 191 0x0267f000, 192 /* 0x008c: ctxload_dma_loop */ 193 0xa07856bc, 194 0xb6018068, 195 0x87d00884, 196 0x0162b600, 197 /* 0x009f: dummyload */ 198 0xf0f018f4, 199 0x35d00257, 200 /* 0x00a5: noctx */ 201 0x0412c480, 202 0xf50024b0, 203 0xf100df0b, 204 0xcf190037, 205 0x33cf4032, 206 0xff24e400, 207 0x1024b607, 208 0x07bf45e4, 209 0xf50054b0, 210 0xf100b90b, 211 0xf1fae057, 212 0xb000ce67, 213 0x18f4c044, 214 0xa057f14d, 215 0x8867f1fc, 216 0x8044b000, 217 0xb03f18f4, 218 0x18f46044, 219 0x5044b019, 220 0xf1741bf4, 221 0xbd220027, 222 0x0233f034, 223 0xf50023d0, 224 /* 0x0103: dma_cmd */ 225 0xb000810e, 226 0x18f46344, 227 0x0245945e, 228 0xfe8050b7, 229 0x801e39f0, 230 0x40b70053, 231 0x44b60120, 232 0x0043d008, 233 /* 0x0123: dtable_cmd */ 234 0xb8600ef4, 235 0x18f40446, 236 0x0344b63e, 237 0x980045bb, 238 0x53fd0145, 239 0x0054b004, 240 0x58291bf4, 241 0x46580045, 242 0x0264b001, 243 0x98170bf4, 244 0x67fd0807, 245 0x0164b004, 246 0xf9300bf4, 247 0x0f01f455, 248 /* 0x015b: cmd_setctx */ 249 0x80280ef4, 250 0x0ef40053, 251 /* 0x0161: invalid_bitfield */ 252 0x0125f022, 253 /* 0x0164: dispatch_error */ 254 /* 0x0164: illegal_mthd */ 255 0x100047f1, 256 0xd00042d0, 257 0x47f04043, 258 0x0004d040, 259 /* 0x0174: im_loop */ 260 0xf08004cf, 261 0x44b04044, 262 0xf71bf400, 263 /* 0x0180: cmddone */ 264 0x1d0037f1, 265 0xd00147f0, 266 /* 0x018a: nocmd */ 267 0x11c40034, 268 0x4001d00c, 269 /* 0x0192: cmd_query_get */ 270 0x38f201f8, 271 0x0325f001, 272 0x0b0047f1, 273 /* 0x019c: ptimer_retry */ 274 0xcf4046cf, 275 0x47cf0045, 276 0x0467b840, 277 0x98f41bf4, 278 0x04800504, 279 0x21008020, 280 0x80220580, 281 0x0bfe2306, 282 0x03049800, 283 0xfe1844b6, 284 0x04980047, 285 0x8057f104, 286 0x0253f000, 287 0xf80645fa, 288 /* 0x01d7: cmd_cond_mode */ 289 0xf400f803, 290 0x25f00131, 291 0x0534b002, 292 0xf41218f4, 293 0x34b00132, 294 0x0b18f402, 295 0x800136f0, 296 /* 0x01f2: return */ 297 0x00f80803, 298 /* 0x01f4: cmd_cond_mode_queryful */ 299 0x98060498, 300 0x56c40705, 301 0x0855b6ff, 302 0xfd1844b6, 303 0x47fe0545, 304 0x000bfe00, 305 0x008057f1, 306 0xfa0253f0, 307 0x34b00565, 308 0x131bf402, 309 0x049803f8, 310 0x0044b021, 311 0x800b4cf0, 312 0x00f80804, 313 /* 0x022c: cmd_cond_mode_double */ 314 0xb61060b6, 315 0x65fa1050, 316 0x9803f805, 317 0x06982005, 318 0x0456b824, 319 0x980b4cf0, 320 0x06982105, 321 0x0456b825, 322 0xfd0b5cf0, 323 0x34b00445, 324 0x0b5cf003, 325 0x800645fd, 326 0x00f80804, 327 /* 0x0260: cmd_wrcache_flush */ 328 0xf10132f4, 329 0xbd220027, 330 0x0133f034, 331 0xf80023d0, 332 /* 0x0271: sec_cmd_mode */ 333 0x0131f400, 334 0xb00225f0, 335 0x18f40f34, 336 0x0132f409, 337 /* 0x0283: sec_cmd_mode_return */ 338 0xf80d0380, 339 /* 0x0285: sec_cmd_length */ 340 0x0034b000, 341 0xf4fb0bf4, 342 0x47f0033c, 343 0x0743f040, 344 0xf00604fa, 345 0x43f05047, 346 0x0604fa06, 347 0x3cf503f8, 348 0x47f1c407, 349 0x4bfe2100, 350 0x09049800, 351 0x950a0598, 352 0x44b60858, 353 0x0548fd18, 354 0x98ff55c4, 355 0x07980b06, 356 0x0878950c, 357 0xfd1864b6, 358 0x77c40568, 359 0x0d0898ff, 360 0x580284b6, 361 0x95f9a889, 362 0xf9a98958, 363 0x013cf495, 364 0x3cf403f8, 365 0xf803f861, 366 0x18489503, 367 0xbb084994, 368 0x81b60095, 369 0x09088000, 370 0x950a0980, 371 0x69941868, 372 0x0097bb08, 373 0x800081b6, 374 0x09800b08, 375 0x023cf40c, 376 0xf05047f0, 377 0x04fa0643, 378 0xf803f805, 379 /* 0x0321: sec_copy_prep */ 380 0x203cf500, 381 0x003cf594, 382 0x003cf588, 383 /* 0x032f: sec_store_prep */ 384 0xf500f88c, 385 0xf594103c, 386 0xf88c063c, 387 /* 0x0339: sec_ecb_e_prep */ 388 0x303cf500, 389 0x003cf594, 390 0x003cf588, 391 0x003cf5d0, 392 /* 0x034b: sec_ecb_d_prep */ 393 0xf500f88c, 394 0xf5c8773c, 395 0xf594303c, 396 0xf588003c, 397 0xf5d4003c, 398 0xf88c003c, 399 /* 0x0361: sec_cbc_e_prep */ 400 0x403cf500, 401 0x003cf594, 402 0x063cf588, 403 0x663cf5ac, 404 0x063cf5d0, 405 /* 0x0377: sec_cbc_d_prep */ 406 0xf500f88c, 407 0xf5c8773c, 408 0xf594503c, 409 0xf584623c, 410 0xf588063c, 411 0xf5d4603c, 412 0xf5ac203c, 413 0xf88c003c, 414 /* 0x0395: sec_pcbc_e_prep */ 415 0x503cf500, 416 0x003cf594, 417 0x063cf588, 418 0x663cf5ac, 419 0x063cf5d0, 420 0x063cf58c, 421 /* 0x03af: sec_pcbc_d_prep */ 422 0xf500f8ac, 423 0xf5c8773c, 424 0xf594503c, 425 0xf588003c, 426 0xf5d4013c, 427 0xf5ac163c, 428 0xf58c063c, 429 0xf8ac063c, 430 /* 0x03cd: sec_cfb_e_prep */ 431 0x403cf500, 432 0x663cf594, 433 0x003cf5d0, 434 0x063cf588, 435 0x063cf5ac, 436 /* 0x03e3: sec_cfb_d_prep */ 437 0xf500f88c, 438 0xf594403c, 439 0xf5d0603c, 440 0xf588063c, 441 0xf5ac603c, 442 0xf88c003c, 443 /* 0x03f9: sec_ofb_prep */ 444 0x403cf500, 445 0x663cf594, 446 0x003cf5d0, 447 0x603cf588, 448 0x003cf5ac, 449 /* 0x040f: sec_ctr_prep */ 450 0xf500f88c, 451 0xf594503c, 452 0xf5d0613c, 453 0xf5b0163c, 454 0xf588003c, 455 0xf5ac103c, 456 0xf88c003c, 457 /* 0x0429: sec_cbc_mac_prep */ 458 0x303cf500, 459 0x003cf594, 460 0x063cf588, 461 0x663cf5ac, 462 /* 0x043b: sec_cmac_finish_complete_prep */ 463 0xf500f8d0, 464 0xf594703c, 465 0xf588003c, 466 0xf5ac063c, 467 0xf5ac003c, 468 0xf5d0003c, 469 0xf5bc003c, 470 0xf5ac063c, 471 0xf8d0663c, 472 /* 0x045d: sec_cmac_finish_partial_prep */ 473 0x803cf500, 474 0x003cf594, 475 0x063cf588, 476 0x003cf5ac, 477 0x003cf5ac, 478 0x003cf5d0, 479 0x003cf5bc, 480 0x063cf5bc, 481 0x663cf5ac, 482 /* 0x0483: sec_do_in */ 483 0xbb00f8d0, 484 0x47fe0035, 485 0x8097f100, 486 0x0293f000, 487 /* 0x0490: sec_do_in_loop */ 488 0xf80559fa, 489 0x223cf403, 490 0xf50609fa, 491 0xf898103c, 492 0x1050b603, 493 0xf40453b8, 494 0x3cf4e91b, 495 0xf803f801, 496 /* 0x04b1: sec_do_out */ 497 0x0037bb00, 498 0xf10067fe, 499 0xf0008097, 500 /* 0x04be: sec_do_out_loop */ 501 0x3cf50293, 502 0x3cf49810, 503 0x0579fa61, 504 0xf40679fa, 505 0x03f8013c, 506 0xb81070b6, 507 0x1bf40473, 508 /* 0x04db: sec_do_inout */ 509 0xbb00f8e8, 510 0x97f10035, 511 0x93f00080, 512 /* 0x04e5: sec_do_inout_loop */ 513 0x0047fe02, 514 0xf80559fa, 515 0x213cf403, 516 0xf50609fa, 517 0xf498103c, 518 0x67fe613c, 519 0x0579fa00, 520 0xf40679fa, 521 0x03f8013c, 522 0xb61050b6, 523 0x53b81070, 524 0xd41bf404, 525 0x000000f8, 526 0x00000000, 527 0x00000000, 528 0x00000000, 529 0x00000000, 530 0x00000000, 531 0x00000000, 532 0x00000000, 533 0x00000000, 534 0x00000000, 535 0x00000000, 536 0x00000000, 537 0x00000000, 538 0x00000000, 539 0x00000000, 540 0x00000000, 541 0x00000000, 542 0x00000000, 543 0x00000000, 544 0x00000000, 545 0x00000000, 546 0x00000000, 547 0x00000000, 548 0x00000000, 549 0x00000000, 550 0x00000000, 551 0x00000000, 552 0x00000000, 553 0x00000000, 554 0x00000000, 555 0x00000000, 556 0x00000000, 557 0x00000000, 558 0x00000000, 559 0x00000000, 560 0x00000000, 561 0x00000000, 562 0x00000000, 563 0x00000000, 564 0x00000000, 565 0x00000000, 566 0x00000000, 567 0x00000000, 568 0x00000000, 569 0x00000000, 570 0x00000000, 571 0x00000000, 572 0x00000000, 573 0x00000000, 574 0x00000000, 575 0x00000000, 576 0x00000000, 577 0x00000000, 578 0x00000000, 579 0x00000000, 580 0x00000000, 581 0x00000000, 582 0x00000000, 583 0x00000000, 584 }; 585