summaryrefslogtreecommitdiffstats
path: root/vidix/sysdep
diff options
context:
space:
mode:
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-08-11 23:04:03 +0000
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-08-11 23:04:03 +0000
commitf2918b92400c460aafad3b98fecd03fde0fd0d0d (patch)
tree8d3b5f0d7b6221d8ad4f72f5a8bd0082bed778b3 /vidix/sysdep
parentf14367fac94c32c6baab25ab34af96c93e183d0c (diff)
downloadmpv-f2918b92400c460aafad3b98fecd03fde0fd0d0d.tar.bz2
mpv-f2918b92400c460aafad3b98fecd03fde0fd0d0d.tar.xz
Add proper VIDIX support for SuperH architecture.
Patch by Magnus Damm <magnus dot damm at gmail dot com>. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27451 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'vidix/sysdep')
-rw-r--r--vidix/sysdep/pci_linux.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/vidix/sysdep/pci_linux.c b/vidix/sysdep/pci_linux.c
index aca99573db..12da9376b9 100644
--- a/vidix/sysdep/pci_linux.c
+++ b/vidix/sysdep/pci_linux.c
@@ -36,6 +36,10 @@ int iopl();
#endif
#endif
+#ifdef __sh__
+#define iopl(x) 1
+#endif
+
#include "config.h"
#ifdef CONFIG_DHAHELPER
@@ -141,7 +145,7 @@ static __inline__ int disable_os_io(void)
}
#if (defined(__powerpc__) || defined(__sparc__) || defined(__sparc64__) \
- || defined(__x86_64__)) && defined(__linux__) && !defined(CONFIG_SVGAHELPER)
+ || defined(__x86_64__) || defined(__sh__)) && defined(__linux__) && !defined(CONFIG_SVGAHELPER)
#define CONFIG_PCI_LINUX_PROC
#endif