[Mplayer-cvslog] CVS: main/vidix/drivers mach64_vid.c,1.26,1.27
Michael Niedermayer
michael at mplayerhq.hu
Mon Oct 21 18:57:22 CEST 2002
Update of /cvsroot/mplayer/main/vidix/drivers
In directory mail:/var/tmp.root/cvs-serv23517
Modified Files:
mach64_vid.c
Log Message:
endianness fixes for mach64 vidix driver patch by (Colin Leroy <colin at colino dot net>)
Index: mach64_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/mach64_vid.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- mach64_vid.c 23 Apr 2002 01:31:01 -0000 1.26
+++ mach64_vid.c 21 Oct 2002 16:57:02 -0000 1.27
@@ -13,6 +13,8 @@
#include <inttypes.h>
#include <fcntl.h>
+#include "../../config.h"
+#include "../../bswap.h"
#include "../vidix.h"
#include "../fourcc.h"
#include "../../libdha/libdha.h"
@@ -125,8 +127,8 @@
#define INREG8(addr) GETREG(uint8_t,(uint32_t)mach64_mmio_base,((addr)^0x100)<<2)
#define OUTREG8(addr,val) SETREG(uint8_t,(uint32_t)mach64_mmio_base,((addr)^0x100)<<2,val)
-#define INREG(addr) GETREG(uint32_t,(uint32_t)mach64_mmio_base,((addr)^0x100)<<2)
-#define OUTREG(addr,val) SETREG(uint32_t,(uint32_t)mach64_mmio_base,((addr)^0x100)<<2,val)
+#define INREG(addr) le2me_32(GETREG(uint32_t,(uint32_t)mach64_mmio_base,((addr)^0x100)<<2))
+#define OUTREG(addr,val) SETREG(uint32_t,(uint32_t)mach64_mmio_base,((addr)^0x100)<<2,le2me_32(val))
#define OUTREGP(addr,val,mask) \
do { \
More information about the MPlayer-cvslog
mailing list