View | Details | Raw Unified | Return to bug 151644
Collapse All | Expand All

(-)xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c.orig (-9 / +8 lines)
Lines 1470-1485 static Bool RADEONGetBIOSParameters(Scrn Link Here
1470
	(void)memcpy(info->VBIOS, xf86int10Addr(pInt10, info->BIOSAddr),
1470
	(void)memcpy(info->VBIOS, xf86int10Addr(pInt10, info->BIOSAddr),
1471
		     RADEON_VBIOS_SIZE);
1471
		     RADEON_VBIOS_SIZE);
1472
    } else {
1472
    } else {
1473
	xf86ReadPciBIOS(0, info->PciTag, 0, info->VBIOS, RADEON_VBIOS_SIZE);
1473
	info->BIOSAddr = 0x000c0000;
1474
	xf86ReadDomainMemory(info->PciTag, info->BIOSAddr,
1475
			     RADEON_VBIOS_SIZE, info->VBIOS);
1474
	if (info->VBIOS[0] != 0x55 || info->VBIOS[1] != 0xaa) {
1476
	if (info->VBIOS[0] != 0x55 || info->VBIOS[1] != 0xaa) {
1475
	    xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
1477
	    xf86ReadPciBIOS(0, info->PciTag, 0, info->VBIOS, RADEON_VBIOS_SIZE);
1476
		       "Video BIOS not detected in PCI space!\n");
1478
	    if (info->VBIOS[0] != 0x55 || info->VBIOS[1] != 0xaa) {
1477
	    xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
1479
	        xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
1478
		       "Attempting to read Video BIOS from "
1480
		           "Video BIOS not detected!\n");
1479
		       "legacy ISA space!\n");
1481
	    }
1480
	    info->BIOSAddr = 0x000c0000;
1481
	    xf86ReadDomainMemory(info->PciTag, info->BIOSAddr,
1482
				 RADEON_VBIOS_SIZE, info->VBIOS);
1483
	}
1482
	}
1484
    }
1483
    }
1485
1484

Return to bug 151644