aboutsummaryrefslogtreecommitdiffhomepage
path: root/vidix/drivers
diff options
context:
space:
mode:
authorGravatar michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-21 16:57:02 +0000
committerGravatar michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-21 16:57:02 +0000
commit168a60b4bd1b024979f9c2ea485f882ed4fcf3ca (patch)
tree79857274ac33bbd06672861fc31916e9752faa68 /vidix/drivers
parent4be37e45d564ddbaac5d127eda39bfb3ba52ed0b (diff)
endianness fixes for mach64 vidix driver patch by (Colin Leroy <colin at colino dot net>)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7826 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'vidix/drivers')
-rw-r--r--vidix/drivers/mach64_vid.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vidix/drivers/mach64_vid.c b/vidix/drivers/mach64_vid.c
index a91a753845..585b58c46b 100644
--- a/vidix/drivers/mach64_vid.c
+++ b/vidix/drivers/mach64_vid.c
@@ -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 @@ static video_registers_t vregs[] =
#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 { \