[MPlayer-cvslog] CVS: main/vidix/drivers nvidia_vid.c,1.26,1.27
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Sat Sep 3 21:20:53 CEST 2005
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/vidix/drivers
In directory mail:/var2/tmp/cvs-serv23455/vidix/drivers
Modified Files:
nvidia_vid.c
Log Message:
64 bit fix: do not cast pointers to uint32_t
Index: nvidia_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/nvidia_vid.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- nvidia_vid.c 3 Sep 2005 19:10:43 -0000 1.26
+++ nvidia_vid.c 3 Sep 2005 19:20:51 -0000 1.27
@@ -255,7 +255,7 @@
struct rivatv_chip chip; /* NV architecture structure */
void* video_base; /* virtual address of control region */
void* control_base; /* virtual address of fb region */
- unsigned long picture_base; /* direct pointer to video picture */
+ void* picture_base; /* direct pointer to video picture */
unsigned long picture_offset; /* offset of video picture in frame buffer */
// struct rivatv_dma dma; /* DMA structure */
unsigned int cur_frame;
@@ -684,7 +684,7 @@
info = (rivatv_info*)calloc(1,sizeof(rivatv_info));
info->control_base = map_phys_mem(pci_info.base0, 0x00C00000 + 0x00008000);
info->chip.arch = nvidia_card_ids[find_chip(pci_info.device)].arch;
- printf("[nvidia_vid] arch %x register base %x\n",info->chip.arch,(unsigned int)info->control_base);
+ printf("[nvidia_vid] arch %x register base %p\n",info->chip.arch,info->control_base);
info->chip.PFIFO = (uint32_t *) (info->control_base + 0x00002000);
info->chip.FIFO = (uint32_t *) (info->control_base + 0x00800000);
info->chip.PMC = (uint32_t *) (info->control_base + 0x00000000);
@@ -722,7 +722,7 @@
info->video_base = map_phys_mem(pci_info.base1, info->chip.fbsize);
/* This may trash your screen for resolutions greater than 1024x768, sorry. */
info->picture_offset = 1024*768* 4 * ((info->chip.fbsize > 4194304)?2:1);
- info->picture_base = (uint32_t) info->video_base + info->picture_offset;
+ info->picture_base = info->video_base + info->picture_offset;
info->chip.PRAMIN = (uint32_t *) (info->video_base + 0x00C00000);
break;
}
@@ -734,7 +734,7 @@
info->video_base = map_phys_mem(pci_info.base1, info->chip.fbsize);
info->picture_offset = info->chip.fbsize - NV04_BES_SIZE;
// info->picture_base = (unsigned long)map_phys_mem(pci_info.base1+info->picture_offset,NV04_BES_SIZE);
- info->picture_base = (uint32_t) info->video_base + info->picture_offset;
+ info->picture_base = info->video_base + info->picture_offset;
break;
}
}
@@ -810,7 +810,7 @@
info->d_width, info->d_height, info->wx, info->wy, info->width, info->height, vinfo->fourcc);
- vinfo->dga_addr=(void*)(info->picture_base);
+ vinfo->dga_addr=info->picture_base;
switch (vinfo->fourcc)
{
More information about the MPlayer-cvslog
mailing list