Lines Matching refs:PMINFO
43 …outDAC1064(PMINFO M1064_XCURCTRL, inDAC1064(PMINFO M1064_XCURCTRL) ^ M1064_XCURCTRL_DIS ^ M1064_XC… in matroxfb_DAC1064_flashcursor()
60 matroxfb_createcursorshape(PMINFO p, p->var.vmode); in matroxfb_DAC1064_createcursor()
114 outDAC1064(PMINFO M1064_XCURCTRL, M1064_XCURCTRL_DIS); in matroxfb_DAC1064_cursor()
120 matroxfb_DAC1064_createcursor(PMINFO p); in matroxfb_DAC1064_cursor()
134 outDAC1064(PMINFO M1064_XCURCTRL, M1064_XCURCTRL_DIS); in matroxfb_DAC1064_cursor()
143 outDAC1064(PMINFO M1064_XCURCTRL, M1064_XCURCTRL_XGA); in matroxfb_DAC1064_cursor()
167 fvco = PLL_calcclock(PMINFO freq, fmax, in, feed, &p); in DAC1064_calcclock()
211 DAC1064_calcclock(PMINFO fout, ACCESS_FBINFO(max_pixel_clock), &m, &n, &p); in DAC1064_setpclk()
225 hw->DACclk[3] = inDAC1064(PMINFO DAC1064_XSYSPLLM); in DAC1064_setmclk()
226 hw->DACclk[4] = inDAC1064(PMINFO DAC1064_XSYSPLLN); in DAC1064_setmclk()
227 hw->DACclk[5] = inDAC1064(PMINFO DAC1064_XSYSPLLP); in DAC1064_setmclk()
257 DAC1064_calcclock(PMINFO fmem, ACCESS_FBINFO(max_pixel_clock), &m, &n, &p); in DAC1064_setmclk()
258 outDAC1064(PMINFO DAC1064_XSYSPLLM, hw->DACclk[3] = m); in DAC1064_setmclk()
259 outDAC1064(PMINFO DAC1064_XSYSPLLN, hw->DACclk[4] = n); in DAC1064_setmclk()
260 outDAC1064(PMINFO DAC1064_XSYSPLLP, hw->DACclk[5] = p); in DAC1064_setmclk()
262 if (inDAC1064(PMINFO DAC1064_XSYSPLLSTAT) & 0x40) in DAC1064_setmclk()
310 outDAC1064(PMINFO M1064_XPWRCTRL, hw->DACreg[POS1064_XPWRCTRL]); in g450_set_plls()
311 matroxfb_g450_setpll_cond(PMINFO videomnp, M_VIDEO_PLL); in g450_set_plls()
318 outDAC1064(PMINFO M1064_XPIXCLKCTRL, hw->DACreg[POS1064_XPIXCLKCTRL]); in g450_set_plls()
319 matroxfb_g450_setpll_cond(PMINFO pixelmnp, M_PIXEL_PLL_C); in g450_set_plls()
447 outDAC1064(PMINFO M1064_XPIXCLKCTRL, hw->DACreg[POS1064_XPIXCLKCTRL]); in DAC1064_global_restore()
448 outDAC1064(PMINFO M1064_XMISCCTRL, hw->DACreg[POS1064_XMISCCTRL]); in DAC1064_global_restore()
450 outDAC1064(PMINFO 0x20, 0x04); in DAC1064_global_restore()
451 outDAC1064(PMINFO 0x1F, ACCESS_FBINFO(devflags.dfp_type)); in DAC1064_global_restore()
453 outDAC1064(PMINFO M1064_XSYNCCTRL, 0xCC); in DAC1064_global_restore()
454 outDAC1064(PMINFO M1064_XPWRCTRL, hw->DACreg[POS1064_XPWRCTRL]); in DAC1064_global_restore()
455 outDAC1064(PMINFO M1064_XPANMODE, hw->DACreg[POS1064_XPANMODE]); in DAC1064_global_restore()
456 outDAC1064(PMINFO M1064_XOUTPUTCONN, hw->DACreg[POS1064_XOUTPUTCONN]); in DAC1064_global_restore()
554 if ((inDAC1064(PMINFO DAC1064_XSYSPLLM) != hw->DACclk[3]) || in DAC1064_restore_1()
555 (inDAC1064(PMINFO DAC1064_XSYSPLLN) != hw->DACclk[4]) || in DAC1064_restore_1()
556 (inDAC1064(PMINFO DAC1064_XSYSPLLP) != hw->DACclk[5])) { in DAC1064_restore_1()
557 outDAC1064(PMINFO DAC1064_XSYSPLLM, hw->DACclk[3]); in DAC1064_restore_1()
558 outDAC1064(PMINFO DAC1064_XSYSPLLN, hw->DACclk[4]); in DAC1064_restore_1()
559 outDAC1064(PMINFO DAC1064_XSYSPLLP, hw->DACclk[5]); in DAC1064_restore_1()
566 outDAC1064(PMINFO MGA1064_DAC_regs[i], hw->DACreg[i]); in DAC1064_restore_1()
582 matrox_init_putc(PMINFO p, matroxfb_DAC1064_createcursor); in DAC1064_restore_2()
603 DAC1064_setpclk(PMINFO m->pixclock); in m1064_compute()
608 outDAC1064(PMINFO M1064_XPIXPLLCM + i, ACCESS_FBINFO(hw).DACclk[i]); in m1064_compute()
610 if (inDAC1064(PMINFO M1064_XPIXPLLSTAT) & 0x40) in m1064_compute()
634 …m->mnp = matroxfb_g450_setclk(PMINFO m->pixclock, (m->crtc == MATROXFB_SRC_CRTC1) ? M_PIXEL_PLL_C … in g450_compute()
636 m->pixclock = g450_mnp2f(PMINFO m->mnp); in g450_compute()
658 if (DAC1064_init_1(PMINFO m, p)) return 1; in MGA1064_init()
659 if (matroxfb_vgaHWinit(PMINFO m, p)) return 1; in MGA1064_init()
669 if (DAC1064_init_2(PMINFO m, p)) return 1; in MGA1064_init()
680 if (DAC1064_init_1(PMINFO m, p)) return 1; in MGAG100_init()
682 if (matroxfb_vgaHWinit(PMINFO m, p)) return 1; in MGAG100_init()
692 if (DAC1064_init_2(PMINFO m, p)) return 1; in MGAG100_init()
712 DAC1064_setmclk(PMINFO DAC1064_OPT_MDIV2 | DAC1064_OPT_GDIV3 | DAC1064_OPT_SCLK_PLL, 133333); in MGA1064_ramdac_init()
731 outDAC1064(PMINFO M1064_XPIXCLKCTRL, inDAC1064(PMINFO M1064_XPIXCLKCTRL) | M1064_XPIXCLKCTRL_DIS | in MGAG100_progPixClock()
738 outDAC1064(PMINFO reg++, m); in MGAG100_progPixClock()
739 outDAC1064(PMINFO reg++, n); in MGAG100_progPixClock()
740 outDAC1064(PMINFO reg, p); in MGAG100_progPixClock()
752 if (inDAC1064(PMINFO M1064_XPIXPLLSTAT) & 0x40) in MGAG100_progPixClock()
758 selClk = inDAC1064(PMINFO M1064_XPIXCLKCTRL) & ~M1064_XPIXCLKCTRL_SRC_MASK; in MGAG100_progPixClock()
764 outDAC1064(PMINFO M1064_XPIXCLKCTRL, selClk); in MGAG100_progPixClock()
765 outDAC1064(PMINFO M1064_XPIXCLKCTRL, inDAC1064(PMINFO M1064_XPIXCLKCTRL) & ~M1064_XPIXCLKCTRL_DIS); in MGAG100_progPixClock()
773 DAC1064_calcclock(PMINFO freq, ACCESS_FBINFO(max_pixel_clock), &m, &n, &p); in MGAG100_setPixClock()
774 MGAG100_progPixClock(PMINFO flags, m, n, p); in MGAG100_setPixClock()
841 matroxfb_g450_setclk(PMINFO ACCESS_FBINFO(values.pll.video), M_VIDEO_PLL); in g450_mclk_init()
847 pwr = inDAC1064(PMINFO M1064_XPWRCTRL) & ~0x02; in g450_mclk_init()
848 outDAC1064(PMINFO M1064_XPWRCTRL, pwr); in g450_mclk_init()
851 matroxfb_g450_setclk(PMINFO ACCESS_FBINFO(values.pll.system), M_SYSTEM_PLL); in g450_mclk_init()
925 curctl = inDAC1064(PMINFO M1064_XCURCTRL); in g450_preinit()
926 outDAC1064(PMINFO M1064_XCURCTRL, 0); in g450_preinit()
935 matroxfb_g450_setclk(PMINFO 25175, M_PIXEL_PLL_A); in g450_preinit()
936 matroxfb_g450_setclk(PMINFO 28322, M_PIXEL_PLL_B); in g450_preinit()
942 outDAC1064(PMINFO M1064_XCURCTRL, curctl); in g450_preinit()
1022 DAC1064_setmclk(PMINFO DAC1064_OPT_MDIV2 | DAC1064_OPT_GDIV3 | DAC1064_OPT_SCLK_PCI, 133333); in MGAG100_preinit()
1134 hw->DACclk[3] = inDAC1064(PMINFO DAC1064_XSYSPLLM); in MGAG100_reset()
1135 hw->DACclk[4] = inDAC1064(PMINFO DAC1064_XSYSPLLN); in MGAG100_reset()
1136 hw->DACclk[5] = inDAC1064(PMINFO DAC1064_XSYSPLLP); in MGAG100_reset()
1138 …DAC1064_setmclk(PMINFO DAC1064_OPT_RESERVED | DAC1064_OPT_MDIV2 | DAC1064_OPT_GDIV1 | DAC1064_OPT_… in MGAG100_reset()
1142 ACCESS_FBINFO(devflags.dfp_type) = inDAC1064(PMINFO 0x1F); in MGAG100_reset()
1149 MGAG100_setPixClock(PMINFO 4, 25175); in MGAG100_reset()
1150 MGAG100_setPixClock(PMINFO 5, 28322); in MGAG100_reset()
1152 b = inDAC1064(PMINFO M1064_XGENIODATA) & ~1; in MGAG100_reset()
1153 outDAC1064(PMINFO M1064_XGENIODATA, b); in MGAG100_reset()
1154 b = inDAC1064(PMINFO M1064_XGENIOCTRL) | 1; in MGAG100_reset()
1155 outDAC1064(PMINFO M1064_XGENIOCTRL, b); in MGAG100_reset()
1183 DAC1064_restore_2(PMINFO p); in MGA1064_restore()
1210 DAC1064_restore_2(PMINFO p); in MGAG100_restore()