[MPlayer-cvslog] CVS: main/vidix/drivers radeon_vid.c,1.90,1.91
Sascha Sommer CVS
syncmail at mplayerhq.hu
Tue Jan 4 23:28:12 CET 2005
CVS change done by Sascha Sommer CVS
Update of /cvsroot/mplayer/main/vidix/drivers
In directory mail:/var2/tmp/cvs-serv29855/vidix/drivers
Modified Files:
radeon_vid.c
Log Message:
10l, pointers aren't always 32bit
Index: radeon_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/radeon_vid.c,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -r1.90 -r1.91
--- radeon_vid.c 20 Dec 2004 23:43:54 -0000 1.90
+++ radeon_vid.c 4 Jan 2005 22:28:10 -0000 1.91
@@ -233,15 +233,15 @@
#define GETREG(TYPE,PTR,OFFZ) (*((volatile TYPE*)((PTR)+(OFFZ))))
#define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
-#define INREG8(addr) GETREG(uint8_t,(uint32_t)(radeon_mmio_base),addr)
-#define OUTREG8(addr,val) SETREG(uint8_t,(uint32_t)(radeon_mmio_base),addr,val)
+#define INREG8(addr) GETREG(uint8_t,(uint8_t*)(radeon_mmio_base),addr)
+#define OUTREG8(addr,val) SETREG(uint8_t,(uint8_t*)(radeon_mmio_base),addr,val)
static inline uint32_t INREG (uint32_t addr) {
- uint32_t tmp = GETREG(uint32_t,(uint32_t)(radeon_mmio_base),addr);
+ uint32_t tmp = GETREG(uint32_t,(uint8_t*)(radeon_mmio_base),addr);
return le2me_32(tmp);
}
-//#define OUTREG(addr,val) SETREG(uint32_t,(uint32_t)(radeon_mmio_base),addr,val)
-#define OUTREG(addr,val) SETREG(uint32_t,(uint32_t)(radeon_mmio_base),addr,le2me_32(val))
+//#define OUTREG(addr,val) SETREG(uint32_t,(uint8_t*)(radeon_mmio_base),addr,val)
+#define OUTREG(addr,val) SETREG(uint32_t,(uint8_t*)(radeon_mmio_base),addr,le2me_32(val))
#define OUTREGP(addr,val,mask) \
do { \
unsigned int _tmp = INREG(addr); \
More information about the MPlayer-cvslog
mailing list