summaryrefslogtreecommitdiff
path: root/debian/patches/40_iopl_mmap.patch
diff options
context:
space:
mode:
authorSamuel Thibault <sthibault@debian.org>2010-04-27 16:15:18 +0000
committerSamuel Thibault <sthibault@debian.org>2010-04-27 16:15:18 +0000
commitf58a176d7ed09276406feb36a10a853417a441cf (patch)
treea72f58e8e1016a3894007a676d2f5caacc6caaba /debian/patches/40_iopl_mmap.patch
parent7d5583376440383431c714bd2862926415bcf848 (diff)
* debian/patches/40_iopl_mmap.patch: Add a "mem" alias for the iopl device,
since that is what upstream provides.
Diffstat (limited to 'debian/patches/40_iopl_mmap.patch')
-rw-r--r--debian/patches/40_iopl_mmap.patch13
1 files changed, 10 insertions, 3 deletions
diff --git a/debian/patches/40_iopl_mmap.patch b/debian/patches/40_iopl_mmap.patch
index a011149..cb49f96 100644
--- a/debian/patches/40_iopl_mmap.patch
+++ b/debian/patches/40_iopl_mmap.patch
@@ -1,4 +1,6 @@
Device for direct memory access (needed e.g. for Xorg).
+Upstream now has a mem device, so this patch should go away and be replaced by
+40_iopl_mem.patch when we upgrade the Debian snapshot.
Index: b/i386/Makefrag.am
===================================================================
@@ -13,20 +15,20 @@ Index: b/i386/Makefrag.am
i386/i386at/kd.h \
i386/i386at/kd_event.c \
Index: b/i386/i386at/conf.c
-===================================================================
--- a/i386/i386at/conf.c
+++ b/i386/i386at/conf.c
-@@ -58,6 +58,9 @@ extern int kbdgetstat(), kbdsetstat();
+@@ -58,6 +58,10 @@ extern int kbdgetstat(), kbdsetstat();
extern int mouseopen(), mouseclose(), mouseread(), mousegetstat();
#define mousename "mouse"
+extern vm_offset_t ioplmmap();
+#define ioplname "iopl"
++#define memname "mem"
+
extern int kmsgopen(), kmsgclose(), kmsgread(), kmsggetstat();
#define kmsgname "kmsg"
-@@ -113,6 +116,11 @@ struct dev_ops dev_name_list[] =
+@@ -113,6 +117,16 @@ struct dev_ops dev_name_list[] =
nodev, nulldev, nulldev, 0,
nodev },
@@ -35,6 +37,11 @@ Index: b/i386/i386at/conf.c
+ nodev, nulldev, nulldev, 0,
+ nodev },
+
++ { memname, nulldev, nulldev, nodev,
++ nodev, nodev, nodev, ioplmmap,
++ nodev, nulldev, nulldev, 0,
++ nodev },
++
#ifdef MACH_KMSG
{ kmsgname, kmsgopen, kmsgclose, kmsgread,
nodev, kmsggetstat, nodev, nomap,