Mercurial > mplayer.hg
changeset 16820:4d38f0b33f80
mach64_mmio size fix from vidix.sf.net, possible bugfix for #59
author | faust3 |
---|---|
date | Thu, 20 Oct 2005 18:03:43 +0000 |
parents | 9545bda5e951 |
children | a781b30d0283 |
files | vidix/drivers/mach64_vid.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/vidix/drivers/mach64_vid.c Thu Oct 20 17:56:28 2005 +0000 +++ b/vidix/drivers/mach64_vid.c Thu Oct 20 18:03:43 2005 +0000 @@ -465,7 +465,7 @@ } if(__verbose>0) printf("[mach64] version %s\n", VERSION); - if((mach64_mmio_base = map_phys_mem(pci_info.base2,0x4000))==(void *)-1) return ENOMEM; + if((mach64_mmio_base = map_phys_mem(pci_info.base2,0x1000))==(void *)-1) return ENOMEM; mach64_wait_for_idle(); mach64_ram_size = INREG(MEM_CNTL) & CTL_MEM_SIZEB; if (mach64_ram_size < 8) mach64_ram_size = (mach64_ram_size + 1) * 512; @@ -522,7 +522,7 @@ OUTREG(OVERLAY_GRAPHICS_KEY_CLR,SAVED_OVERLAY_GRAPHICS_KEY_CLR); unmap_phys_mem(mach64_mem_base,mach64_ram_size); - unmap_phys_mem(mach64_mmio_base,0x4000); + unmap_phys_mem(mach64_mmio_base,0x1000); } int vixGetCapability(vidix_capability_t *to)