Mercurial > mplayer.hg
comparison vidix/sysdep/pci_linux.c @ 27419:3f6d802c6ea8
Add proper VIDIX support for SuperH architecture.
Patch by Magnus Damm <magnus dot damm at gmail dot com>.
author | ben |
---|---|
date | Mon, 11 Aug 2008 23:04:03 +0000 |
parents | 0a7f07b761e1 |
children | 0f1b5b68af32 |
comparison
equal
deleted
inserted
replaced
27418:24f66c71a209 | 27419:3f6d802c6ea8 |
---|---|
34 #if !defined(__sparc__) && !defined(__powerpc__) && !defined(__x86_64__) | 34 #if !defined(__sparc__) && !defined(__powerpc__) && !defined(__x86_64__) |
35 #include <sys/io.h> | 35 #include <sys/io.h> |
36 #endif | 36 #endif |
37 #endif | 37 #endif |
38 | 38 |
39 #ifdef __sh__ | |
40 #define iopl(x) 1 | |
41 #endif | |
42 | |
39 #include "config.h" | 43 #include "config.h" |
40 | 44 |
41 #ifdef CONFIG_DHAHELPER | 45 #ifdef CONFIG_DHAHELPER |
42 #include <fcntl.h> | 46 #include <fcntl.h> |
43 int dhahelper_initialized = 0; | 47 int dhahelper_initialized = 0; |
139 #endif | 143 #endif |
140 return 0; | 144 return 0; |
141 } | 145 } |
142 | 146 |
143 #if (defined(__powerpc__) || defined(__sparc__) || defined(__sparc64__) \ | 147 #if (defined(__powerpc__) || defined(__sparc__) || defined(__sparc64__) \ |
144 || defined(__x86_64__)) && defined(__linux__) && !defined(CONFIG_SVGAHELPER) | 148 || defined(__x86_64__) || defined(__sh__)) && defined(__linux__) && !defined(CONFIG_SVGAHELPER) |
145 #define CONFIG_PCI_LINUX_PROC | 149 #define CONFIG_PCI_LINUX_PROC |
146 #endif | 150 #endif |
147 | 151 |
148 #if defined(CONFIG_PCI_LINUX_PROC) | 152 #if defined(CONFIG_PCI_LINUX_PROC) |
149 static int pci_config_type( void ) { return 1; } | 153 static int pci_config_type( void ) { return 1; } |