summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2003-11-05- Tie the DRM to a specific device: setunique no longer succeeds when givenEric Anholt
2003-11-05Use int64_t instead of s64 -- fixes FreeBSD compile, works on linux.Eric Anholt
2003-11-05Args for the BSD DRM_PUT_USER_UNCHECKED were swapped.Eric Anholt
2003-11-05__linux__ is spelled with a lowercase 'l'Eric Anholt
2003-11-05Repo-copy linux/drm/kernel/drm.h to shared/drm/kernel/drm.h and use it onEric Anholt
2003-11-05Remove buf_alloc which is unused since the locking commit.Eric Anholt
2003-11-04build fixMichel Daenzer
2003-11-04Memory layout transition:Michel Daenzer
2003-11-03Add i852/i855 PCI ID. Also fix whitespace in the other ID definitions.Eric Anholt
2003-10-27Add a DRM_PUT_USER_UNCHECKED, which will be used by an upcoming radeonEric Anholt
2003-10-24Don't try to use dev->dma_lock unless dma is initialized (dev->dma != NULL)Eric Anholt
2003-10-24Switch pci enumeration call to work on both 2.4 and 2.6 pci_for_each_dev isJon Smirl
2003-10-24Move the REALLY_HAVE_AGP endif above the mtrr functions. Broke tdfx module.Eric Anholt
2003-10-23Move to "old-style" probing as documented in linux/Documentation/pci.txt.Eric Anholt
2003-10-23Missed the sis.h header in Makefile.linux in the move to shared/.Eric Anholt
2003-10-23The SiS300 pci id also covers the 305, so make the name reflect that.Eric Anholt
2003-10-23- Introduce a new ioctl, DRM_IOCTL_SET_VERSION. This ioctl allows theEric Anholt
2003-10-22- Add DRM_GET_PRIV_WITH_RETURN macro. This can be used in shared code toEric Anholt
2003-10-22Fix warning about static DRM(bufs_info) defined but not used in theEric Anholt
2003-10-20Fix the possibility of sleeping with locks held in sysctls by copying theEric Anholt
2003-10-20Clean up BSD MTRR handling. The NetBSD code is untested, but it's my bestEric Anholt
2003-10-19- SMPng lock the DRM. This is only partial -- there are a few code pathsEric Anholt
2003-10-19Clean up extra zeroing of dev->dma, and use calloc to take advantage ofEric Anholt
2003-10-19Fix probing on 2.5+ kernels, which require that drivers have .id_table set.Eric Anholt
2003-10-17- Move IRQ functions from drm_dma.h to new drm_irq.h and disentangle themEric Anholt
2003-10-17- Converted Linux drivers to initialize DRM instances based on PCI IDs, notEric Anholt
2003-10-16Introduce COMMIT_RING() as in radeon DRM, stop using error prone writebackMichel Daenzer
2003-10-16Try that again. It's a long.Eric Anholt
2003-10-16Debug printf format fix.Eric Anholt
2003-10-03Some code cleanups done while working on locking. Reduces always-trueEric Anholt
2003-10-03Stylistic preparation for SMPng locking work: DRM_LOCK/DRM_UNLOCK have sideEric Anholt
2003-10-02Add an MIT-style copyright, assigned to myself, to these files. I thinkEric Anholt
2003-10-02Axe more old gamma DMA infrastructure.Eric Anholt
2003-10-02Mostly whitespace cleanups and style(9) fixes focused on "if(" -> "if ("Eric Anholt
2003-10-02Wrap sys/endian.h usage with __FreeBSD_version >= 480000.Eric Anholt
2003-10-02Allow the DRM to attach to a "drmsub" device. This will be provided by theEric Anholt
2003-10-02MTRR issue with SMP and -stable seems to be resolved. Re-enable MTRRs onEric Anholt
2003-09-30file via_drm.h was initially added on branch cle266-0-0-1-branch.Jose Fonseca
2003-09-30file via.h was initially added on branch cle266-0-0-1-branch.Jose Fonseca
2003-09-30file via_drv.c was initially added on branch cle266-0-0-1-branch.Jose Fonseca
2003-09-30file via_drv.h was initially added on branch cle266-0-0-1-branch.Jose Fonseca
2003-09-30file via_ds.c was initially added on branch cle266-0-0-1-branch.Jose Fonseca
2003-09-30file via_ds.h was initially added on branch cle266-0-0-1-branch.Jose Fonseca
2003-09-30file via_map.c was initially added on branch cle266-0-0-1-branch.Jose Fonseca
2003-09-30file via_mm.c was initially added on branch cle266-0-0-1-branch.Jose Fonseca
2003-09-30file via_mm.h was initially added on branch cle266-0-0-1-branch.Jose Fonseca
2003-09-28Fix typo in SiS help message (and testing cvs commit toLeif Delgass
2003-09-25Whitespace cleanup (spaces before tabs or instead of tabs).Eric Anholt
2003-09-25Whitespace cleanup.Eric Anholt
2003-09-25Fix Kconfig for SiS DRM now that it doesn't require sisfb.Eric Anholt
'n379' href='#n379'>379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662
/* 
 * Copyright 2007 Matthieu CASTET <castet.matthieu@free.fr>
 * All Rights Reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice (including the next
 * paragraph) shall be included in all copies or substantial portions of the
 * Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 */

#include "drmP.h"
#include "drm.h"
#include "nouveau_drm.h"
#include "nouveau_drv.h"


static void nv10_praph_pipe(drm_device_t *dev) {
	drm_nouveau_private_t *dev_priv = dev->dev_private;
	int i;

	nouveau_wait_for_idle(dev);
	/* XXX check haiku comments */
	NV_WRITE(NV10_PGRAPH_XFMODE0, 0x10000000);
	NV_WRITE(NV10_PGRAPH_XFMODE1, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_ADDRESS, 0x000064c0);
	for (i = 0; i < 4; i++)
		NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x3f800000);
	for (i = 0; i < 4; i++)
		NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);

	NV_WRITE(NV10_PGRAPH_PIPE_ADDRESS, 0x00006ab0);
	
	for (i = 0; i < 3; i++)
		NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x3f800000);

	NV_WRITE(NV10_PGRAPH_PIPE_ADDRESS, 0x00006a80);
	for (i = 0; i < 3; i++)
		NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);

	NV_WRITE(NV10_PGRAPH_PIPE_ADDRESS, 0x00000040);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000008);

	NV_WRITE(NV10_PGRAPH_PIPE_ADDRESS, 0x00000200);
	for (i = 0; i < 48; i++)
		NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);

	nouveau_wait_for_idle(dev);

	NV_WRITE(NV10_PGRAPH_XFMODE0, 0x00000000);
	NV_WRITE(NV10_PGRAPH_XFMODE1, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_ADDRESS, 0x00006400);
	for (i = 0; i < 211; i++)
		NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);

	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x3f800000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x40000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x40000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x40000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x40000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x3f800000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x3f000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x3f000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x3f800000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x3f800000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x3f800000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x3f800000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x3f800000);

	NV_WRITE(NV10_PGRAPH_PIPE_ADDRESS, 0x00006800);
	for (i = 0; i < 162; i++)
		NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x3f800000);
	for (i = 0; i < 25; i++)
		NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);

	NV_WRITE(NV10_PGRAPH_PIPE_ADDRESS, 0x00006c00);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0xbf800000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_ADDRESS, 0x00007000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x7149f2ca);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x7149f2ca);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x7149f2ca);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x7149f2ca);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x7149f2ca);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x7149f2ca);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x7149f2ca);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);
	NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x7149f2ca);
	for (i = 0; i < 35; i++)
		NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);


	NV_WRITE(NV10_PGRAPH_PIPE_ADDRESS, 0x00007400);
	for (i = 0; i < 48; i++)
		NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);

	NV_WRITE(NV10_PGRAPH_PIPE_ADDRESS, 0x00007800);
	for (i = 0; i < 48; i++)
		NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);

	NV_WRITE(NV10_PGRAPH_PIPE_ADDRESS, 0x00004400);
	for (i = 0; i < 32; i++)
		NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);

	NV_WRITE(NV10_PGRAPH_PIPE_ADDRESS, 0x00000000);
	for (i = 0; i < 16; i++)
		NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);

	NV_WRITE(NV10_PGRAPH_PIPE_ADDRESS, 0x00000040);
	for (i = 0; i < 4; i++)
		NV_WRITE(NV10_PGRAPH_PIPE_DATA, 0x00000000);

	nouveau_wait_for_idle(dev);
}

