summaryrefslogtreecommitdiff
path: root/sysutils/atitvout/patches
diff options
context:
space:
mode:
authormrg <mrg@pkgsrc.org>2003-08-13 05:22:59 +0000
committermrg <mrg@pkgsrc.org>2003-08-13 05:22:59 +0000
commitcde1bddce74d121db97ba6d2c8e5b192701c14d2 (patch)
tree9a145eae6a9cbeb2c922bc4bc208bab09649452b /sysutils/atitvout/patches
parent9dc7bdc3c5654fe34cc7a2124b09828cadd8e816 (diff)
downloadpkgsrc-cde1bddce74d121db97ba6d2c8e5b192701c14d2.tar.gz
initial import of the "atitvout" package that provides tv-out capabilities
for many recent ATI video cards. tested to be able to switch from the lcd to the s-video tv-out with a radeon mobility 9000 (M9), and also known to work on: ATI Technologies Inc Rage Mobility P/M AGP 2x ATI Technologies Inc 3D Rage LT Pro AGP-133 ATI Rage Mobility M3 but to fail on: ATI Technologies Inc Rage Mobility M4 AGP
Diffstat (limited to 'sysutils/atitvout/patches')
-rw-r--r--sysutils/atitvout/patches/patch-aa40
1 files changed, 40 insertions, 0 deletions
diff --git a/sysutils/atitvout/patches/patch-aa b/sysutils/atitvout/patches/patch-aa
new file mode 100644
index 00000000000..72d0abb5cea
--- /dev/null
+++ b/sysutils/atitvout/patches/patch-aa
@@ -0,0 +1,40 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/08/13 05:23:00 mrg Exp $
+
+--- atitvout.c.orig 2002-09-17 05:37:08.000000000 +1000
++++ atitvout.c 2003-08-13 14:58:15.000000000 +1000
+@@ -17,7 +17,13 @@
+ */
+
+ #include <stdio.h>
++#ifdef __linux__
+ #include <sys/io.h>
++#endif
++#ifdef __NetBSD__
++#include <sys/types.h>
++#include <machine/sysarch.h>
++#endif
+ #include <string.h>
+ #include <assert.h>
+
+@@ -98,8 +104,21 @@
+ return 0;
+ }
+
++#ifdef __linux__
+ ioperm(0, 1024, 1);
+ iopl(3);
++#endif
++#ifdef __NetBSD__
++ {
++#define FF 0xFFFFFFFF
++#define FF8 FF, FF, FF, FF, FF, FF, FF, FF
++ u_long map[] = { FF8, FF8, FF8, FF8 };
++#undef FF
++#undef FF8
++ i386_set_ioperm(map);
++ }
++ i386_iopl(3);
++#endif
+
+ if (!LRMI_init()) {
+ fprintf(stderr, "Could not initialise LRMI.\n");