# HG changeset patch # User faust3 # Date 1129831423 0 # Node ID 4d38f0b33f80792d3be4857d64bc110dd5179bc5 # Parent 9545bda5e951697ebe773388f46f58a80af8ec90 mach64_mmio size fix from vidix.sf.net, possible bugfix for #59 diff -r 9545bda5e951 -r 4d38f0b33f80 vidix/drivers/mach64_vid.c --- 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)