Displaying 1 result from an estimated 1 matches for "gnttab_dma_local_pfn".
2007 Jun 11
5
[PATCH][Linux] gnttab: make dma address conversion logic of gnttab dma arch specific.
...b.h>
+#include <asm-i386/mach-xen/asm/gnttab_dma.h>
#include <asm/bug.h>
#ifdef __x86_64__
@@ -58,6 +59,12 @@ static int __init pci_iommu_init(void)
/* Must execute after PCI subsystem */
fs_initcall(pci_iommu_init);
#endif
+
+/* this should be in somewhere appropriate */
+int gnttab_dma_local_pfn(struct page *page)
+{
+ return pfn_valid(mfn_to_local_pfn(pfn_to_mfn(page_to_pfn(page))));
+}
struct dma_coherent_mem {
void *virt_base;
diff -r d5e0eb7dd069 -r 69e2dd4e06c4 arch/i386/kernel/swiotlb.c
--- a/arch/i386/kernel/swiotlb.c Sun Jun 10 19:50:32 2007 +0100
+++ b/arch/i386/kernel/swiot...