summaryrefslogtreecommitdiffstats
path: root/tools/ddcprobe/vbe.c
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-08-26 02:33:06 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-08-26 02:33:06 +0000
commit3fd5a86333bc1d358fe3de3db8b406c5bd2dce52 (patch)
treeaf75a79270d3b54ad0ed7994b51f1e51f0f4d8c4 /tools/ddcprobe/vbe.c
parent6e888e8de1d951f0aecedca5d3a0d17c54635b1a (diff)
downloaddrakx-3fd5a86333bc1d358fe3de3db8b406c5bd2dce52.tar
drakx-3fd5a86333bc1d358fe3de3db8b406c5bd2dce52.tar.gz
drakx-3fd5a86333bc1d358fe3de3db8b406c5bd2dce52.tar.bz2
drakx-3fd5a86333bc1d358fe3de3db8b406c5bd2dce52.tar.xz
drakx-3fd5a86333bc1d358fe3de3db8b406c5bd2dce52.zip
PowerPC arrangements from Christiaan Welvaart
Diffstat (limited to 'tools/ddcprobe/vbe.c')
-rw-r--r--tools/ddcprobe/vbe.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/ddcprobe/vbe.c b/tools/ddcprobe/vbe.c
index 7b061f213..8d16f7472 100644
--- a/tools/ddcprobe/vbe.c
+++ b/tools/ddcprobe/vbe.c
@@ -1,5 +1,7 @@
#include <sys/types.h>
+#if defined(__i386__) || defined(__x86_64__) || defined(__ia64__)
#include <sys/io.h>
+#endif
#include <sys/mman.h>
#include <netinet/in.h>
#include <stdlib.h>
@@ -12,7 +14,9 @@
#include <unistd.h>
#include "vesamode.h"
#include "vbe.h"
+#if defined(__i386__) || defined(__x86_64__)
#include "int10/vbios.h"
+#endif
#define DEBUG 0
#if DEBUG
@@ -28,6 +32,7 @@
#define cpuemu 0
#endif
+#if defined(__i386__) || defined(__x86_64__)
/*
* Create a 'canonical' version, i.e. no spaces at start and end.
*
@@ -171,6 +176,7 @@ int vbe_get_edid_info(struct vbe_edid1_info *edid)
edid->manufacturer_name.p = ntohs(edid->manufacturer_name.p);
return 1;
}
+#endif
/* Just read ranges from the EDID. */
void vbe_get_edid_ranges(struct vbe_edid1_info *edid,