summaryrefslogtreecommitdiff
path: root/packages/qc-usb
diff options
context:
space:
mode:
authorOyvind Repvik <nail@nslu2-linux.org>2005-08-23 02:40:12 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-23 02:40:12 +0000
commite826e576816a106dd7fd20e8af5b8c88b80701b9 (patch)
treeb109972ce704fd3d3554e3c4e212c02aae7a88d1 /packages/qc-usb
parent40ed1cbc65235ca7b798178baed7554d3d399839 (diff)
Move qc-usb
Diffstat (limited to 'packages/qc-usb')
-rw-r--r--packages/qc-usb/.mtn2git_empty0
-rw-r--r--packages/qc-usb/qc-usb-messenger-0.8/.mtn2git_empty0
-rw-r--r--packages/qc-usb/qc-usb-messenger-0.8/qc-messenger-0.8-fix25
3 files changed, 25 insertions, 0 deletions
diff --git a/packages/qc-usb/.mtn2git_empty b/packages/qc-usb/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/qc-usb/.mtn2git_empty
diff --git a/packages/qc-usb/qc-usb-messenger-0.8/.mtn2git_empty b/packages/qc-usb/qc-usb-messenger-0.8/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/qc-usb/qc-usb-messenger-0.8/.mtn2git_empty
diff --git a/packages/qc-usb/qc-usb-messenger-0.8/qc-messenger-0.8-fix b/packages/qc-usb/qc-usb-messenger-0.8/qc-messenger-0.8-fix
new file mode 100644
index 0000000000..ff3572db8d
--- /dev/null
+++ b/packages/qc-usb/qc-usb-messenger-0.8/qc-messenger-0.8-fix
@@ -0,0 +1,25 @@
+diff -Naur qc-usb-messenger-0.8/qc-memory.c qc-usb-messenger-0.8-fixed/qc-memory.c
+--- qc-usb-messenger-0.8/qc-memory.c 2003-12-15 10:31:46.000000000 +0100
++++ qc-usb-messenger-0.8-fixed/qc-memory.c 2005-02-22 17:53:50.000000000 +0100
+@@ -63,9 +63,9 @@
+ #endif
+
+ #if !HAVE_VMA
+-static inline int qc_remap_page_range(unsigned long from, unsigned long addr, unsigned long size, pgprot_t prot) { return remap_page_range(from, addr, size, prot); }
+-#undef remap_page_range
+-#define remap_page_range(vma, start, addr, size, prot) qc_remap_page_range((start),(addr),(size),(prot))
++static inline int qc_io_remap_page_range(unsigned long from, unsigned long addr, unsigned long size, pgprot_t prot) { return io_remap_page_range(from, addr, size, prot); }
++#undef io_remap_page_range
++#define io_remap_page_range(vma, start, addr, size, prot) qc_io_remap_page_range((start),(addr),(size),(prot))
+ #endif
+
+ #if LINUX_VERSION_CODE>=KERNEL_VERSION(2,5,3) || defined(pte_offset_map)
+@@ -230,7 +230,7 @@
+ pos = (unsigned long)src;
+ while ((long)size > 0) {
+ physaddr = kvirt_to_pa(pos);
+- if (remap_page_range(vma, start, physaddr, PAGE_SIZE, PAGE_SHARED))
++ if (io_remap_page_range(vma, start, physaddr, PAGE_SIZE, PAGE_SHARED))
+ return -EAGAIN;
+ start += PAGE_SIZE;
+ pos += PAGE_SIZE;