Lines Matching +full:0 +full:x0810

61 	VGA_WR08(par->PCIO, 0x3D4, 0x1F);  in NVLockUnlock()
62 VGA_WR08(par->PCIO, 0x3D5, Lock ? 0x99 : 0x57); in NVLockUnlock()
64 VGA_WR08(par->PCIO, 0x3D4, 0x11); in NVLockUnlock()
65 cr11 = VGA_RD08(par->PCIO, 0x3D5); in NVLockUnlock()
67 cr11 |= 0x80; in NVLockUnlock()
69 cr11 &= ~0x80; in NVLockUnlock()
70 VGA_WR08(par->PCIO, 0x3D5, cr11); in NVLockUnlock()
77 par->CurrentState->cursor1 = (par->CurrentState->cursor1 & 0xFE) | in NVShowHideCursor()
78 (ShowHide & 0x01); in NVShowHideCursor()
79 VGA_WR08(par->PCIO, 0x3D4, 0x31); in NVShowHideCursor()
80 VGA_WR08(par->PCIO, 0x3D5, par->CurrentState->cursor1); in NVShowHideCursor()
83 NV_WR32(par->PRAMDAC, 0x0300, NV_RD32(par->PRAMDAC, 0x0300)); in NVShowHideCursor()
85 return (cur & 0x01); in NVShowHideCursor()
147 pll = NV_RD32(par->PMC, 0x4020); in nvGetClocks()
148 P = (pll >> 16) & 0x07; in nvGetClocks()
149 pll = NV_RD32(par->PMC, 0x4024); in nvGetClocks()
150 M = pll & 0xFF; in nvGetClocks()
151 N = (pll >> 8) & 0xFF; in nvGetClocks()
152 if (((par->Chipset & 0xfff0) == 0x0290) || in nvGetClocks()
153 ((par->Chipset & 0xfff0) == 0x0390)) { in nvGetClocks()
157 MB = (pll >> 16) & 0xFF; in nvGetClocks()
158 NB = (pll >> 24) & 0xFF; in nvGetClocks()
162 pll = NV_RD32(par->PMC, 0x4000); in nvGetClocks()
163 P = (pll >> 16) & 0x07; in nvGetClocks()
164 pll = NV_RD32(par->PMC, 0x4004); in nvGetClocks()
165 M = pll & 0xFF; in nvGetClocks()
166 N = (pll >> 8) & 0xFF; in nvGetClocks()
167 MB = (pll >> 16) & 0xFF; in nvGetClocks()
168 NB = (pll >> 24) & 0xFF; in nvGetClocks()
172 pll = NV_RD32(par->PRAMDAC0, 0x0504); in nvGetClocks()
173 M = pll & 0xFF; in nvGetClocks()
174 N = (pll >> 8) & 0xFF; in nvGetClocks()
175 P = (pll >> 16) & 0x0F; in nvGetClocks()
176 pll = NV_RD32(par->PRAMDAC0, 0x0574); in nvGetClocks()
177 if (pll & 0x80000000) { in nvGetClocks()
178 MB = pll & 0xFF; in nvGetClocks()
179 NB = (pll >> 8) & 0xFF; in nvGetClocks()
186 pll = NV_RD32(par->PRAMDAC0, 0x0500); in nvGetClocks()
187 M = pll & 0xFF; in nvGetClocks()
188 N = (pll >> 8) & 0xFF; in nvGetClocks()
189 P = (pll >> 16) & 0x0F; in nvGetClocks()
190 pll = NV_RD32(par->PRAMDAC0, 0x0570); in nvGetClocks()
191 if (pll & 0x80000000) { in nvGetClocks()
192 MB = pll & 0xFF; in nvGetClocks()
193 NB = (pll >> 8) & 0xFF; in nvGetClocks()
200 if (((par->Chipset & 0x0ff0) == 0x0300) || in nvGetClocks()
201 ((par->Chipset & 0x0ff0) == 0x0330)) { in nvGetClocks()
202 pll = NV_RD32(par->PRAMDAC0, 0x0504); in nvGetClocks()
203 M = pll & 0x0F; in nvGetClocks()
204 N = (pll >> 8) & 0xFF; in nvGetClocks()
205 P = (pll >> 16) & 0x07; in nvGetClocks()
206 if (pll & 0x00000080) { in nvGetClocks()
207 MB = (pll >> 4) & 0x07; in nvGetClocks()
208 NB = (pll >> 19) & 0x1f; in nvGetClocks()
215 pll = NV_RD32(par->PRAMDAC0, 0x0500); in nvGetClocks()
216 M = pll & 0x0F; in nvGetClocks()
217 N = (pll >> 8) & 0xFF; in nvGetClocks()
218 P = (pll >> 16) & 0x07; in nvGetClocks()
219 if (pll & 0x00000080) { in nvGetClocks()
220 MB = (pll >> 4) & 0x07; in nvGetClocks()
221 NB = (pll >> 19) & 0x1f; in nvGetClocks()
228 pll = NV_RD32(par->PRAMDAC0, 0x0504); in nvGetClocks()
229 M = pll & 0xFF; in nvGetClocks()
230 N = (pll >> 8) & 0xFF; in nvGetClocks()
231 P = (pll >> 16) & 0x0F; in nvGetClocks()
234 pll = NV_RD32(par->PRAMDAC0, 0x0500); in nvGetClocks()
235 M = pll & 0xFF; in nvGetClocks()
236 N = (pll >> 8) & 0xFF; in nvGetClocks()
237 P = (pll >> 16) & 0x0F; in nvGetClocks()
261 clwm = 0; in nv4CalcArbitration()
262 vlwm = 0; in nv4CalcArbitration()
283 nvclks += 0; in nv4CalcArbitration()
284 pclks += 0; in nv4CalcArbitration()
285 found = 0; in nv4CalcArbitration()
286 vbs = 0; in nv4CalcArbitration()
344 if ((p1 < m1) && (m1 > 0)) { in nv4CalcArbitration()
345 fifo->valid = 0; in nv4CalcArbitration()
346 found = 0; in nv4CalcArbitration()
347 if (mclk_extra == 0) in nv4CalcArbitration()
352 fifo->valid = 0; in nv4CalcArbitration()
353 found = 0; in nv4CalcArbitration()
354 if (mclk_extra == 0) in nv4CalcArbitration()
360 fifo->valid = 0; in nv4CalcArbitration()
361 found = 0; in nv4CalcArbitration()
362 if (mclk_extra == 0) in nv4CalcArbitration()
391 cfg1 = NV_RD32(par->PFB, 0x00000204); in nv4UpdateArbitrationSettings()
393 sim_data.enable_video = 0; in nv4UpdateArbitrationSettings()
394 sim_data.enable_mp = 0; in nv4UpdateArbitrationSettings()
395 sim_data.memory_width = (NV_RD32(par->PEXTDEV, 0x0000) & 0x10) ? in nv4UpdateArbitrationSettings()
397 sim_data.mem_latency = (char)cfg1 & 0x0F; in nv4UpdateArbitrationSettings()
400 (char)(((cfg1 >> 4) & 0x0F) + ((cfg1 >> 31) & 0x01)); in nv4UpdateArbitrationSettings()
401 sim_data.gr_during_vid = 0; in nv4UpdateArbitrationSettings()
408 *burst = 0; in nv4UpdateArbitrationSettings()
439 clwm = 0; in nv10CalcArbitration()
457 if (arb->memory_type == 0) in nv10CalcArbitration()
486 nvclks += 0; in nv10CalcArbitration()
487 pclks += 0; in nv10CalcArbitration()
488 found = 0; in nv10CalcArbitration()
554 clwm = 0xfff; in nv10CalcArbitration()
579 if ((p2 < m1) && (m1 > 0)) { in nv10CalcArbitration()
580 fifo->valid = 0; in nv10CalcArbitration()
581 found = 0; in nv10CalcArbitration()
582 if (min_mclk_extra == 0) { in nv10CalcArbitration()
595 fifo->valid = 0; in nv10CalcArbitration()
596 found = 0; in nv10CalcArbitration()
597 if (min_mclk_extra == 0) in nv10CalcArbitration()
608 /* printf("CRT LWM: %f bytes, prog: 0x%x, bs: 256\n", in nv10CalcArbitration()
630 cfg1 = NV_RD32(par->PFB, 0x0204); in nv10UpdateArbitrationSettings()
633 sim_data.enable_mp = 0; in nv10UpdateArbitrationSettings()
634 sim_data.memory_type = (NV_RD32(par->PFB, 0x0200) & 0x01) ? 1 : 0; in nv10UpdateArbitrationSettings()
635 sim_data.memory_width = (NV_RD32(par->PEXTDEV, 0x0000) & 0x10) ? in nv10UpdateArbitrationSettings()
637 sim_data.mem_latency = (char)cfg1 & 0x0F; in nv10UpdateArbitrationSettings()
640 (char)(((cfg1 >> 4) & 0x0F) + ((cfg1 >> 31) & 0x01)); in nv10UpdateArbitrationSettings()
641 sim_data.gr_during_vid = 0; in nv10UpdateArbitrationSettings()
648 *burst = 0; in nv10UpdateArbitrationSettings()
670 *burst = 0; in nv30UpdateArbitrationSettings()
688 if ((par->Chipset & 0x0FF0) == 0x01A0) { in nForceUpdateArbitrationSettings()
690 dev = pci_get_domain_bus_and_slot(domain, 0, 3); in nForceUpdateArbitrationSettings()
691 pci_read_config_dword(dev, 0x6C, &uMClkPostDiv); in nForceUpdateArbitrationSettings()
692 uMClkPostDiv = (uMClkPostDiv >> 8) & 0xf; in nForceUpdateArbitrationSettings()
698 dev = pci_get_domain_bus_and_slot(domain, 0, 5); in nForceUpdateArbitrationSettings()
699 pci_read_config_dword(dev, 0x4c, &MClk); in nForceUpdateArbitrationSettings()
703 pll = NV_RD32(par->PRAMDAC0, 0x0500); in nForceUpdateArbitrationSettings()
704 M = (pll >> 0) & 0xFF; in nForceUpdateArbitrationSettings()
705 N = (pll >> 8) & 0xFF; in nForceUpdateArbitrationSettings()
706 P = (pll >> 16) & 0x0F; in nForceUpdateArbitrationSettings()
709 sim_data.enable_video = 0; in nForceUpdateArbitrationSettings()
710 sim_data.enable_mp = 0; in nForceUpdateArbitrationSettings()
711 dev = pci_get_domain_bus_and_slot(domain, 0, 1); in nForceUpdateArbitrationSettings()
712 pci_read_config_dword(dev, 0x7C, &sim_data.memory_type); in nForceUpdateArbitrationSettings()
717 dev = pci_get_domain_bus_and_slot(domain, 0, 3); in nForceUpdateArbitrationSettings()
718 pci_read_config_dword(dev, 0, &memctrl); in nForceUpdateArbitrationSettings()
722 if ((memctrl == 0x1A9) || (memctrl == 0x1AB) || (memctrl == 0x1ED)) { in nForceUpdateArbitrationSettings()
725 dev = pci_get_domain_bus_and_slot(domain, 0, 2); in nForceUpdateArbitrationSettings()
726 pci_read_config_dword(dev, 0x40, &dimm[0]); in nForceUpdateArbitrationSettings()
727 dimm[0] = (dimm[0] >> 8) & 0x4f; in nForceUpdateArbitrationSettings()
728 pci_read_config_dword(dev, 0x44, &dimm[1]); in nForceUpdateArbitrationSettings()
729 dimm[1] = (dimm[1] >> 8) & 0x4f; in nForceUpdateArbitrationSettings()
730 pci_read_config_dword(dev, 0x48, &dimm[2]); in nForceUpdateArbitrationSettings()
731 dimm[2] = (dimm[2] >> 8) & 0x4f; in nForceUpdateArbitrationSettings()
733 if ((dimm[0] + dimm[1]) != dimm[2]) { in nForceUpdateArbitrationSettings()
743 sim_data.gr_during_vid = 0; in nForceUpdateArbitrationSettings()
750 *burst = 0; in nForceUpdateArbitrationSettings()
774 DeltaOld = 0xFFFFFFFF; in CalcVClock()
786 for (P = 0; P <= 4; P++) { in CalcVClock()
820 DeltaOld = 0xFFFFFFFF; in CalcVClock2Stage()
822 *pllBOut = 0x80000401; /* fixed at x4 for now */ in CalcVClock2Stage()
826 for (P = 0; P <= 6; P++) { in CalcVClock2Stage()
862 int pixelDepth, VClk = 0; in NVCalcStateExt()
885 state->cursor0 = 0x00; in NVCalcStateExt()
886 state->cursor1 = 0xbC; in NVCalcStateExt()
889 state->cursor2 = 0x00000000; in NVCalcStateExt()
890 state->pllsel = 0x10000700; in NVCalcStateExt()
891 state->config = 0x00001114; in NVCalcStateExt()
892 state->general = bpp == 16 ? 0x00101100 : 0x00100100; in NVCalcStateExt()
893 state->repaint1 = hDisplaySize < 1280 ? 0x04 : 0x00; in NVCalcStateExt()
897 state->control = NV_RD32(par->PRAMDAC0, 0x0580) & in NVCalcStateExt()
898 0xeffffeff; in NVCalcStateExt()
904 if ((par->Chipset & 0xfff0) == 0x0240 || in NVCalcStateExt()
905 (par->Chipset & 0xfff0) == 0x03d0) { in NVCalcStateExt()
907 state->arbitration1 = 0x0480; in NVCalcStateExt()
908 } else if (((par->Chipset & 0xffff) == 0x01A0) || in NVCalcStateExt()
909 ((par->Chipset & 0xffff) == 0x01f0)) { in NVCalcStateExt()
927 state->cursor0 = 0x80 | (par->CursorStart >> 17); in NVCalcStateExt()
932 state->pllsel = 0x10000700; in NVCalcStateExt()
933 state->config = NV_RD32(par->PFB, 0x00000200); in NVCalcStateExt()
934 state->general = bpp == 16 ? 0x00101100 : 0x00100100; in NVCalcStateExt()
935 state->repaint1 = hDisplaySize < 1280 ? 0x04 : 0x00; in NVCalcStateExt()
940 state->general |= 0x00000030; in NVCalcStateExt()
942 state->repaint0 = (((width / 8) * pixelDepth) & 0x700) >> 3; in NVCalcStateExt()
950 NV_WR32(par->PMC, 0x0140, 0x00000000); in NVLoadStateExt()
951 NV_WR32(par->PMC, 0x0200, 0xFFFF00FF); in NVLoadStateExt()
952 NV_WR32(par->PMC, 0x0200, 0xFFFFFFFF); in NVLoadStateExt()
954 NV_WR32(par->PTIMER, 0x0200 * 4, 0x00000008); in NVLoadStateExt()
955 NV_WR32(par->PTIMER, 0x0210 * 4, 0x00000003); in NVLoadStateExt()
956 NV_WR32(par->PTIMER, 0x0140 * 4, 0x00000000); in NVLoadStateExt()
957 NV_WR32(par->PTIMER, 0x0100 * 4, 0xFFFFFFFF); in NVLoadStateExt()
961 NV_WR32(par->PFB, 0x0200, state->config); in NVLoadStateExt()
963 (par->Chipset & 0xfff0) == 0x0040) { in NVLoadStateExt()
964 for (i = 0; i < 8; i++) { in NVLoadStateExt()
965 NV_WR32(par->PFB, 0x0240 + (i * 0x10), 0); in NVLoadStateExt()
966 NV_WR32(par->PFB, 0x0244 + (i * 0x10), in NVLoadStateExt()
972 if (((par->Chipset & 0xfff0) == 0x0090) || in NVLoadStateExt()
973 ((par->Chipset & 0xfff0) == 0x01D0) || in NVLoadStateExt()
974 ((par->Chipset & 0xfff0) == 0x0290) || in NVLoadStateExt()
975 ((par->Chipset & 0xfff0) == 0x0390) || in NVLoadStateExt()
976 ((par->Chipset & 0xfff0) == 0x03D0)) in NVLoadStateExt()
978 for(i = 0; i < regions; i++) { in NVLoadStateExt()
979 NV_WR32(par->PFB, 0x0600 + (i * 0x10), 0); in NVLoadStateExt()
980 NV_WR32(par->PFB, 0x0604 + (i * 0x10), in NVLoadStateExt()
986 NV_WR32(par->PRAMIN, 0x0000 * 4, 0x80000010); in NVLoadStateExt()
987 NV_WR32(par->PRAMIN, 0x0001 * 4, 0x00101202); in NVLoadStateExt()
988 NV_WR32(par->PRAMIN, 0x0002 * 4, 0x80000011); in NVLoadStateExt()
989 NV_WR32(par->PRAMIN, 0x0003 * 4, 0x00101204); in NVLoadStateExt()
990 NV_WR32(par->PRAMIN, 0x0004 * 4, 0x80000012); in NVLoadStateExt()
991 NV_WR32(par->PRAMIN, 0x0005 * 4, 0x00101206); in NVLoadStateExt()
992 NV_WR32(par->PRAMIN, 0x0006 * 4, 0x80000013); in NVLoadStateExt()
993 NV_WR32(par->PRAMIN, 0x0007 * 4, 0x00101208); in NVLoadStateExt()
994 NV_WR32(par->PRAMIN, 0x0008 * 4, 0x80000014); in NVLoadStateExt()
995 NV_WR32(par->PRAMIN, 0x0009 * 4, 0x0010120A); in NVLoadStateExt()
996 NV_WR32(par->PRAMIN, 0x000A * 4, 0x80000015); in NVLoadStateExt()
997 NV_WR32(par->PRAMIN, 0x000B * 4, 0x0010120C); in NVLoadStateExt()
998 NV_WR32(par->PRAMIN, 0x000C * 4, 0x80000016); in NVLoadStateExt()
999 NV_WR32(par->PRAMIN, 0x000D * 4, 0x0010120E); in NVLoadStateExt()
1000 NV_WR32(par->PRAMIN, 0x000E * 4, 0x80000017); in NVLoadStateExt()
1001 NV_WR32(par->PRAMIN, 0x000F * 4, 0x00101210); in NVLoadStateExt()
1002 NV_WR32(par->PRAMIN, 0x0800 * 4, 0x00003000); in NVLoadStateExt()
1003 NV_WR32(par->PRAMIN, 0x0801 * 4, par->FbMapSize - 1); in NVLoadStateExt()
1004 NV_WR32(par->PRAMIN, 0x0802 * 4, 0x00000002); in NVLoadStateExt()
1005 NV_WR32(par->PRAMIN, 0x0808 * 4, 0x02080062); in NVLoadStateExt()
1006 NV_WR32(par->PRAMIN, 0x0809 * 4, 0x00000000); in NVLoadStateExt()
1007 NV_WR32(par->PRAMIN, 0x080A * 4, 0x00001200); in NVLoadStateExt()
1008 NV_WR32(par->PRAMIN, 0x080B * 4, 0x00001200); in NVLoadStateExt()
1009 NV_WR32(par->PRAMIN, 0x080C * 4, 0x00000000); in NVLoadStateExt()
1010 NV_WR32(par->PRAMIN, 0x080D * 4, 0x00000000); in NVLoadStateExt()
1011 NV_WR32(par->PRAMIN, 0x0810 * 4, 0x02080043); in NVLoadStateExt()
1012 NV_WR32(par->PRAMIN, 0x0811 * 4, 0x00000000); in NVLoadStateExt()
1013 NV_WR32(par->PRAMIN, 0x0812 * 4, 0x00000000); in NVLoadStateExt()
1014 NV_WR32(par->PRAMIN, 0x0813 * 4, 0x00000000); in NVLoadStateExt()
1015 NV_WR32(par->PRAMIN, 0x0814 * 4, 0x00000000); in NVLoadStateExt()
1016 NV_WR32(par->PRAMIN, 0x0815 * 4, 0x00000000); in NVLoadStateExt()
1017 NV_WR32(par->PRAMIN, 0x0818 * 4, 0x02080044); in NVLoadStateExt()
1018 NV_WR32(par->PRAMIN, 0x0819 * 4, 0x02000000); in NVLoadStateExt()
1019 NV_WR32(par->PRAMIN, 0x081A * 4, 0x00000000); in NVLoadStateExt()
1020 NV_WR32(par->PRAMIN, 0x081B * 4, 0x00000000); in NVLoadStateExt()
1021 NV_WR32(par->PRAMIN, 0x081C * 4, 0x00000000); in NVLoadStateExt()
1022 NV_WR32(par->PRAMIN, 0x081D * 4, 0x00000000); in NVLoadStateExt()
1023 NV_WR32(par->PRAMIN, 0x0820 * 4, 0x02080019); in NVLoadStateExt()
1024 NV_WR32(par->PRAMIN, 0x0821 * 4, 0x00000000); in NVLoadStateExt()
1025 NV_WR32(par->PRAMIN, 0x0822 * 4, 0x00000000); in NVLoadStateExt()
1026 NV_WR32(par->PRAMIN, 0x0823 * 4, 0x00000000); in NVLoadStateExt()
1027 NV_WR32(par->PRAMIN, 0x0824 * 4, 0x00000000); in NVLoadStateExt()
1028 NV_WR32(par->PRAMIN, 0x0825 * 4, 0x00000000); in NVLoadStateExt()
1029 NV_WR32(par->PRAMIN, 0x0828 * 4, 0x020A005C); in NVLoadStateExt()
1030 NV_WR32(par->PRAMIN, 0x0829 * 4, 0x00000000); in NVLoadStateExt()
1031 NV_WR32(par->PRAMIN, 0x082A * 4, 0x00000000); in NVLoadStateExt()
1032 NV_WR32(par->PRAMIN, 0x082B * 4, 0x00000000); in NVLoadStateExt()
1033 NV_WR32(par->PRAMIN, 0x082C * 4, 0x00000000); in NVLoadStateExt()
1034 NV_WR32(par->PRAMIN, 0x082D * 4, 0x00000000); in NVLoadStateExt()
1035 NV_WR32(par->PRAMIN, 0x0830 * 4, 0x0208009F); in NVLoadStateExt()
1036 NV_WR32(par->PRAMIN, 0x0831 * 4, 0x00000000); in NVLoadStateExt()
1037 NV_WR32(par->PRAMIN, 0x0832 * 4, 0x00001200); in NVLoadStateExt()
1038 NV_WR32(par->PRAMIN, 0x0833 * 4, 0x00001200); in NVLoadStateExt()
1039 NV_WR32(par->PRAMIN, 0x0834 * 4, 0x00000000); in NVLoadStateExt()
1040 NV_WR32(par->PRAMIN, 0x0835 * 4, 0x00000000); in NVLoadStateExt()
1041 NV_WR32(par->PRAMIN, 0x0838 * 4, 0x0208004A); in NVLoadStateExt()
1042 NV_WR32(par->PRAMIN, 0x0839 * 4, 0x02000000); in NVLoadStateExt()
1043 NV_WR32(par->PRAMIN, 0x083A * 4, 0x00000000); in NVLoadStateExt()
1044 NV_WR32(par->PRAMIN, 0x083B * 4, 0x00000000); in NVLoadStateExt()
1045 NV_WR32(par->PRAMIN, 0x083C * 4, 0x00000000); in NVLoadStateExt()
1046 NV_WR32(par->PRAMIN, 0x083D * 4, 0x00000000); in NVLoadStateExt()
1047 NV_WR32(par->PRAMIN, 0x0840 * 4, 0x02080077); in NVLoadStateExt()
1048 NV_WR32(par->PRAMIN, 0x0841 * 4, 0x00000000); in NVLoadStateExt()
1049 NV_WR32(par->PRAMIN, 0x0842 * 4, 0x00001200); in NVLoadStateExt()
1050 NV_WR32(par->PRAMIN, 0x0843 * 4, 0x00001200); in NVLoadStateExt()
1051 NV_WR32(par->PRAMIN, 0x0844 * 4, 0x00000000); in NVLoadStateExt()
1052 NV_WR32(par->PRAMIN, 0x0845 * 4, 0x00000000); in NVLoadStateExt()
1053 NV_WR32(par->PRAMIN, 0x084C * 4, 0x00003002); in NVLoadStateExt()
1054 NV_WR32(par->PRAMIN, 0x084D * 4, 0x00007FFF); in NVLoadStateExt()
1055 NV_WR32(par->PRAMIN, 0x084E * 4, in NVLoadStateExt()
1056 par->FbUsableSize | 0x00000002); in NVLoadStateExt()
1059 NV_WR32(par->PRAMIN, 0x080A * 4, in NVLoadStateExt()
1060 NV_RD32(par->PRAMIN, 0x080A * 4) | 0x01000000); in NVLoadStateExt()
1061 NV_WR32(par->PRAMIN, 0x0812 * 4, in NVLoadStateExt()
1062 NV_RD32(par->PRAMIN, 0x0812 * 4) | 0x01000000); in NVLoadStateExt()
1063 NV_WR32(par->PRAMIN, 0x081A * 4, in NVLoadStateExt()
1064 NV_RD32(par->PRAMIN, 0x081A * 4) | 0x01000000); in NVLoadStateExt()
1065 NV_WR32(par->PRAMIN, 0x0822 * 4, in NVLoadStateExt()
1066 NV_RD32(par->PRAMIN, 0x0822 * 4) | 0x01000000); in NVLoadStateExt()
1067 NV_WR32(par->PRAMIN, 0x082A * 4, in NVLoadStateExt()
1068 NV_RD32(par->PRAMIN, 0x082A * 4) | 0x01000000); in NVLoadStateExt()
1069 NV_WR32(par->PRAMIN, 0x0832 * 4, in NVLoadStateExt()
1070 NV_RD32(par->PRAMIN, 0x0832 * 4) | 0x01000000); in NVLoadStateExt()
1071 NV_WR32(par->PRAMIN, 0x083A * 4, in NVLoadStateExt()
1072 NV_RD32(par->PRAMIN, 0x083A * 4) | 0x01000000); in NVLoadStateExt()
1073 NV_WR32(par->PRAMIN, 0x0842 * 4, in NVLoadStateExt()
1074 NV_RD32(par->PRAMIN, 0x0842 * 4) | 0x01000000); in NVLoadStateExt()
1075 NV_WR32(par->PRAMIN, 0x0819 * 4, 0x01000000); in NVLoadStateExt()
1076 NV_WR32(par->PRAMIN, 0x0839 * 4, 0x01000000); in NVLoadStateExt()
1079 NV_WR32(par->PRAMIN, 0x0000 * 4, 0x80000010); in NVLoadStateExt()
1080 NV_WR32(par->PRAMIN, 0x0001 * 4, 0x80011201); in NVLoadStateExt()
1081 NV_WR32(par->PRAMIN, 0x0002 * 4, 0x80000011); in NVLoadStateExt()
1082 NV_WR32(par->PRAMIN, 0x0003 * 4, 0x80011202); in NVLoadStateExt()
1083 NV_WR32(par->PRAMIN, 0x0004 * 4, 0x80000012); in NVLoadStateExt()
1084 NV_WR32(par->PRAMIN, 0x0005 * 4, 0x80011203); in NVLoadStateExt()
1085 NV_WR32(par->PRAMIN, 0x0006 * 4, 0x80000013); in NVLoadStateExt()
1086 NV_WR32(par->PRAMIN, 0x0007 * 4, 0x80011204); in NVLoadStateExt()
1087 NV_WR32(par->PRAMIN, 0x0008 * 4, 0x80000014); in NVLoadStateExt()
1088 NV_WR32(par->PRAMIN, 0x0009 * 4, 0x80011205); in NVLoadStateExt()
1089 NV_WR32(par->PRAMIN, 0x000A * 4, 0x80000015); in NVLoadStateExt()
1090 NV_WR32(par->PRAMIN, 0x000B * 4, 0x80011206); in NVLoadStateExt()
1091 NV_WR32(par->PRAMIN, 0x000C * 4, 0x80000016); in NVLoadStateExt()
1092 NV_WR32(par->PRAMIN, 0x000D * 4, 0x80011207); in NVLoadStateExt()
1093 NV_WR32(par->PRAMIN, 0x000E * 4, 0x80000017); in NVLoadStateExt()
1094 NV_WR32(par->PRAMIN, 0x000F * 4, 0x80011208); in NVLoadStateExt()
1095 NV_WR32(par->PRAMIN, 0x0800 * 4, 0x00003000); in NVLoadStateExt()
1096 NV_WR32(par->PRAMIN, 0x0801 * 4, par->FbMapSize - 1); in NVLoadStateExt()
1097 NV_WR32(par->PRAMIN, 0x0802 * 4, 0x00000002); in NVLoadStateExt()
1098 NV_WR32(par->PRAMIN, 0x0803 * 4, 0x00000002); in NVLoadStateExt()
1100 NV_WR32(par->PRAMIN, 0x0804 * 4, 0x01008062); in NVLoadStateExt()
1102 NV_WR32(par->PRAMIN, 0x0804 * 4, 0x01008042); in NVLoadStateExt()
1103 NV_WR32(par->PRAMIN, 0x0805 * 4, 0x00000000); in NVLoadStateExt()
1104 NV_WR32(par->PRAMIN, 0x0806 * 4, 0x12001200); in NVLoadStateExt()
1105 NV_WR32(par->PRAMIN, 0x0807 * 4, 0x00000000); in NVLoadStateExt()
1106 NV_WR32(par->PRAMIN, 0x0808 * 4, 0x01008043); in NVLoadStateExt()
1107 NV_WR32(par->PRAMIN, 0x0809 * 4, 0x00000000); in NVLoadStateExt()
1108 NV_WR32(par->PRAMIN, 0x080A * 4, 0x00000000); in NVLoadStateExt()
1109 NV_WR32(par->PRAMIN, 0x080B * 4, 0x00000000); in NVLoadStateExt()
1110 NV_WR32(par->PRAMIN, 0x080C * 4, 0x01008044); in NVLoadStateExt()
1111 NV_WR32(par->PRAMIN, 0x080D * 4, 0x00000002); in NVLoadStateExt()
1112 NV_WR32(par->PRAMIN, 0x080E * 4, 0x00000000); in NVLoadStateExt()
1113 NV_WR32(par->PRAMIN, 0x080F * 4, 0x00000000); in NVLoadStateExt()
1114 NV_WR32(par->PRAMIN, 0x0810 * 4, 0x01008019); in NVLoadStateExt()
1115 NV_WR32(par->PRAMIN, 0x0811 * 4, 0x00000000); in NVLoadStateExt()
1116 NV_WR32(par->PRAMIN, 0x0812 * 4, 0x00000000); in NVLoadStateExt()
1117 NV_WR32(par->PRAMIN, 0x0813 * 4, 0x00000000); in NVLoadStateExt()
1118 NV_WR32(par->PRAMIN, 0x0814 * 4, 0x0100A05C); in NVLoadStateExt()
1119 NV_WR32(par->PRAMIN, 0x0815 * 4, 0x00000000); in NVLoadStateExt()
1120 NV_WR32(par->PRAMIN, 0x0816 * 4, 0x00000000); in NVLoadStateExt()
1121 NV_WR32(par->PRAMIN, 0x0817 * 4, 0x00000000); in NVLoadStateExt()
1123 NV_WR32(par->PRAMIN, 0x0818 * 4, 0x0100809F); in NVLoadStateExt()
1125 NV_WR32(par->PRAMIN, 0x0818 * 4, 0x0100805F); in NVLoadStateExt()
1126 NV_WR32(par->PRAMIN, 0x0819 * 4, 0x00000000); in NVLoadStateExt()
1127 NV_WR32(par->PRAMIN, 0x081A * 4, 0x12001200); in NVLoadStateExt()
1128 NV_WR32(par->PRAMIN, 0x081B * 4, 0x00000000); in NVLoadStateExt()
1129 NV_WR32(par->PRAMIN, 0x081C * 4, 0x0100804A); in NVLoadStateExt()
1130 NV_WR32(par->PRAMIN, 0x081D * 4, 0x00000002); in NVLoadStateExt()
1131 NV_WR32(par->PRAMIN, 0x081E * 4, 0x00000000); in NVLoadStateExt()
1132 NV_WR32(par->PRAMIN, 0x081F * 4, 0x00000000); in NVLoadStateExt()
1133 NV_WR32(par->PRAMIN, 0x0820 * 4, 0x01018077); in NVLoadStateExt()
1134 NV_WR32(par->PRAMIN, 0x0821 * 4, 0x00000000); in NVLoadStateExt()
1135 NV_WR32(par->PRAMIN, 0x0822 * 4, 0x12001200); in NVLoadStateExt()
1136 NV_WR32(par->PRAMIN, 0x0823 * 4, 0x00000000); in NVLoadStateExt()
1137 NV_WR32(par->PRAMIN, 0x0824 * 4, 0x00003002); in NVLoadStateExt()
1138 NV_WR32(par->PRAMIN, 0x0825 * 4, 0x00007FFF); in NVLoadStateExt()
1139 NV_WR32(par->PRAMIN, 0x0826 * 4, in NVLoadStateExt()
1140 par->FbUsableSize | 0x00000002); in NVLoadStateExt()
1141 NV_WR32(par->PRAMIN, 0x0827 * 4, 0x00000002); in NVLoadStateExt()
1143 NV_WR32(par->PRAMIN, 0x0804 * 4, in NVLoadStateExt()
1144 NV_RD32(par->PRAMIN, 0x0804 * 4) | 0x00080000); in NVLoadStateExt()
1145 NV_WR32(par->PRAMIN, 0x0808 * 4, in NVLoadStateExt()
1146 NV_RD32(par->PRAMIN, 0x0808 * 4) | 0x00080000); in NVLoadStateExt()
1147 NV_WR32(par->PRAMIN, 0x080C * 4, in NVLoadStateExt()
1148 NV_RD32(par->PRAMIN, 0x080C * 4) | 0x00080000); in NVLoadStateExt()
1149 NV_WR32(par->PRAMIN, 0x0810 * 4, in NVLoadStateExt()
1150 NV_RD32(par->PRAMIN, 0x0810 * 4) | 0x00080000); in NVLoadStateExt()
1151 NV_WR32(par->PRAMIN, 0x0814 * 4, in NVLoadStateExt()
1152 NV_RD32(par->PRAMIN, 0x0814 * 4) | 0x00080000); in NVLoadStateExt()
1153 NV_WR32(par->PRAMIN, 0x0818 * 4, in NVLoadStateExt()
1154 NV_RD32(par->PRAMIN, 0x0818 * 4) | 0x00080000); in NVLoadStateExt()
1155 NV_WR32(par->PRAMIN, 0x081C * 4, in NVLoadStateExt()
1156 NV_RD32(par->PRAMIN, 0x081C * 4) | 0x00080000); in NVLoadStateExt()
1157 NV_WR32(par->PRAMIN, 0x0820 * 4, in NVLoadStateExt()
1158 NV_RD32(par->PRAMIN, 0x0820 * 4) | 0x00080000); in NVLoadStateExt()
1159 NV_WR32(par->PRAMIN, 0x080D * 4, 0x00000001); in NVLoadStateExt()
1160 NV_WR32(par->PRAMIN, 0x081D * 4, 0x00000001); in NVLoadStateExt()
1164 if ((par->Chipset & 0x0fff) == 0x0020) { in NVLoadStateExt()
1165 NV_WR32(par->PRAMIN, 0x0824 * 4, in NVLoadStateExt()
1166 NV_RD32(par->PRAMIN, 0x0824 * 4) | 0x00020000); in NVLoadStateExt()
1167 NV_WR32(par->PRAMIN, 0x0826 * 4, in NVLoadStateExt()
1169 0x0826 * 4) + par->FbAddress); in NVLoadStateExt()
1171 NV_WR32(par->PGRAPH, 0x0080, 0x000001FF); in NVLoadStateExt()
1172 NV_WR32(par->PGRAPH, 0x0080, 0x1230C000); in NVLoadStateExt()
1173 NV_WR32(par->PGRAPH, 0x0084, 0x72111101); in NVLoadStateExt()
1174 NV_WR32(par->PGRAPH, 0x0088, 0x11D5F071); in NVLoadStateExt()
1175 NV_WR32(par->PGRAPH, 0x008C, 0x0004FF31); in NVLoadStateExt()
1176 NV_WR32(par->PGRAPH, 0x008C, 0x4004FF31); in NVLoadStateExt()
1177 NV_WR32(par->PGRAPH, 0x0140, 0x00000000); in NVLoadStateExt()
1178 NV_WR32(par->PGRAPH, 0x0100, 0xFFFFFFFF); in NVLoadStateExt()
1179 NV_WR32(par->PGRAPH, 0x0170, 0x10010100); in NVLoadStateExt()
1180 NV_WR32(par->PGRAPH, 0x0710, 0xFFFFFFFF); in NVLoadStateExt()
1181 NV_WR32(par->PGRAPH, 0x0720, 0x00000001); in NVLoadStateExt()
1182 NV_WR32(par->PGRAPH, 0x0810, 0x00000000); in NVLoadStateExt()
1183 NV_WR32(par->PGRAPH, 0x0608, 0xFFFFFFFF); in NVLoadStateExt()
1185 NV_WR32(par->PGRAPH, 0x0080, 0xFFFFFFFF); in NVLoadStateExt()
1186 NV_WR32(par->PGRAPH, 0x0080, 0x00000000); in NVLoadStateExt()
1188 NV_WR32(par->PGRAPH, 0x0140, 0x00000000); in NVLoadStateExt()
1189 NV_WR32(par->PGRAPH, 0x0100, 0xFFFFFFFF); in NVLoadStateExt()
1190 NV_WR32(par->PGRAPH, 0x0144, 0x10010100); in NVLoadStateExt()
1191 NV_WR32(par->PGRAPH, 0x0714, 0xFFFFFFFF); in NVLoadStateExt()
1192 NV_WR32(par->PGRAPH, 0x0720, 0x00000001); in NVLoadStateExt()
1193 NV_WR32(par->PGRAPH, 0x0710, in NVLoadStateExt()
1194 NV_RD32(par->PGRAPH, 0x0710) & 0x0007ff00); in NVLoadStateExt()
1195 NV_WR32(par->PGRAPH, 0x0710, in NVLoadStateExt()
1196 NV_RD32(par->PGRAPH, 0x0710) | 0x00020100); in NVLoadStateExt()
1199 NV_WR32(par->PGRAPH, 0x0084, 0x00118700); in NVLoadStateExt()
1200 NV_WR32(par->PGRAPH, 0x0088, 0x24E00810); in NVLoadStateExt()
1201 NV_WR32(par->PGRAPH, 0x008C, 0x55DE0030); in NVLoadStateExt()
1203 for (i = 0; i < 32; i++) in NVLoadStateExt()
1204 NV_WR32(&par->PGRAPH[(0x0B00 / 4) + i], 0, in NVLoadStateExt()
1205 NV_RD32(&par->PFB[(0x0240 / 4) + i], in NVLoadStateExt()
1206 0)); in NVLoadStateExt()
1208 NV_WR32(par->PGRAPH, 0x640, 0); in NVLoadStateExt()
1209 NV_WR32(par->PGRAPH, 0x644, 0); in NVLoadStateExt()
1210 NV_WR32(par->PGRAPH, 0x684, par->FbMapSize - 1); in NVLoadStateExt()
1211 NV_WR32(par->PGRAPH, 0x688, par->FbMapSize - 1); in NVLoadStateExt()
1213 NV_WR32(par->PGRAPH, 0x0810, 0x00000000); in NVLoadStateExt()
1214 NV_WR32(par->PGRAPH, 0x0608, 0xFFFFFFFF); in NVLoadStateExt()
1217 NV_WR32(par->PGRAPH, 0x0084, 0x401287c0); in NVLoadStateExt()
1218 NV_WR32(par->PGRAPH, 0x008C, 0x60de8051); in NVLoadStateExt()
1219 NV_WR32(par->PGRAPH, 0x0090, 0x00008000); in NVLoadStateExt()
1220 NV_WR32(par->PGRAPH, 0x0610, 0x00be3c5f); in NVLoadStateExt()
1221 NV_WR32(par->PGRAPH, 0x0bc4, in NVLoadStateExt()
1222 NV_RD32(par->PGRAPH, 0x0bc4) | in NVLoadStateExt()
1223 0x00008000); in NVLoadStateExt()
1225 j = NV_RD32(par->REGS, 0x1540) & 0xff; in NVLoadStateExt()
1228 for (i = 0; !(j & 1); j >>= 1, i++); in NVLoadStateExt()
1229 NV_WR32(par->PGRAPH, 0x5000, i); in NVLoadStateExt()
1232 if ((par->Chipset & 0xfff0) == 0x0040) { in NVLoadStateExt()
1233 NV_WR32(par->PGRAPH, 0x09b0, in NVLoadStateExt()
1234 0x83280fff); in NVLoadStateExt()
1235 NV_WR32(par->PGRAPH, 0x09b4, in NVLoadStateExt()
1236 0x000000a0); in NVLoadStateExt()
1238 NV_WR32(par->PGRAPH, 0x0820, in NVLoadStateExt()
1239 0x83280eff); in NVLoadStateExt()
1240 NV_WR32(par->PGRAPH, 0x0824, in NVLoadStateExt()
1241 0x000000a0); in NVLoadStateExt()
1244 switch (par->Chipset & 0xfff0) { in NVLoadStateExt()
1245 case 0x0040: in NVLoadStateExt()
1246 case 0x0210: in NVLoadStateExt()
1247 NV_WR32(par->PGRAPH, 0x09b8, in NVLoadStateExt()
1248 0x0078e366); in NVLoadStateExt()
1249 NV_WR32(par->PGRAPH, 0x09bc, in NVLoadStateExt()
1250 0x0000014c); in NVLoadStateExt()
1251 NV_WR32(par->PFB, 0x033C, in NVLoadStateExt()
1252 NV_RD32(par->PFB, 0x33C) & in NVLoadStateExt()
1253 0xffff7fff); in NVLoadStateExt()
1255 case 0x00C0: in NVLoadStateExt()
1256 case 0x0120: in NVLoadStateExt()
1257 NV_WR32(par->PGRAPH, 0x0828, in NVLoadStateExt()
1258 0x007596ff); in NVLoadStateExt()
1259 NV_WR32(par->PGRAPH, 0x082C, in NVLoadStateExt()
1260 0x00000108); in NVLoadStateExt()
1262 case 0x0160: in NVLoadStateExt()
1263 case 0x01D0: in NVLoadStateExt()
1264 case 0x0240: in NVLoadStateExt()
1265 case 0x03D0: in NVLoadStateExt()
1266 NV_WR32(par->PMC, 0x1700, in NVLoadStateExt()
1267 NV_RD32(par->PFB, 0x020C)); in NVLoadStateExt()
1268 NV_WR32(par->PMC, 0x1704, 0); in NVLoadStateExt()
1269 NV_WR32(par->PMC, 0x1708, 0); in NVLoadStateExt()
1270 NV_WR32(par->PMC, 0x170C, in NVLoadStateExt()
1271 NV_RD32(par->PFB, 0x020C)); in NVLoadStateExt()
1272 NV_WR32(par->PGRAPH, 0x0860, 0); in NVLoadStateExt()
1273 NV_WR32(par->PGRAPH, 0x0864, 0); in NVLoadStateExt()
1274 NV_WR32(par->PRAMDAC, 0x0608, in NVLoadStateExt()
1276 0x0608) | 0x00100000); in NVLoadStateExt()
1278 case 0x0140: in NVLoadStateExt()
1279 NV_WR32(par->PGRAPH, 0x0828, in NVLoadStateExt()
1280 0x0072cb77); in NVLoadStateExt()
1281 NV_WR32(par->PGRAPH, 0x082C, in NVLoadStateExt()
1282 0x00000108); in NVLoadStateExt()
1284 case 0x0220: in NVLoadStateExt()
1285 NV_WR32(par->PGRAPH, 0x0860, 0); in NVLoadStateExt()
1286 NV_WR32(par->PGRAPH, 0x0864, 0); in NVLoadStateExt()
1287 NV_WR32(par->PRAMDAC, 0x0608, in NVLoadStateExt()
1288 NV_RD32(par->PRAMDAC, 0x0608) | in NVLoadStateExt()
1289 0x00100000); in NVLoadStateExt()
1291 case 0x0090: in NVLoadStateExt()
1292 case 0x0290: in NVLoadStateExt()
1293 case 0x0390: in NVLoadStateExt()
1294 NV_WR32(par->PRAMDAC, 0x0608, in NVLoadStateExt()
1295 NV_RD32(par->PRAMDAC, 0x0608) | in NVLoadStateExt()
1296 0x00100000); in NVLoadStateExt()
1297 NV_WR32(par->PGRAPH, 0x0828, in NVLoadStateExt()
1298 0x07830610); in NVLoadStateExt()
1299 NV_WR32(par->PGRAPH, 0x082C, in NVLoadStateExt()
1300 0x0000016A); in NVLoadStateExt()
1306 NV_WR32(par->PGRAPH, 0x0b38, 0x2ffff800); in NVLoadStateExt()
1307 NV_WR32(par->PGRAPH, 0x0b3c, 0x00006000); in NVLoadStateExt()
1308 NV_WR32(par->PGRAPH, 0x032C, 0x01000000); in NVLoadStateExt()
1309 NV_WR32(par->PGRAPH, 0x0220, 0x00001200); in NVLoadStateExt()
1311 NV_WR32(par->PGRAPH, 0x0084, 0x40108700); in NVLoadStateExt()
1312 NV_WR32(par->PGRAPH, 0x0890, 0x00140000); in NVLoadStateExt()
1313 NV_WR32(par->PGRAPH, 0x008C, 0xf00e0431); in NVLoadStateExt()
1314 NV_WR32(par->PGRAPH, 0x0090, 0x00008000); in NVLoadStateExt()
1315 NV_WR32(par->PGRAPH, 0x0610, 0xf04b1f36); in NVLoadStateExt()
1316 NV_WR32(par->PGRAPH, 0x0B80, 0x1002d888); in NVLoadStateExt()
1317 NV_WR32(par->PGRAPH, 0x0B88, 0x62ff007f); in NVLoadStateExt()
1319 NV_WR32(par->PGRAPH, 0x0084, 0x00118700); in NVLoadStateExt()
1320 NV_WR32(par->PGRAPH, 0x008C, 0xF20E0431); in NVLoadStateExt()
1321 NV_WR32(par->PGRAPH, 0x0090, 0x00000000); in NVLoadStateExt()
1322 NV_WR32(par->PGRAPH, 0x009C, 0x00000040); in NVLoadStateExt()
1324 if ((par->Chipset & 0x0ff0) >= 0x0250) { in NVLoadStateExt()
1325 NV_WR32(par->PGRAPH, 0x0890, in NVLoadStateExt()
1326 0x00080000); in NVLoadStateExt()
1327 NV_WR32(par->PGRAPH, 0x0610, in NVLoadStateExt()
1328 0x304B1FB6); in NVLoadStateExt()
1329 NV_WR32(par->PGRAPH, 0x0B80, in NVLoadStateExt()
1330 0x18B82880); in NVLoadStateExt()
1331 NV_WR32(par->PGRAPH, 0x0B84, in NVLoadStateExt()
1332 0x44000000); in NVLoadStateExt()
1333 NV_WR32(par->PGRAPH, 0x0098, in NVLoadStateExt()
1334 0x40000080); in NVLoadStateExt()
1335 NV_WR32(par->PGRAPH, 0x0B88, in NVLoadStateExt()
1336 0x000000ff); in NVLoadStateExt()
1338 NV_WR32(par->PGRAPH, 0x0880, in NVLoadStateExt()
1339 0x00080000); in NVLoadStateExt()
1340 NV_WR32(par->PGRAPH, 0x0094, in NVLoadStateExt()
1341 0x00000005); in NVLoadStateExt()
1342 NV_WR32(par->PGRAPH, 0x0B80, in NVLoadStateExt()
1343 0x45CAA208); in NVLoadStateExt()
1344 NV_WR32(par->PGRAPH, 0x0B84, in NVLoadStateExt()
1345 0x24000000); in NVLoadStateExt()
1346 NV_WR32(par->PGRAPH, 0x0098, in NVLoadStateExt()
1347 0x00000040); in NVLoadStateExt()
1348 NV_WR32(par->PGRAPH, 0x0750, in NVLoadStateExt()
1349 0x00E00038); in NVLoadStateExt()
1350 NV_WR32(par->PGRAPH, 0x0754, in NVLoadStateExt()
1351 0x00000030); in NVLoadStateExt()
1352 NV_WR32(par->PGRAPH, 0x0750, in NVLoadStateExt()
1353 0x00E10038); in NVLoadStateExt()
1354 NV_WR32(par->PGRAPH, 0x0754, in NVLoadStateExt()
1355 0x00000030); in NVLoadStateExt()
1360 ((par->Chipset & 0xfff0) == 0x0040)) { in NVLoadStateExt()
1361 for (i = 0; i < 32; i++) { in NVLoadStateExt()
1362 NV_WR32(par->PGRAPH, 0x0900 + i*4, in NVLoadStateExt()
1363 NV_RD32(par->PFB, 0x0240 +i*4)); in NVLoadStateExt()
1364 NV_WR32(par->PGRAPH, 0x6900 + i*4, in NVLoadStateExt()
1365 NV_RD32(par->PFB, 0x0240 +i*4)); in NVLoadStateExt()
1368 if (((par->Chipset & 0xfff0) == 0x0090) || in NVLoadStateExt()
1369 ((par->Chipset & 0xfff0) == 0x01D0) || in NVLoadStateExt()
1370 ((par->Chipset & 0xfff0) == 0x0290) || in NVLoadStateExt()
1371 ((par->Chipset & 0xfff0) == 0x0390) || in NVLoadStateExt()
1372 ((par->Chipset & 0xfff0) == 0x03D0)) { in NVLoadStateExt()
1373 for (i = 0; i < 60; i++) { in NVLoadStateExt()
1375 0x0D00 + i*4, in NVLoadStateExt()
1377 0x0600 + i*4)); in NVLoadStateExt()
1379 0x6900 + i*4, in NVLoadStateExt()
1381 0x0600 + i*4)); in NVLoadStateExt()
1384 for (i = 0; i < 48; i++) { in NVLoadStateExt()
1386 0x0900 + i*4, in NVLoadStateExt()
1388 0x0600 + i*4)); in NVLoadStateExt()
1389 if(((par->Chipset & 0xfff0) in NVLoadStateExt()
1390 != 0x0160) && in NVLoadStateExt()
1391 ((par->Chipset & 0xfff0) in NVLoadStateExt()
1392 != 0x0220) && in NVLoadStateExt()
1393 ((par->Chipset & 0xfff0) in NVLoadStateExt()
1394 != 0x240)) in NVLoadStateExt()
1396 0x6900 + i*4, in NVLoadStateExt()
1398 0x0600 + i*4)); in NVLoadStateExt()
1404 if ((par->Chipset & 0xfff0) == 0x0040) { in NVLoadStateExt()
1405 NV_WR32(par->PGRAPH, 0x09A4, in NVLoadStateExt()
1406 NV_RD32(par->PFB, 0x0200)); in NVLoadStateExt()
1407 NV_WR32(par->PGRAPH, 0x09A8, in NVLoadStateExt()
1408 NV_RD32(par->PFB, 0x0204)); in NVLoadStateExt()
1409 NV_WR32(par->PGRAPH, 0x69A4, in NVLoadStateExt()
1410 NV_RD32(par->PFB, 0x0200)); in NVLoadStateExt()
1411 NV_WR32(par->PGRAPH, 0x69A8, in NVLoadStateExt()
1412 NV_RD32(par->PFB, 0x0204)); in NVLoadStateExt()
1414 NV_WR32(par->PGRAPH, 0x0820, 0); in NVLoadStateExt()
1415 NV_WR32(par->PGRAPH, 0x0824, 0); in NVLoadStateExt()
1416 NV_WR32(par->PGRAPH, 0x0864, in NVLoadStateExt()
1418 NV_WR32(par->PGRAPH, 0x0868, in NVLoadStateExt()
1421 if ((par->Chipset & 0xfff0) == 0x0090 || in NVLoadStateExt()
1422 (par->Chipset & 0xfff0) == 0x01D0 || in NVLoadStateExt()
1423 (par->Chipset & 0xfff0) == 0x0290 || in NVLoadStateExt()
1424 (par->Chipset & 0xfff0) == 0x0390) { in NVLoadStateExt()
1425 NV_WR32(par->PGRAPH, 0x0DF0, in NVLoadStateExt()
1426 NV_RD32(par->PFB, 0x0200)); in NVLoadStateExt()
1427 NV_WR32(par->PGRAPH, 0x0DF4, in NVLoadStateExt()
1428 NV_RD32(par->PFB, 0x0204)); in NVLoadStateExt()
1430 NV_WR32(par->PGRAPH, 0x09F0, in NVLoadStateExt()
1431 NV_RD32(par->PFB, 0x0200)); in NVLoadStateExt()
1432 NV_WR32(par->PGRAPH, 0x09F4, in NVLoadStateExt()
1433 NV_RD32(par->PFB, 0x0204)); in NVLoadStateExt()
1435 NV_WR32(par->PGRAPH, 0x69F0, in NVLoadStateExt()
1436 NV_RD32(par->PFB, 0x0200)); in NVLoadStateExt()
1437 NV_WR32(par->PGRAPH, 0x69F4, in NVLoadStateExt()
1438 NV_RD32(par->PFB, 0x0204)); in NVLoadStateExt()
1440 NV_WR32(par->PGRAPH, 0x0840, 0); in NVLoadStateExt()
1441 NV_WR32(par->PGRAPH, 0x0844, 0); in NVLoadStateExt()
1442 NV_WR32(par->PGRAPH, 0x08a0, in NVLoadStateExt()
1444 NV_WR32(par->PGRAPH, 0x08a4, in NVLoadStateExt()
1448 NV_WR32(par->PGRAPH, 0x09A4, in NVLoadStateExt()
1449 NV_RD32(par->PFB, 0x0200)); in NVLoadStateExt()
1450 NV_WR32(par->PGRAPH, 0x09A8, in NVLoadStateExt()
1451 NV_RD32(par->PFB, 0x0204)); in NVLoadStateExt()
1452 NV_WR32(par->PGRAPH, 0x0750, 0x00EA0000); in NVLoadStateExt()
1453 NV_WR32(par->PGRAPH, 0x0754, in NVLoadStateExt()
1454 NV_RD32(par->PFB, 0x0200)); in NVLoadStateExt()
1455 NV_WR32(par->PGRAPH, 0x0750, 0x00EA0004); in NVLoadStateExt()
1456 NV_WR32(par->PGRAPH, 0x0754, in NVLoadStateExt()
1457 NV_RD32(par->PFB, 0x0204)); in NVLoadStateExt()
1459 NV_WR32(par->PGRAPH, 0x0820, 0); in NVLoadStateExt()
1460 NV_WR32(par->PGRAPH, 0x0824, 0); in NVLoadStateExt()
1461 NV_WR32(par->PGRAPH, 0x0864, in NVLoadStateExt()
1463 NV_WR32(par->PGRAPH, 0x0868, in NVLoadStateExt()
1466 NV_WR32(par->PGRAPH, 0x0B20, 0x00000000); in NVLoadStateExt()
1467 NV_WR32(par->PGRAPH, 0x0B04, 0xFFFFFFFF); in NVLoadStateExt()
1470 NV_WR32(par->PGRAPH, 0x053C, 0); in NVLoadStateExt()
1471 NV_WR32(par->PGRAPH, 0x0540, 0); in NVLoadStateExt()
1472 NV_WR32(par->PGRAPH, 0x0544, 0x00007FFF); in NVLoadStateExt()
1473 NV_WR32(par->PGRAPH, 0x0548, 0x00007FFF); in NVLoadStateExt()
1475 NV_WR32(par->PFIFO, 0x0140 * 4, 0x00000000); in NVLoadStateExt()
1476 NV_WR32(par->PFIFO, 0x0141 * 4, 0x00000001); in NVLoadStateExt()
1477 NV_WR32(par->PFIFO, 0x0480 * 4, 0x00000000); in NVLoadStateExt()
1478 NV_WR32(par->PFIFO, 0x0494 * 4, 0x00000000); in NVLoadStateExt()
1480 NV_WR32(par->PFIFO, 0x0481 * 4, 0x00010000); in NVLoadStateExt()
1482 NV_WR32(par->PFIFO, 0x0481 * 4, 0x00000100); in NVLoadStateExt()
1483 NV_WR32(par->PFIFO, 0x0490 * 4, 0x00000000); in NVLoadStateExt()
1484 NV_WR32(par->PFIFO, 0x0491 * 4, 0x00000000); in NVLoadStateExt()
1486 NV_WR32(par->PFIFO, 0x048B * 4, 0x00001213); in NVLoadStateExt()
1488 NV_WR32(par->PFIFO, 0x048B * 4, 0x00001209); in NVLoadStateExt()
1489 NV_WR32(par->PFIFO, 0x0400 * 4, 0x00000000); in NVLoadStateExt()
1490 NV_WR32(par->PFIFO, 0x0414 * 4, 0x00000000); in NVLoadStateExt()
1491 NV_WR32(par->PFIFO, 0x0084 * 4, 0x03000100); in NVLoadStateExt()
1492 NV_WR32(par->PFIFO, 0x0085 * 4, 0x00000110); in NVLoadStateExt()
1493 NV_WR32(par->PFIFO, 0x0086 * 4, 0x00000112); in NVLoadStateExt()
1494 NV_WR32(par->PFIFO, 0x0143 * 4, 0x0000FFFF); in NVLoadStateExt()
1495 NV_WR32(par->PFIFO, 0x0496 * 4, 0x0000FFFF); in NVLoadStateExt()
1496 NV_WR32(par->PFIFO, 0x0050 * 4, 0x00000000); in NVLoadStateExt()
1497 NV_WR32(par->PFIFO, 0x0040 * 4, 0xFFFFFFFF); in NVLoadStateExt()
1498 NV_WR32(par->PFIFO, 0x0415 * 4, 0x00000001); in NVLoadStateExt()
1499 NV_WR32(par->PFIFO, 0x048C * 4, 0x00000000); in NVLoadStateExt()
1500 NV_WR32(par->PFIFO, 0x04A0 * 4, 0x00000000); in NVLoadStateExt()
1502 NV_WR32(par->PFIFO, 0x0489 * 4, 0x800F0078); in NVLoadStateExt()
1504 NV_WR32(par->PFIFO, 0x0489 * 4, 0x000F0078); in NVLoadStateExt()
1506 NV_WR32(par->PFIFO, 0x0488 * 4, 0x00000001); in NVLoadStateExt()
1507 NV_WR32(par->PFIFO, 0x0480 * 4, 0x00000001); in NVLoadStateExt()
1508 NV_WR32(par->PFIFO, 0x0494 * 4, 0x00000001); in NVLoadStateExt()
1509 NV_WR32(par->PFIFO, 0x0495 * 4, 0x00000001); in NVLoadStateExt()
1510 NV_WR32(par->PFIFO, 0x0140 * 4, 0x00000001); in NVLoadStateExt()
1519 NV_WR32(par->PCRTC0, 0x0860, state->head); in NVLoadStateExt()
1520 NV_WR32(par->PCRTC0, 0x2860, state->head2); in NVLoadStateExt()
1522 NV_WR32(par->PRAMDAC, 0x0404, NV_RD32(par->PRAMDAC, 0x0404) | in NVLoadStateExt()
1525 NV_WR32(par->PMC, 0x8704, 1); in NVLoadStateExt()
1526 NV_WR32(par->PMC, 0x8140, 0); in NVLoadStateExt()
1527 NV_WR32(par->PMC, 0x8920, 0); in NVLoadStateExt()
1528 NV_WR32(par->PMC, 0x8924, 0); in NVLoadStateExt()
1529 NV_WR32(par->PMC, 0x8908, par->FbMapSize - 1); in NVLoadStateExt()
1530 NV_WR32(par->PMC, 0x890C, par->FbMapSize - 1); in NVLoadStateExt()
1531 NV_WR32(par->PMC, 0x1588, 0); in NVLoadStateExt()
1533 NV_WR32(par->PCRTC, 0x0810, state->cursorConfig); in NVLoadStateExt()
1534 NV_WR32(par->PCRTC, 0x0830, state->displayV - 3); in NVLoadStateExt()
1535 NV_WR32(par->PCRTC, 0x0834, state->displayV - 1); in NVLoadStateExt()
1538 if ((par->Chipset & 0x0ff0) == 0x0110) { in NVLoadStateExt()
1539 NV_WR32(par->PRAMDAC, 0x0528, state->dither); in NVLoadStateExt()
1541 NV_WR32(par->PRAMDAC, 0x083C, state->dither); in NVLoadStateExt()
1544 VGA_WR08(par->PCIO, 0x03D4, 0x53); in NVLoadStateExt()
1545 VGA_WR08(par->PCIO, 0x03D5, state->timingH); in NVLoadStateExt()
1546 VGA_WR08(par->PCIO, 0x03D4, 0x54); in NVLoadStateExt()
1547 VGA_WR08(par->PCIO, 0x03D5, state->timingV); in NVLoadStateExt()
1548 VGA_WR08(par->PCIO, 0x03D4, 0x21); in NVLoadStateExt()
1549 VGA_WR08(par->PCIO, 0x03D5, 0xfa); in NVLoadStateExt()
1552 VGA_WR08(par->PCIO, 0x03D4, 0x41); in NVLoadStateExt()
1553 VGA_WR08(par->PCIO, 0x03D5, state->extra); in NVLoadStateExt()
1556 VGA_WR08(par->PCIO, 0x03D4, 0x19); in NVLoadStateExt()
1557 VGA_WR08(par->PCIO, 0x03D5, state->repaint0); in NVLoadStateExt()
1558 VGA_WR08(par->PCIO, 0x03D4, 0x1A); in NVLoadStateExt()
1559 VGA_WR08(par->PCIO, 0x03D5, state->repaint1); in NVLoadStateExt()
1560 VGA_WR08(par->PCIO, 0x03D4, 0x25); in NVLoadStateExt()
1561 VGA_WR08(par->PCIO, 0x03D5, state->screen); in NVLoadStateExt()
1562 VGA_WR08(par->PCIO, 0x03D4, 0x28); in NVLoadStateExt()
1563 VGA_WR08(par->PCIO, 0x03D5, state->pixel); in NVLoadStateExt()
1564 VGA_WR08(par->PCIO, 0x03D4, 0x2D); in NVLoadStateExt()
1565 VGA_WR08(par->PCIO, 0x03D5, state->horiz); in NVLoadStateExt()
1566 VGA_WR08(par->PCIO, 0x03D4, 0x1C); in NVLoadStateExt()
1567 VGA_WR08(par->PCIO, 0x03D5, state->fifo); in NVLoadStateExt()
1568 VGA_WR08(par->PCIO, 0x03D4, 0x1B); in NVLoadStateExt()
1569 VGA_WR08(par->PCIO, 0x03D5, state->arbitration0); in NVLoadStateExt()
1570 VGA_WR08(par->PCIO, 0x03D4, 0x20); in NVLoadStateExt()
1571 VGA_WR08(par->PCIO, 0x03D5, state->arbitration1); in NVLoadStateExt()
1574 VGA_WR08(par->PCIO, 0x03D4, 0x47); in NVLoadStateExt()
1575 VGA_WR08(par->PCIO, 0x03D5, state->arbitration1 >> 8); in NVLoadStateExt()
1578 VGA_WR08(par->PCIO, 0x03D4, 0x30); in NVLoadStateExt()
1579 VGA_WR08(par->PCIO, 0x03D5, state->cursor0); in NVLoadStateExt()
1580 VGA_WR08(par->PCIO, 0x03D4, 0x31); in NVLoadStateExt()
1581 VGA_WR08(par->PCIO, 0x03D5, state->cursor1); in NVLoadStateExt()
1582 VGA_WR08(par->PCIO, 0x03D4, 0x2F); in NVLoadStateExt()
1583 VGA_WR08(par->PCIO, 0x03D5, state->cursor2); in NVLoadStateExt()
1584 VGA_WR08(par->PCIO, 0x03D4, 0x39); in NVLoadStateExt()
1585 VGA_WR08(par->PCIO, 0x03D5, state->interlace); in NVLoadStateExt()
1589 NV_WR32(par->PRAMDAC0, 0x0580, state->control); in NVLoadStateExt()
1591 NV_WR32(par->PRAMDAC0, 0x050C, state->pllsel); in NVLoadStateExt()
1592 NV_WR32(par->PRAMDAC0, 0x0508, state->vpll); in NVLoadStateExt()
1594 NV_WR32(par->PRAMDAC0, 0x0520, state->vpll2); in NVLoadStateExt()
1596 NV_WR32(par->PRAMDAC0, 0x0578, state->vpllB); in NVLoadStateExt()
1597 NV_WR32(par->PRAMDAC0, 0x057C, state->vpll2B); in NVLoadStateExt()
1600 NV_WR32(par->PRAMDAC, 0x0848, state->scale); in NVLoadStateExt()
1601 NV_WR32(par->PRAMDAC, 0x0828, state->crtcSync + in NVLoadStateExt()
1605 NV_WR32(par->PRAMDAC, 0x0600, state->general); in NVLoadStateExt()
1607 NV_WR32(par->PCRTC, 0x0140, 0); in NVLoadStateExt()
1608 NV_WR32(par->PCRTC, 0x0100, 1); in NVLoadStateExt()
1614 VGA_WR08(par->PCIO, 0x03D4, 0x19); in NVUnloadStateExt()
1615 state->repaint0 = VGA_RD08(par->PCIO, 0x03D5); in NVUnloadStateExt()
1616 VGA_WR08(par->PCIO, 0x03D4, 0x1A); in NVUnloadStateExt()
1617 state->repaint1 = VGA_RD08(par->PCIO, 0x03D5); in NVUnloadStateExt()
1618 VGA_WR08(par->PCIO, 0x03D4, 0x25); in NVUnloadStateExt()
1619 state->screen = VGA_RD08(par->PCIO, 0x03D5); in NVUnloadStateExt()
1620 VGA_WR08(par->PCIO, 0x03D4, 0x28); in NVUnloadStateExt()
1621 state->pixel = VGA_RD08(par->PCIO, 0x03D5); in NVUnloadStateExt()
1622 VGA_WR08(par->PCIO, 0x03D4, 0x2D); in NVUnloadStateExt()
1623 state->horiz = VGA_RD08(par->PCIO, 0x03D5); in NVUnloadStateExt()
1624 VGA_WR08(par->PCIO, 0x03D4, 0x1C); in NVUnloadStateExt()
1625 state->fifo = VGA_RD08(par->PCIO, 0x03D5); in NVUnloadStateExt()
1626 VGA_WR08(par->PCIO, 0x03D4, 0x1B); in NVUnloadStateExt()
1627 state->arbitration0 = VGA_RD08(par->PCIO, 0x03D5); in NVUnloadStateExt()
1628 VGA_WR08(par->PCIO, 0x03D4, 0x20); in NVUnloadStateExt()
1629 state->arbitration1 = VGA_RD08(par->PCIO, 0x03D5); in NVUnloadStateExt()
1632 VGA_WR08(par->PCIO, 0x03D4, 0x47); in NVUnloadStateExt()
1633 state->arbitration1 |= (VGA_RD08(par->PCIO, 0x03D5) & 1) << 8; in NVUnloadStateExt()
1636 VGA_WR08(par->PCIO, 0x03D4, 0x30); in NVUnloadStateExt()
1637 state->cursor0 = VGA_RD08(par->PCIO, 0x03D5); in NVUnloadStateExt()
1638 VGA_WR08(par->PCIO, 0x03D4, 0x31); in NVUnloadStateExt()
1639 state->cursor1 = VGA_RD08(par->PCIO, 0x03D5); in NVUnloadStateExt()
1640 VGA_WR08(par->PCIO, 0x03D4, 0x2F); in NVUnloadStateExt()
1641 state->cursor2 = VGA_RD08(par->PCIO, 0x03D5); in NVUnloadStateExt()
1642 VGA_WR08(par->PCIO, 0x03D4, 0x39); in NVUnloadStateExt()
1643 state->interlace = VGA_RD08(par->PCIO, 0x03D5); in NVUnloadStateExt()
1644 state->vpll = NV_RD32(par->PRAMDAC0, 0x0508); in NVUnloadStateExt()
1646 state->vpll2 = NV_RD32(par->PRAMDAC0, 0x0520); in NVUnloadStateExt()
1648 state->vpllB = NV_RD32(par->PRAMDAC0, 0x0578); in NVUnloadStateExt()
1649 state->vpll2B = NV_RD32(par->PRAMDAC0, 0x057C); in NVUnloadStateExt()
1651 state->pllsel = NV_RD32(par->PRAMDAC0, 0x050C); in NVUnloadStateExt()
1652 state->general = NV_RD32(par->PRAMDAC, 0x0600); in NVUnloadStateExt()
1653 state->scale = NV_RD32(par->PRAMDAC, 0x0848); in NVUnloadStateExt()
1654 state->config = NV_RD32(par->PFB, 0x0200); in NVUnloadStateExt()
1657 state->control = NV_RD32(par->PRAMDAC0, 0x0580); in NVUnloadStateExt()
1661 state->head = NV_RD32(par->PCRTC0, 0x0860); in NVUnloadStateExt()
1662 state->head2 = NV_RD32(par->PCRTC0, 0x2860); in NVUnloadStateExt()
1663 VGA_WR08(par->PCIO, 0x03D4, 0x44); in NVUnloadStateExt()
1664 state->crtcOwner = VGA_RD08(par->PCIO, 0x03D5); in NVUnloadStateExt()
1666 VGA_WR08(par->PCIO, 0x03D4, 0x41); in NVUnloadStateExt()
1667 state->extra = VGA_RD08(par->PCIO, 0x03D5); in NVUnloadStateExt()
1668 state->cursorConfig = NV_RD32(par->PCRTC, 0x0810); in NVUnloadStateExt()
1670 if ((par->Chipset & 0x0ff0) == 0x0110) { in NVUnloadStateExt()
1671 state->dither = NV_RD32(par->PRAMDAC, 0x0528); in NVUnloadStateExt()
1673 state->dither = NV_RD32(par->PRAMDAC, 0x083C); in NVUnloadStateExt()
1677 VGA_WR08(par->PCIO, 0x03D4, 0x53); in NVUnloadStateExt()
1678 state->timingH = VGA_RD08(par->PCIO, 0x03D5); in NVUnloadStateExt()
1679 VGA_WR08(par->PCIO, 0x03D4, 0x54); in NVUnloadStateExt()
1680 state->timingV = VGA_RD08(par->PCIO, 0x03D5); in NVUnloadStateExt()
1687 NV_WR32(par->PCRTC, 0x800, start); in NVSetStartAddress()