1 static uint32_t gf100_ce_data[] = { 2 /* 0x0000: ctx_object */ 3 0x00000000, 4 /* 0x0004: ctx_query_address_high */ 5 0x00000000, 6 /* 0x0008: ctx_query_address_low */ 7 0x00000000, 8 /* 0x000c: ctx_query_counter */ 9 0x00000000, 10 /* 0x0010: ctx_src_address_high */ 11 0x00000000, 12 /* 0x0014: ctx_src_address_low */ 13 0x00000000, 14 /* 0x0018: ctx_src_pitch */ 15 0x00000000, 16 /* 0x001c: ctx_src_tile_mode */ 17 0x00000000, 18 /* 0x0020: ctx_src_xsize */ 19 0x00000000, 20 /* 0x0024: ctx_src_ysize */ 21 0x00000000, 22 /* 0x0028: ctx_src_zsize */ 23 0x00000000, 24 /* 0x002c: ctx_src_zoff */ 25 0x00000000, 26 /* 0x0030: ctx_src_xoff */ 27 0x00000000, 28 /* 0x0034: ctx_src_yoff */ 29 0x00000000, 30 /* 0x0038: ctx_src_cpp */ 31 0x00000000, 32 /* 0x003c: ctx_dst_address_high */ 33 0x00000000, 34 /* 0x0040: ctx_dst_address_low */ 35 0x00000000, 36 /* 0x0044: ctx_dst_pitch */ 37 0x00000000, 38 /* 0x0048: ctx_dst_tile_mode */ 39 0x00000000, 40 /* 0x004c: ctx_dst_xsize */ 41 0x00000000, 42 /* 0x0050: ctx_dst_ysize */ 43 0x00000000, 44 /* 0x0054: ctx_dst_zsize */ 45 0x00000000, 46 /* 0x0058: ctx_dst_zoff */ 47 0x00000000, 48 /* 0x005c: ctx_dst_xoff */ 49 0x00000000, 50 /* 0x0060: ctx_dst_yoff */ 51 0x00000000, 52 /* 0x0064: ctx_dst_cpp */ 53 0x00000000, 54 /* 0x0068: ctx_format */ 55 0x00000000, 56 /* 0x006c: ctx_swz_const0 */ 57 0x00000000, 58 /* 0x0070: ctx_swz_const1 */ 59 0x00000000, 60 /* 0x0074: ctx_xcnt */ 61 0x00000000, 62 /* 0x0078: ctx_ycnt */ 63 0x00000000, 64 0x00000000, 65 0x00000000, 66 0x00000000, 67 0x00000000, 68 0x00000000, 69 0x00000000, 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 /* 0x0100: dispatch_table */ 98 0x00010000, 99 0x00000000, 100 0x00000000, 101 0x00010040, 102 0x0001019f, 103 0x00000000, 104 0x00010050, 105 0x000101a1, 106 0x00000000, 107 0x00070080, 108 0x0000001c, 109 0xfffff000, 110 0x00000020, 111 0xfff80000, 112 0x00000024, 113 0xffffe000, 114 0x00000028, 115 0xfffff800, 116 0x0000002c, 117 0xfffff000, 118 0x00000030, 119 0xfff80000, 120 0x00000034, 121 0xffffe000, 122 0x00070088, 123 0x00000048, 124 0xfffff000, 125 0x0000004c, 126 0xfff80000, 127 0x00000050, 128 0xffffe000, 129 0x00000054, 130 0xfffff800, 131 0x00000058, 132 0xfffff000, 133 0x0000005c, 134 0xfff80000, 135 0x00000060, 136 0xffffe000, 137 0x000200c0, 138 0x000104b8, 139 0x00000000, 140 0x00010541, 141 0x00000000, 142 0x000e00c3, 143 0x00000010, 144 0xffffff00, 145 0x00000014, 146 0x00000000, 147 0x0000003c, 148 0xffffff00, 149 0x00000040, 150 0x00000000, 151 0x00000018, 152 0xfff80000, 153 0x00000044, 154 0xfff80000, 155 0x00000074, 156 0xffff0000, 157 0x00000078, 158 0xffffe000, 159 0x00000068, 160 0xfccc0000, 161 0x0000006c, 162 0x00000000, 163 0x00000070, 164 0x00000000, 165 0x00000004, 166 0xffffff00, 167 0x00000008, 168 0x00000000, 169 0x0000000c, 170 0x00000000, 171 0x00000800, 172 }; 173 174 static uint32_t gf100_ce_code[] = { 175 /* 0x0000: main */ 176 0x04fe04bd, 177 0x3517f000, 178 0xf10010fe, 179 0xf1040017, 180 0xf0fff327, 181 0x12d00023, 182 0x0c25f0c0, 183 0xf40012d0, 184 0x17f11031, 185 0x27f01200, 186 0x0012d003, 187 /* 0x002f: spin */ 188 0xf40031f4, 189 0x0ef40028, 190 /* 0x0035: ih */ 191 0x8001cffd, 192 0xf40812c4, 193 0x21f4060b, 194 /* 0x0041: ih_no_chsw */ 195 0x0412c4ca, 196 0xf5070bf4, 197 /* 0x004b: ih_no_cmd */ 198 0xc4010221, 199 0x01d00c11, 200 /* 0x0053: swctx */ 201 0xf101f840, 202 0xfe770047, 203 0x47f1004b, 204 0x44cf2100, 205 0x0144f000, 206 0xb60444b6, 207 0xf7f13040, 208 0xf4b6061c, 209 0x1457f106, 210 0x00f5d101, 211 0xb6043594, 212 0x57fe0250, 213 0x0145fe00, 214 0x010052b7, 215 0x00ff67f1, 216 0x56fd60bd, 217 0x0253f004, 218 0xf80545fa, 219 0x0053f003, 220 0xd100e7f0, 221 0x549800fe, 222 0x0845b600, 223 0xb6015698, 224 0x46fd1864, 225 0x0047fe05, 226 0xf00204b9, 227 0x01f40643, 228 0x0604fa09, 229 /* 0x00c3: swctx_load */ 230 0xfa060ef4, 231 /* 0x00c6: swctx_done */ 232 0x03f80504, 233 /* 0x00ca: chsw */ 234 0x27f100f8, 235 0x23cf1400, 236 0x1e3fc800, 237 0xf4170bf4, 238 0x21f40132, 239 0x1e3af053, 240 0xf00023d0, 241 0x24d00147, 242 /* 0x00eb: chsw_no_unload */ 243 0xcf00f880, 244 0x3dc84023, 245 0x090bf41e, 246 0xf40131f4, 247 /* 0x00fa: chsw_finish_load */ 248 0x37f05321, 249 0x8023d002, 250 /* 0x0102: dispatch */ 251 0x37f100f8, 252 0x32cf1900, 253 0x0033cf40, 254 0x07ff24e4, 255 0xf11024b6, 256 0xbd010057, 257 /* 0x011b: dispatch_loop */ 258 0x5874bd64, 259 0x57580056, 260 0x0450b601, 261 0xf40446b8, 262 0x76bb4d08, 263 0x0447b800, 264 0xbb0f08f4, 265 0x74b60276, 266 0x0057bb03, 267 /* 0x013f: dispatch_valid_mthd */ 268 0xbbdf0ef4, 269 0x44b60246, 270 0x0045bb03, 271 0xfd014598, 272 0x54b00453, 273 0x201bf400, 274 0x58004558, 275 0x64b00146, 276 0x091bf400, 277 0xf4005380, 278 /* 0x0166: dispatch_cmd */ 279 0x32f4300e, 280 0xf455f901, 281 0x0ef40c01, 282 /* 0x0171: dispatch_invalid_bitfield */ 283 0x0225f025, 284 /* 0x0174: dispatch_illegal_mthd */ 285 /* 0x0177: dispatch_error */ 286 0xf10125f0, 287 0xd0100047, 288 0x43d00042, 289 0x4027f040, 290 /* 0x0187: hostirq_wait */ 291 0xcf0002d0, 292 0x24f08002, 293 0x0024b040, 294 /* 0x0193: dispatch_done */ 295 0xf1f71bf4, 296 0xf01d0027, 297 0x23d00137, 298 /* 0x019f: cmd_nop */ 299 0xf800f800, 300 /* 0x01a1: cmd_pm_trigger */ 301 0x0027f100, 302 0xf034bd22, 303 0x23d00233, 304 /* 0x01af: cmd_exec_set_format */ 305 0xf400f800, 306 0x01b0f030, 307 0x0101b000, 308 0xb00201b0, 309 0x04980301, 310 0x3045c71a, 311 0xc70150b6, 312 0x60b63446, 313 0x3847c701, 314 0xf40170b6, 315 0x84bd0232, 316 /* 0x01da: ncomp_loop */ 317 0x4ac494bd, 318 0x0445b60f, 319 /* 0x01e2: bpc_loop */ 320 0xa430b4bd, 321 0x0f18f404, 322 0xbbc0a5ff, 323 0x31f400cb, 324 0x220ef402, 325 /* 0x01f4: cmp_c0 */ 326 0xf00c1bf4, 327 0xcbbb10c7, 328 0x160ef400, 329 /* 0x0200: cmp_c1 */ 330 0xf406a430, 331 0xc7f00c18, 332 0x00cbbb14, 333 /* 0x020f: cmp_zero */ 334 0xf1070ef4, 335 /* 0x0213: bpc_next */ 336 0x380080c7, 337 0x80b601c8, 338 0x01b0b601, 339 0xf404b5b8, 340 0x90b6c308, 341 0x0497b801, 342 0xfdb208f4, 343 0x06800065, 344 0x1d08980e, 345 0xf40068fd, 346 0x64bd0502, 347 /* 0x023c: dst_xcnt */ 348 0x800075fd, 349 0x78fd1907, 350 0x1057f100, 351 0x0654b608, 352 0xd00056d0, 353 0x50b74057, 354 0x06980800, 355 0x0162b619, 356 0x980864b6, 357 0x72b60e07, 358 0x0567fd01, 359 0xb70056d0, 360 0xb4010050, 361 0x56d00060, 362 0x0160b400, 363 0xb44056d0, 364 0x56d00260, 365 0x0360b480, 366 0xb7c056d0, 367 0x98040050, 368 0x56d01b06, 369 0x1c069800, 370 0xf44056d0, 371 0x00f81030, 372 /* 0x029c: cmd_exec_set_surface_tiled */ 373 0xc7075798, 374 0x78c76879, 375 0x0380b664, 376 0xb06077c7, 377 0x1bf40e76, 378 0x0477f009, 379 /* 0x02b7: xtile64 */ 380 0xf00f0ef4, 381 0x70b6027c, 382 0x0947fd11, 383 /* 0x02c3: xtileok */ 384 0x980677f0, 385 0x5b980c5a, 386 0x00abfd0e, 387 0xbb01b7f0, 388 0xb2b604b7, 389 0xc4abff01, 390 0x9805a7bb, 391 0xe7f00d5d, 392 0x04e8bb01, 393 0xff01e2b6, 394 0xd8bbb4de, 395 0x01e0b605, 396 0xbb0cef94, 397 0xfefd02eb, 398 0x026cf005, 399 0x020860b7, 400 0xd00864b6, 401 0xb7bb006f, 402 0x00cbbb04, 403 0x98085f98, 404 0xfbfd0e5b, 405 0x01b7f000, 406 0xb604b7bb, 407 0xfbbb01b2, 408 0x05f7bb00, 409 0x5f98f0f9, 410 0x01b7f009, 411 0xb604b8bb, 412 0xfbbb01b2, 413 0x05f8bb00, 414 0x78bbf0f9, 415 0x0282b600, 416 0xbb01b7f0, 417 0xb9bb04b8, 418 0x0b589804, 419 0xbb01e7f0, 420 0xe2b604e9, 421 0xf48eff01, 422 0xbb04f7bb, 423 0x79bb00cf, 424 0x0589bb00, 425 0x90fcf0fc, 426 0xbb00d9fd, 427 0x89fd00ad, 428 0x008ffd00, 429 0xbb00a8bb, 430 0x92b604a7, 431 0x0497bb01, 432 0x988069d0, 433 0x58980557, 434 0x00acbb04, 435 0xb6007abb, 436 0x84b60081, 437 0x058bfd10, 438 0x060062b7, 439 0xb70067d0, 440 0xd0040060, 441 0x00f80068, 442 /* 0x03a8: cmd_exec_set_surface_linear */ 443 0xb7026cf0, 444 0xb6020260, 445 0x57980864, 446 0x0067d005, 447 0x040060b7, 448 0xb6045798, 449 0x67d01074, 450 0x0060b700, 451 0x06579804, 452 0xf80067d0, 453 /* 0x03d1: cmd_exec_wait */ 454 0xf900f900, 455 0x0007f110, 456 0x0604b608, 457 /* 0x03dc: loop */ 458 0xf00001cf, 459 0x1bf40114, 460 0xfc10fcfa, 461 /* 0x03eb: cmd_exec_query */ 462 0xc800f800, 463 0x1bf40d34, 464 0xd121f570, 465 0x0c47f103, 466 0x0644b608, 467 0xb6020598, 468 0x45d00450, 469 0x4040d000, 470 0xd00c57f0, 471 0x40b78045, 472 0x05980400, 473 0x1054b601, 474 0xb70045d0, 475 0xf1050040, 476 0xf00b0057, 477 0x45d00153, 478 0x4057f100, 479 0x0154b640, 480 0x808053f1, 481 0xf14045d0, 482 0xf1111057, 483 0xd0131253, 484 0x57f18045, 485 0x53f11514, 486 0x45d01716, 487 0x0157f1c0, 488 0x0153f026, 489 0x080047f1, 490 0xd00644b6, 491 /* 0x045e: query_counter */ 492 0x21f50045, 493 0x47f103d1, 494 0x44b6080c, 495 0x02059806, 496 0xd00045d0, 497 0x57f04040, 498 0x8045d004, 499 0x040040b7, 500 0xb6010598, 501 0x45d01054, 502 0x0040b700, 503 0x0057f105, 504 0x0045d003, 505 0x111057f1, 506 0x131253f1, 507 0x984045d0, 508 0x40b70305, 509 0x45d00500, 510 0x0157f100, 511 0x0153f026, 512 0x080047f1, 513 0xd00644b6, 514 0x00f80045, 515 /* 0x04b8: cmd_exec */ 516 0x03d121f5, 517 0xf4003fc8, 518 0x21f50e0b, 519 0x47f101af, 520 0x0ef40200, 521 /* 0x04cd: cmd_exec_no_format */ 522 0x1067f11e, 523 0x0664b608, 524 0x800177f0, 525 0x07800e07, 526 0x1d079819, 527 0xd00067d0, 528 0x44bd4067, 529 /* 0x04e8: cmd_exec_init_src_surface */ 530 0xbd0232f4, 531 0x043fc854, 532 0xf50a0bf4, 533 0xf403a821, 534 /* 0x04fa: src_tiled */ 535 0x21f50a0e, 536 0x49f0029c, 537 /* 0x0501: cmd_exec_init_dst_surface */ 538 0x0231f407, 539 0xc82c57f0, 540 0x0bf4083f, 541 0xa821f50a, 542 0x0a0ef403, 543 /* 0x0514: dst_tiled */ 544 0x029c21f5, 545 /* 0x051b: cmd_exec_kick */ 546 0xf10849f0, 547 0xb6080057, 548 0x06980654, 549 0x4056d01e, 550 0xf14167f0, 551 0xfd440063, 552 0x54d00546, 553 0x0c3fc800, 554 0xf5070bf4, 555 /* 0x053f: cmd_exec_done */ 556 0xf803eb21, 557 /* 0x0541: cmd_wrcache_flush */ 558 0x0027f100, 559 0xf034bd22, 560 0x23d00133, 561 0x0000f800, 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 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 }; 607