1 uint32_t gt215_ce_data[] = { 2 /* 0x0000: ctx_object */ 3 0x00000000, 4 /* 0x0004: ctx_dma */ 5 /* 0x0004: ctx_dma_query */ 6 0x00000000, 7 /* 0x0008: ctx_dma_src */ 8 0x00000000, 9 /* 0x000c: ctx_dma_dst */ 10 0x00000000, 11 /* 0x0010: ctx_query_address_high */ 12 0x00000000, 13 /* 0x0014: ctx_query_address_low */ 14 0x00000000, 15 /* 0x0018: ctx_query_counter */ 16 0x00000000, 17 /* 0x001c: ctx_src_address_high */ 18 0x00000000, 19 /* 0x0020: ctx_src_address_low */ 20 0x00000000, 21 /* 0x0024: ctx_src_pitch */ 22 0x00000000, 23 /* 0x0028: ctx_src_tile_mode */ 24 0x00000000, 25 /* 0x002c: ctx_src_xsize */ 26 0x00000000, 27 /* 0x0030: ctx_src_ysize */ 28 0x00000000, 29 /* 0x0034: ctx_src_zsize */ 30 0x00000000, 31 /* 0x0038: ctx_src_zoff */ 32 0x00000000, 33 /* 0x003c: ctx_src_xoff */ 34 0x00000000, 35 /* 0x0040: ctx_src_yoff */ 36 0x00000000, 37 /* 0x0044: ctx_src_cpp */ 38 0x00000000, 39 /* 0x0048: ctx_dst_address_high */ 40 0x00000000, 41 /* 0x004c: ctx_dst_address_low */ 42 0x00000000, 43 /* 0x0050: ctx_dst_pitch */ 44 0x00000000, 45 /* 0x0054: ctx_dst_tile_mode */ 46 0x00000000, 47 /* 0x0058: ctx_dst_xsize */ 48 0x00000000, 49 /* 0x005c: ctx_dst_ysize */ 50 0x00000000, 51 /* 0x0060: ctx_dst_zsize */ 52 0x00000000, 53 /* 0x0064: ctx_dst_zoff */ 54 0x00000000, 55 /* 0x0068: ctx_dst_xoff */ 56 0x00000000, 57 /* 0x006c: ctx_dst_yoff */ 58 0x00000000, 59 /* 0x0070: ctx_dst_cpp */ 60 0x00000000, 61 /* 0x0074: ctx_format */ 62 0x00000000, 63 /* 0x0078: ctx_swz_const0 */ 64 0x00000000, 65 /* 0x007c: ctx_swz_const1 */ 66 0x00000000, 67 /* 0x0080: ctx_xcnt */ 68 0x00000000, 69 /* 0x0084: ctx_ycnt */ 70 0x00000000, 71 0x00000000, 72 0x00000000, 73 0x00000000, 74 0x00000000, 75 0x00000000, 76 0x00000000, 77 0x00000000, 78 0x00000000, 79 0x00000000, 80 0x00000000, 81 0x00000000, 82 0x00000000, 83 0x00000000, 84 0x00000000, 85 0x00000000, 86 0x00000000, 87 0x00000000, 88 0x00000000, 89 0x00000000, 90 0x00000000, 91 0x00000000, 92 0x00000000, 93 0x00000000, 94 0x00000000, 95 0x00000000, 96 0x00000000, 97 0x00000000, 98 0x00000000, 99 0x00000000, 100 0x00000000, 101 /* 0x0100: dispatch_table */ 102 0x00010000, 103 0x00000000, 104 0x00000000, 105 0x00010040, 106 0x00010160, 107 0x00000000, 108 0x00010050, 109 0x00010162, 110 0x00000000, 111 0x00030060, 112 /* 0x0128: dispatch_dma */ 113 0x00010170, 114 0x00000000, 115 0x00010170, 116 0x00000000, 117 0x00010170, 118 0x00000000, 119 0x00070080, 120 0x00000028, 121 0xfffff000, 122 0x0000002c, 123 0xfff80000, 124 0x00000030, 125 0xffffe000, 126 0x00000034, 127 0xfffff800, 128 0x00000038, 129 0xfffff000, 130 0x0000003c, 131 0xfff80000, 132 0x00000040, 133 0xffffe000, 134 0x00070088, 135 0x00000054, 136 0xfffff000, 137 0x00000058, 138 0xfff80000, 139 0x0000005c, 140 0xffffe000, 141 0x00000060, 142 0xfffff800, 143 0x00000064, 144 0xfffff000, 145 0x00000068, 146 0xfff80000, 147 0x0000006c, 148 0xffffe000, 149 0x000200c0, 150 0x00010492, 151 0x00000000, 152 0x0001051b, 153 0x00000000, 154 0x000e00c3, 155 0x0000001c, 156 0xffffff00, 157 0x00000020, 158 0x00000000, 159 0x00000048, 160 0xffffff00, 161 0x0000004c, 162 0x00000000, 163 0x00000024, 164 0xfff80000, 165 0x00000050, 166 0xfff80000, 167 0x00000080, 168 0xffff0000, 169 0x00000084, 170 0xffffe000, 171 0x00000074, 172 0xfccc0000, 173 0x00000078, 174 0x00000000, 175 0x0000007c, 176 0x00000000, 177 0x00000010, 178 0xffffff00, 179 0x00000014, 180 0x00000000, 181 0x00000018, 182 0x00000000, 183 0x00000800, 184 }; 185 186 uint32_t gt215_ce_code[] = { 187 /* 0x0000: main */ 188 0x04fe04bd, 189 0x3517f000, 190 0xf10010fe, 191 0xf1040017, 192 0xf0fff327, 193 0x12d00023, 194 0x0c25f0c0, 195 0xf40012d0, 196 0x17f11031, 197 0x27f01200, 198 0x0012d003, 199 /* 0x002f: spin */ 200 0xf40031f4, 201 0x0ef40028, 202 /* 0x0035: ih */ 203 0x8001cffd, 204 0xf40812c4, 205 0x21f4060b, 206 /* 0x0041: ih_no_chsw */ 207 0x0412c472, 208 0xf4060bf4, 209 /* 0x004a: ih_no_cmd */ 210 0x11c4c321, 211 0x4001d00c, 212 /* 0x0052: swctx */ 213 0x47f101f8, 214 0x4bfe7700, 215 0x0007fe00, 216 0xf00204b9, 217 0x01f40643, 218 0x0604fa09, 219 /* 0x006b: swctx_load */ 220 0xfa060ef4, 221 /* 0x006e: swctx_done */ 222 0x03f80504, 223 /* 0x0072: chsw */ 224 0x27f100f8, 225 0x23cf1400, 226 0x1e3fc800, 227 0xf4170bf4, 228 0x21f40132, 229 0x1e3af052, 230 0xf00023d0, 231 0x24d00147, 232 /* 0x0093: chsw_no_unload */ 233 0xcf00f880, 234 0x3dc84023, 235 0x220bf41e, 236 0xf40131f4, 237 0x57f05221, 238 0x0367f004, 239 /* 0x00a8: chsw_load_ctx_dma */ 240 0xa07856bc, 241 0xb6018068, 242 0x87d00884, 243 0x0162b600, 244 /* 0x00bb: chsw_finish_load */ 245 0xf0f018f4, 246 0x23d00237, 247 /* 0x00c3: dispatch */ 248 0xf100f880, 249 0xcf190037, 250 0x33cf4032, 251 0xff24e400, 252 0x1024b607, 253 0x010057f1, 254 0x74bd64bd, 255 /* 0x00dc: dispatch_loop */ 256 0x58005658, 257 0x50b60157, 258 0x0446b804, 259 0xbb4d08f4, 260 0x47b80076, 261 0x0f08f404, 262 0xb60276bb, 263 0x57bb0374, 264 0xdf0ef400, 265 /* 0x0100: dispatch_valid_mthd */ 266 0xb60246bb, 267 0x45bb0344, 268 0x01459800, 269 0xb00453fd, 270 0x1bf40054, 271 0x00455820, 272 0xb0014658, 273 0x1bf40064, 274 0x00538009, 275 /* 0x0127: dispatch_cmd */ 276 0xf4300ef4, 277 0x55f90132, 278 0xf40c01f4, 279 /* 0x0132: dispatch_invalid_bitfield */ 280 0x25f0250e, 281 /* 0x0135: dispatch_illegal_mthd */ 282 0x0125f002, 283 /* 0x0138: dispatch_error */ 284 0x100047f1, 285 0xd00042d0, 286 0x27f04043, 287 0x0002d040, 288 /* 0x0148: hostirq_wait */ 289 0xf08002cf, 290 0x24b04024, 291 0xf71bf400, 292 /* 0x0154: dispatch_done */ 293 0x1d0027f1, 294 0xd00137f0, 295 0x00f80023, 296 /* 0x0160: cmd_nop */ 297 /* 0x0162: cmd_pm_trigger */ 298 0x27f100f8, 299 0x34bd2200, 300 0xd00233f0, 301 0x00f80023, 302 /* 0x0170: cmd_dma */ 303 0x012842b7, 304 0xf00145b6, 305 0x43801e39, 306 0x0040b701, 307 0x0644b606, 308 0xf80043d0, 309 /* 0x0189: cmd_exec_set_format */ 310 0xf030f400, 311 0xb00001b0, 312 0x01b00101, 313 0x0301b002, 314 0xc71d0498, 315 0x50b63045, 316 0x3446c701, 317 0xc70160b6, 318 0x70b63847, 319 0x0232f401, 320 0x94bd84bd, 321 /* 0x01b4: ncomp_loop */ 322 0xb60f4ac4, 323 0xb4bd0445, 324 /* 0x01bc: bpc_loop */ 325 0xf404a430, 326 0xa5ff0f18, 327 0x00cbbbc0, 328 0xf40231f4, 329 /* 0x01ce: cmp_c0 */ 330 0x1bf4220e, 331 0x10c7f00c, 332 0xf400cbbb, 333 /* 0x01da: cmp_c1 */ 334 0xa430160e, 335 0x0c18f406, 336 0xbb14c7f0, 337 0x0ef400cb, 338 /* 0x01e9: cmp_zero */ 339 0x80c7f107, 340 /* 0x01ed: bpc_next */ 341 0x01c83800, 342 0xb60180b6, 343 0xb5b801b0, 344 0xc308f404, 345 0xb80190b6, 346 0x08f40497, 347 0x0065fdb2, 348 0x98110680, 349 0x68fd2008, 350 0x0502f400, 351 /* 0x0216: dst_xcnt */ 352 0x75fd64bd, 353 0x1c078000, 354 0xf10078fd, 355 0xb6081057, 356 0x56d00654, 357 0x4057d000, 358 0x080050b7, 359 0xb61c0698, 360 0x64b60162, 361 0x11079808, 362 0xfd0172b6, 363 0x56d00567, 364 0x0050b700, 365 0x0060b401, 366 0xb40056d0, 367 0x56d00160, 368 0x0260b440, 369 0xb48056d0, 370 0x56d00360, 371 0x0050b7c0, 372 0x1e069804, 373 0x980056d0, 374 0x56d01f06, 375 0x1030f440, 376 /* 0x0276: cmd_exec_set_surface_tiled */ 377 0x579800f8, 378 0x6879c70a, 379 0xb66478c7, 380 0x77c70280, 381 0x0e76b060, 382 0xf0091bf4, 383 0x0ef40477, 384 /* 0x0291: xtile64 */ 385 0x027cf00f, 386 0xfd1170b6, 387 0x77f00947, 388 /* 0x029d: xtileok */ 389 0x0f5a9806, 390 0xfd115b98, 391 0xb7f000ab, 392 0x04b7bb01, 393 0xff01b2b6, 394 0xa7bbc4ab, 395 0x105d9805, 396 0xbb01e7f0, 397 0xe2b604e8, 398 0xb4deff01, 399 0xb605d8bb, 400 0xef9401e0, 401 0x02ebbb0c, 402 0xf005fefd, 403 0x60b7026c, 404 0x64b60208, 405 0x006fd008, 406 0xbb04b7bb, 407 0x5f9800cb, 408 0x115b980b, 409 0xf000fbfd, 410 0xb7bb01b7, 411 0x01b2b604, 412 0xbb00fbbb, 413 0xf0f905f7, 414 0xf00c5f98, 415 0xb8bb01b7, 416 0x01b2b604, 417 0xbb00fbbb, 418 0xf0f905f8, 419 0xb60078bb, 420 0xb7f00282, 421 0x04b8bb01, 422 0x9804b9bb, 423 0xe7f00e58, 424 0x04e9bb01, 425 0xff01e2b6, 426 0xf7bbf48e, 427 0x00cfbb04, 428 0xbb0079bb, 429 0xf0fc0589, 430 0xd9fd90fc, 431 0x00adbb00, 432 0xfd0089fd, 433 0xa8bb008f, 434 0x04a7bb00, 435 0xbb0192b6, 436 0x69d00497, 437 0x08579880, 438 0xbb075898, 439 0x7abb00ac, 440 0x0081b600, 441 0xfd1084b6, 442 0x62b7058b, 443 0x67d00600, 444 0x0060b700, 445 0x0068d004, 446 /* 0x0382: cmd_exec_set_surface_linear */ 447 0x6cf000f8, 448 0x0260b702, 449 0x0864b602, 450 0xd0085798, 451 0x60b70067, 452 0x57980400, 453 0x1074b607, 454 0xb70067d0, 455 0x98040060, 456 0x67d00957, 457 /* 0x03ab: cmd_exec_wait */ 458 0xf900f800, 459 0xf110f900, 460 0xb6080007, 461 /* 0x03b6: loop */ 462 0x01cf0604, 463 0x0114f000, 464 0xfcfa1bf4, 465 0xf800fc10, 466 /* 0x03c5: cmd_exec_query */ 467 0x0d34c800, 468 0xf5701bf4, 469 0xf103ab21, 470 0xb6080c47, 471 0x05980644, 472 0x0450b605, 473 0xd00045d0, 474 0x57f04040, 475 0x8045d00c, 476 0x040040b7, 477 0xb6040598, 478 0x45d01054, 479 0x0040b700, 480 0x0057f105, 481 0x0153f00b, 482 0xf10045d0, 483 0xb6404057, 484 0x53f10154, 485 0x45d08080, 486 0x1057f140, 487 0x1253f111, 488 0x8045d013, 489 0x151457f1, 490 0x171653f1, 491 0xf1c045d0, 492 0xf0260157, 493 0x47f10153, 494 0x44b60800, 495 0x0045d006, 496 /* 0x0438: query_counter */ 497 0x03ab21f5, 498 0x080c47f1, 499 0x980644b6, 500 0x45d00505, 501 0x4040d000, 502 0xd00457f0, 503 0x40b78045, 504 0x05980400, 505 0x1054b604, 506 0xb70045d0, 507 0xf1050040, 508 0xd0030057, 509 0x57f10045, 510 0x53f11110, 511 0x45d01312, 512 0x06059840, 513 0x050040b7, 514 0xf10045d0, 515 0xf0260157, 516 0x47f10153, 517 0x44b60800, 518 0x0045d006, 519 /* 0x0492: cmd_exec */ 520 0x21f500f8, 521 0x3fc803ab, 522 0x0e0bf400, 523 0x018921f5, 524 0x020047f1, 525 /* 0x04a7: cmd_exec_no_format */ 526 0xf11e0ef4, 527 0xb6081067, 528 0x77f00664, 529 0x11078001, 530 0x981c0780, 531 0x67d02007, 532 0x4067d000, 533 /* 0x04c2: cmd_exec_init_src_surface */ 534 0x32f444bd, 535 0xc854bd02, 536 0x0bf4043f, 537 0x8221f50a, 538 0x0a0ef403, 539 /* 0x04d4: src_tiled */ 540 0x027621f5, 541 /* 0x04db: cmd_exec_init_dst_surface */ 542 0xf40749f0, 543 0x57f00231, 544 0x083fc82c, 545 0xf50a0bf4, 546 0xf4038221, 547 /* 0x04ee: dst_tiled */ 548 0x21f50a0e, 549 0x49f00276, 550 /* 0x04f5: cmd_exec_kick */ 551 0x0057f108, 552 0x0654b608, 553 0xd0210698, 554 0x67f04056, 555 0x0063f141, 556 0x0546fd44, 557 0xc80054d0, 558 0x0bf40c3f, 559 0xc521f507, 560 /* 0x0519: cmd_exec_done */ 561 /* 0x051b: cmd_wrcache_flush */ 562 0xf100f803, 563 0xbd220027, 564 0x0133f034, 565 0xf80023d0, 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 0x00000000, 585 0x00000000, 586 0x00000000, 587 0x00000000, 588 0x00000000, 589 0x00000000, 590 0x00000000, 591 0x00000000, 592 0x00000000, 593 0x00000000, 594 0x00000000, 595 0x00000000, 596 0x00000000, 597 0x00000000, 598 0x00000000, 599 0x00000000, 600 0x00000000, 601 0x00000000, 602 0x00000000, 603 0x00000000, 604 0x00000000, 605 0x00000000, 606 0x00000000, 607 0x00000000, 608 0x00000000, 609 0x00000000, 610 0x00000000, 611 0x00000000, 612 0x00000000, 613 0x00000000, 614 0x00000000, 615 0x00000000, 616 0x00000000, 617 0x00000000, 618 0x00000000, 619 0x00000000, 620 }; 621