Mercurial > mplayer.hg
comparison vidix/drivers/mga_vid.c @ 8123:9fc45fe0d444
*HUGE* set of compiler warning fixes, unused variables removal
based on patch by Dominik Mierzejewski <dominik@rangers.eu.org>
author | arpi |
---|---|
date | Wed, 06 Nov 2002 23:54:29 +0000 |
parents | 1e47c2e7aa8e |
children | cfce34685fc4 |
comparison
equal
deleted
inserted
replaced
8122:272b1fda7287 | 8123:9fc45fe0d444 |
---|---|
775 { | 775 { |
776 printf("[mga] not enough memory for frames!\n"); | 776 printf("[mga] not enough memory for frames!\n"); |
777 return(EFAULT); | 777 return(EFAULT); |
778 } | 778 } |
779 mga_src_base &= (~0xFFFF); /* 64k boundary */ | 779 mga_src_base &= (~0xFFFF); /* 64k boundary */ |
780 if (mga_verbose > 1) printf("[mga] YUV buffer base: %p\n", mga_src_base); | 780 if (mga_verbose > 1) printf("[mga] YUV buffer base: %#x\n", mga_src_base); |
781 | 781 |
782 config->dga_addr = mga_mem_base + mga_src_base; | 782 config->dga_addr = mga_mem_base + mga_src_base; |
783 | 783 |
784 /* for G200 set Interleaved UV planes */ | 784 /* for G200 set Interleaved UV planes */ |
785 if (!is_g400) | 785 if (!is_g400) |
1323 printf("[mga] invalid RAMSIZE: %d MB\n", mga_ram_size); | 1323 printf("[mga] invalid RAMSIZE: %d MB\n", mga_ram_size); |
1324 return(EINVAL); | 1324 return(EINVAL); |
1325 } | 1325 } |
1326 } | 1326 } |
1327 | 1327 |
1328 if (mga_verbose > 1) printf("[mga] hardware addresses: mmio: %p, framebuffer: %p\n", | 1328 if (mga_verbose > 1) printf("[mga] hardware addresses: mmio: %#x, framebuffer: %#x\n", |
1329 pci_info.base1, pci_info.base0); | 1329 pci_info.base1, pci_info.base0); |
1330 | 1330 |
1331 mga_mmio_base = map_phys_mem(pci_info.base1,0x4000); | 1331 mga_mmio_base = map_phys_mem(pci_info.base1,0x4000); |
1332 mga_mem_base = map_phys_mem(pci_info.base0,mga_ram_size*1024*1024); | 1332 mga_mem_base = map_phys_mem(pci_info.base0,mga_ram_size*1024*1024); |
1333 | 1333 |