Lines Matching defs:pMga
424 MGAPtr pMga = MGAPTR(pScrn);
489 MGAPtr pMga = MGAPTR(pScrn);
682 MGAPtr pMga = MGAPTR(pScrn);
719 MGAPtr pMga = MGAPTR(pScrn);
768 MGAPtr pMga = MGAPTR(pScrn);
807 MGAPtr pMga = MGAPTR(pScrn);
901 MGAPtr pMga = MGAPTR(pScrn);
905 const double ref_freq = (double) pMga->bios.pll_ref_freq;
913 switch( pMga->Chipset )
937 if ( f_out < ( pMga->bios.pixel.min_freq / 8))
938 f_out = pMga->bios.pixel.min_freq / 8;
943 * pMga->bios.pixel.min_freq <= f_vco <= pMga->bios.pixel.max_freq
947 for ( *p = 0; *p <= post_div_max && f_vco < pMga->bios.pixel.min_freq;
1002 MGAPtr pMga = MGAPTR(pScrn);
1003 MGARegPtr pReg = &pMga->ModeReg;
1009 if(MGAISGx50(pMga)) {
1011 if (pMga->Chipset == PCI_CHIP_MGAG550) {
1051 if (pMga->is_G200SE) {
1052 if (pMga->reg_1e24 >= 0x04) {
1061 } else if (pMga->is_G200EV) {
1067 } else if (pMga->is_G200WB) {
1068 if (pMga->Chipset == PCI_CHIP_MGAG200_EW3_PCI)
1080 } else if (pMga->is_G200EH) {
1081 if (pMga->Chipset == PCI_CHIP_MGAG200_EH3_PCI)
1093 } else if (pMga->is_G200ER) {
1135 MGAPtr pMga;
1154 pMga = MGAPTR(pScrn);
1155 pReg = &pMga->ModeReg;
1157 pLayout = &pMga->CurrentLayout;
1159 BppShift = pMga->BppShifts[(pLayout->bitsPerPixel >> 3) - 1];
1171 switch(pMga->Chipset)
1184 if(pMga->HasSDRAM) {
1185 if(pMga->OverclockMem) {
1198 if(pMga->OverclockMem) {
1215 if (MGAISGx50(pMga))
1218 if(pMga->Dac.maxPixelClock == 360000) { /* G400 MAX */
1219 if(pMga->OverclockMem) {
1235 if(pMga->OverclockMem) {
1251 if(pMga->HasSDRAM)
1266 if (pMga->HasSDRAM)
1307 if(pMga->OverclockMem) {
1319 if(pMga->HasSDRAM)
1411 if (pMga->is_G200WB){
1441 MGA_NOT_HAL(pReg->DacRegs[MGA1064_CURSOR_BASE_ADR_LOW] = pMga->FbCursorOffset >> 10);
1442 MGA_NOT_HAL(pReg->DacRegs[MGA1064_CURSOR_BASE_ADR_HI] = pMga->FbCursorOffset >> 18);
1444 if (pMga->SyncOnGreen) {
1460 if(MGAISGx50(pMga)) {
1478 if (pMga->SecondCrtc)
1502 MGAPtr pMga = MGAPTR(pScrn);
1503 MGAPaletteInfo *pal = pMga->palinfo;
1518 pMga->PaletteLoadCallback = NULL;
1528 MGAPtr pMga = MGAPTR(pScrn);
1530 if(pMga->Chipset == PCI_CHIP_MGAG400 || pMga->Chipset == PCI_CHIP_MGAG550){
1534 pMga->palinfo[*indices].update = TRUE;
1535 pMga->palinfo[*indices].red = colors[*indices].red;
1536 pMga->palinfo[*indices].green = colors[*indices].green;
1537 pMga->palinfo[*indices].blue = colors[*indices].blue;
1540 pMga->PaletteLoadCallback = MGAPaletteLoadCallback;
1560 MGAPtr pMga = MGAPTR(pScrn);
1574 MGAPtr pMga = MGAPTR(pScrn);
1593 MGAPtr pMga = MGAPTR(pScrn);
1597 if (pMga->is_G200WB)
1608 if (MGAISGx50(pMga) && mgaReg->Clock) {
1618 if(!pMga->SecondCrtc) {
1625 optionMask = (pMga->Primary) ? OPTION1_MASK_PRIMARY : OPTION1_MASK;
1645 (MGAISGx50(pMga) && !mgaReg->PIXPLLCSaved &&
1649 if (pMga->is_G200SE
1652 if ( (pMga->is_G200EV || pMga->is_G200WB || pMga->is_G200EH) &&
1659 if (pMga->is_G200ER)
1663 if (pMga->is_G200SE && (pMga->reg_1e24 >= 0x04)) {
1669 if (!MGAISGx50(pMga)) {
1672 pci_device_cfg_write_bits(pMga->PciInfo, optionMask,
1675 if (pMga->Chipset != PCI_CHIP_MGA1064) {
1676 pci_device_cfg_write_bits(pMga->PciInfo, OPTION2_MASK,
1679 if (pMga->Chipset == PCI_CHIP_MGAG400
1680 || pMga->Chipset == PCI_CHIP_MGAG550) {
1681 pci_device_cfg_write_bits(pMga->PciInfo, OPTION3_MASK,
1688 pciSetBitsLong(pMga->PciTag, PCI_OPTION_REG, optionMask,
1690 if (pMga->Chipset != PCI_CHIP_MGA1064)
1691 pciSetBitsLong(pMga->PciTag, PCI_MGA_OPTION2, OPTION2_MASK,
1693 if (pMga->Chipset == PCI_CHIP_MGAG400 || pMga->Chipset == PCI_CHIP_MGAG550)
1694 pciSetBitsLong(pMga->PciTag, PCI_MGA_OPTION3, OPTION3_MASK,
1699 if (pMga->is_G200ER) {
1701 } else if (pMga->is_G200EV) {
1703 } else if (pMga->is_G200WB) {
1705 } else if (pMga->is_G200EH) {
1713 if (pMga->is_G200ER) {
1718 if (pMga->is_G200WB) {
1719 if(pMga->Chipset == PCI_CHIP_MGAG200_EW3_PCI)
1727 if (pMga->is_G200SE) {
1738 if (pMga->is_G200EV) {
1749 if (pMga->is_G200WB)
1809 MGAPtr pMga = MGAPTR(pScrn);
1816 if (MGAISGx50(pMga)) {
1821 if(pMga->SecondCrtc == TRUE) {
1844 if (pMga->is_G200SE) {
1865 if (pMga->is_G200WB) {
1869 } else if (pMga->is_G200EV) {
1873 } else if (pMga->is_G200EH) {
1877 } else if (pMga->is_G200ER) {
1887 pci_device_cfg_read_u32(pMga->PciInfo, & mgaReg->Option,
1889 pci_device_cfg_read_u32(pMga->PciInfo, & mgaReg->Option2,
1892 mgaReg->Option = pciReadLong(pMga->PciTag, PCI_OPTION_REG);
1894 mgaReg->Option2 = pciReadLong(pMga->PciTag, PCI_MGA_OPTION2);
1896 if (pMga->Chipset == PCI_CHIP_MGAG400 || pMga->Chipset == PCI_CHIP_MGAG550)
1898 pci_device_cfg_read_u32(pMga->PciInfo, & mgaReg->Option3,
1901 mgaReg->Option3 = pciReadLong(pMga->PciTag, PCI_MGA_OPTION3);
1910 if (pMga->is_G200ER)
1915 if (pMga->is_G200WB)
1917 if(pMga->Chipset == PCI_CHIP_MGAG200_EW3_PCI)
1948 MGAPtr pMga = MGAPTR(pScrn);
1949 CARD32 *dst = (CARD32*)(pMga->FbBase + pMga->FbCursorOffset);
1963 MGAPtr pMga = MGAPTR(pScrn);
1971 MGAPtr pMga = MGAPTR(pScrn);
1979 MGAPtr pMga = MGAPTR(pScrn);
1987 MGAPtr pMga = MGAPTR(pScrn);
2005 MGAPtr pMga = MGAPTR(pScrn);
2021 MGAPtr pMga = MGAPTR(pScrn);
2037 MGAPtr pMga = MGAPTR(xf86ScreenToScrn(pScrn));
2041 if( pMga->SecondCrtc == TRUE )
2078 MGAPtr pMga = MGAPTR(pScrn);
2082 if (pMga->is_G200SE || pMga->is_G200WB || pMga->is_G200EV)
2084 else if (pMga->is_G200EH || pMga->is_G200ER)
2095 if (pMga->is_G200SE) {
2111 MGAPtr pMga = MGAPTR(pScrn);
2135 MGAPtr pMga = MGAPTR(pScrn);
2178 MGAPtr pMga = MGAPTR(pScrn);
2180 if (pMga->SecondCrtc == FALSE) {
2183 if (pMga->is_G200SE || pMga->is_G200WB || pMga->is_G200EV)
2185 else if (pMga->is_G200EH || pMga->is_G200ER)
2190 pMga->DDC_Bus1 = mgag_create_i2c_bus("DDC P1",
2192 return (pMga->DDC_Bus1 != NULL);
2195 pMga->DDC_Bus2 = mgag_create_i2c_bus("DDC P2", 1, pScrn->scrnIndex);
2197 if (pMga->DDC_Bus2 != NULL) {
2199 if (!xf86I2CProbeAddress(pMga->DDC_Bus2, 0xA0)) {
2201 pMga->Crtc2IsTV = TRUE; /* assume for now. We need to fix HAL interactions. */
2206 pMga->Maven_Bus = mgag_create_i2c_bus("MAVEN", 2, pScrn->scrnIndex);
2207 if (pMga->Maven_Bus != NULL) {
2208 pMga->Maven = NULL;
2209 pMga->Maven_Version = 0;
2212 if (xf86I2CProbeAddress(pMga->Maven_Bus, MAVEN_READ)) {
2219 dp->pI2CBus = pMga->Maven_Bus;
2223 pMga->Maven = dp;
2226 pMga->Maven_Version = (maven_ver < 0x14)
2231 pMga->Maven_Version, maven_ver);
2239 if (pMga->Maven == NULL) {
2257 MGAPtr pMga = MGAPTR(pScrn);
2258 MGARamdacPtr MGAdac = &pMga->Dac;
2267 if ((pMga->Chipset == PCI_CHIP_MGAG100)
2268 || (pMga->Chipset == PCI_CHIP_MGAG100)) {
2287 MGAdac->maxPixelClock = pMga->bios.pixel.max_freq;
2291 pMga->Interleave = FALSE;
2293 pMga->Roundings[0] = 64;
2294 pMga->Roundings[1] = 32;
2295 pMga->Roundings[2] = 64;
2296 pMga->Roundings[3] = 32;
2299 pMga->HasFBitBlt = FALSE;
2304 MGAPtr pMga = MGAPTR(pScrn);
2306 pMga->PreInit = MGAGRamdacInit;
2307 pMga->Save = MGAGSave;
2308 pMga->Restore = MGAGRestore;
2309 pMga->ModeInit = MGAGInit;
2310 if ((!pMga->is_G200WB) && (!pMga->is_G200ER)) {
2311 pMga->ddc1Read = MGAG_ddc1Read;
2313 pMga->DDC1SetSpeed = vgaHWddc1SetSpeedWeak();
2315 pMga->ddc1Read = NULL;
2316 pMga->DDC1SetSpeed = NULL;
2318 pMga->i2cInit = MGAG_i2cInit;