/* TODO replace address with name
   use loops */
static int nv10_graph_ctx_regs [] = {
NV03_PGRAPH_XY_LOGIC_MISC0,

NV10_PGRAPH_CTX_SWITCH1,
NV10_PGRAPH_CTX_SWITCH2,
NV10_PGRAPH_CTX_SWITCH3,
NV10_PGRAPH_CTX_SWITCH4,
NV10_PGRAPH_CTX_SWITCH5,
NV10_PGRAPH_CTX_CACHE1,	/* 8 values from 0x400160 to 0x40017c */
NV10_PGRAPH_CTX_CACHE2,	/* 8 values from 0x400180 to 0x40019c */
NV10_PGRAPH_CTX_CACHE3,	/* 8 values from 0x4001a0 to 0x4001bc */
NV10_PGRAPH_CTX_CACHE4,	/* 8 values from 0x4001c0 to 0x4001dc */
NV10_PGRAPH_CTX_CACHE5,	/* 8 values from 0x4001e0 to 0x4001fc */
0x00400164,
0x00400184,
0x004001a4,
0x004001c4,
0x004001e4,
0x00400168,
0x00400188,
0x004001a8,
0x004001c8,
0x004001e8,
0x0040016c,
0x0040018c,
0x004001ac,
0x004001cc,
0x004001ec,
0x00400170,
0x00400190,
0x004001b0,
0x004001d0,
0x004001f0,
0x00400174,
0x00400194,
0x004001b4,
0x004001d4,
0x004001f4,
0x00400178,
0x00400198,
0x004001b8,
0x004001d8,
0x004001f8,
0x0040017c,
0x0040019c,
0x004001bc,
0x004001dc,
0x004001fc,
NV10_PGRAPH_CTX_USER,
NV04_PGRAPH_DMA_START_0,
NV04_PGRAPH_DMA_START_1,
NV04_PGRAPH_DMA_LENGTH,
NV04_PGRAPH_DMA_MISC,
NV10_PGRAPH_DMA_PITCH,
NV04_PGRAPH_BOFFSET0,
NV04_PGRAPH_BBASE0,
NV04_PGRAPH_BLIMIT0,
NV04_PGRAPH_BOFFSET1,
NV04_PGRAPH_BBASE1,
NV04_PGRAPH_BLIMIT1,
NV04_PGRAPH_BOFFSET2,
NV04_PGRAPH_BBASE2,
NV04_PGRAPH_BLIMIT2,
NV04_PGRAPH_BOFFSET3,
NV04_PGRAPH_BBASE3,
NV04_PGRAPH_BLIMIT3,
NV04_PGRAPH_BOFFSET4,
NV04_PGRAPH_BBASE4,
NV04_PGRAPH_BLIMIT4,
NV04_PGRAPH_BOFFSET5,
NV04_PGRAPH_BBASE5,
NV04_PGRAPH_BLIMIT5,
NV04_PGRAPH_BPITCH0,
NV04_PGRAPH_BPITCH1,
NV04_PGRAPH_BPITCH2,
NV04_PGRAPH_BPITCH3,
NV04_PGRAPH_BPITCH4,
NV10_PGRAPH_SURFACE,
NV10_PGRAPH_STATE,
NV04_PGRAPH_BSWIZZLE2,
NV04_PGRAPH_BSWIZZLE5,
NV04_PGRAPH_BPIXEL,
NV10_PGRAPH_NOTIFY,
NV04_PGRAPH_PATT_COLOR0,
NV04_PGRAPH_PATT_COLOR1,
NV04_PGRAPH_PATT_COLORRAM, /* 64 values from 0x400900 to 0x4009fc */
0x00400904,
0x00400908,
0x0040090c,
0x00400910,
0x00400914,
0x00400918,
0x0040091c,
0x00400920,
0x00400924,
0x00400928,
0x0040092c,
0x00400930,
0x00400934,
0x00400938,
0x0040093c,
0x00400940,
0x00400944,
0x00400948,
0x0040094c,
0x00400950,
0x00400954,
0x00400958,
0x0040095c,
0x00400960,
0x00400964,
0x00400968,
0x0040096c,
0x00400970,
0x00400974,
0x00400978,
0x0040097c,
0x00400980,
0x00400984,
0x00400988,
0x0040098c,
0x00400990,
0x00400994,
0x00400998,
0x0040099c,
0x004009a0,
0x004009a4,
0x004009a8,
0x004009ac,
0x004009b0,
0x004009b4,
0x004009b8,
0x004009bc,
0x004009c0,
0x004009c4,
0x004009c8,
0x004009cc,
0x004009d0,
0x004009d4,
0x004009d8,
0x004009dc,
0x004009e0,
0x004009e4,
0x004009e8,
0x004009ec,
0x004009f0,
0x004009f4,
0x004009f8,
0x004009fc,
NV04_PGRAPH_PATTERN,	/* 2 values from 0x400808 to 0x40080c */
0x0040080c,
NV04_PGRAPH_PATTERN_SHAPE,
NV03_PGRAPH_MONO_COLOR0,
NV04_PGRAPH_ROP3,
NV04_PGRAPH_CHROMA,
NV04_PGRAPH_BETA_AND,
NV04_PGRAPH_BETA_PREMULT,
0x00400e70,
0x00400e74,
0x00400e78,
0x00400e7c,
0x00400e80,
0x00400e84,
0x00400e88,
0x00400e8c,
0x00400ea0,
0x00400ea4,
0x00400ea8,
0x00400e90,
0x00400e94,
0x00400e98,
0x00400e9c,
NV10_PGRAPH_WINDOWCLIP_HORIZONTAL, /* 8 values from 0x400f00 to 0x400f1c */
NV10_PGRAPH_WINDOWCLIP_VERTICAL,   /* 8 values from 0x400f20 to 0x400f3c */
0x00400f04,
0x00400f24,
0x00400f08,
0x00400f28,
0x00400f0c,
0x00400f2c,
0x00400f10,
0x00400f30,
0x00400f14,
0x00400f34,
0x00400f18,
0x00400f38,
0x00400f1c,
0x00400f3c,
NV10_PGRAPH_XFMODE0,
NV10_PGRAPH_XFMODE1,
NV10_PGRAPH_GLOBALSTATE0,
NV10_PGRAPH_GLOBALSTATE1,
NV04_PGRAPH_STORED_FMT,
NV04_PGRAPH_SOURCE_COLOR,
NV03_PGRAPH_ABS_X_RAM,	/* 32 values from 0x400400 to 0x40047c */
NV03_PGRAPH_ABS_Y_RAM,	/* 32 values from 0x400480 to 0x4004fc */
0x00400404,
0x00400484,
0x00400408,
0x00400488,
0x0040040c,
0x0040048c,
0x00400410,
0x00400490,
0x00400414,
0x00400494,
0x00400418,
0x00400498,
0x0040041c,
0x0040049c,
0x00400420,
0x004004a0,
0x00400424,
0x004004a4,
0x00400428,
0x004004a8,
0x0040042c,
0x004004ac,
0x00400430,
0x004004b0,
0x00400434,
0x004004b4,
0x00400438,
0x004004b8,
0x0040043c,
0x004004bc,
0x00400440,
0x004004c0,
0x00400444,
0x004004c4,
0x00400448,
0x004004c8,
0x0040044c,
0x004004cc,
0x00400450,
0x004004d0,
0x00400454,
0x004004d4,
0x00400458,
0x004004d8,
0x0040045c,
0x004004dc,
0x00400460,
0x004004e0,
0x00400464,
0x004004e4,
0x00400468,
0x004004e8,
0x0040046c,
0x004004ec,
0x00400470,
0x004004f0,
0x00400474,
0x004004f4,
0x00400478,
0x004004f8,
0x0040047c,
0x004004fc,
NV03_PGRAPH_ABS_UCLIP_XMIN,
NV03_PGRAPH_ABS_UCLIP_XMAX,
NV03_PGRAPH_ABS_UCLIP_YMIN,
NV03_PGRAPH_ABS_UCLIP_YMAX,
0x00400550,
0x00400558,