|
@@ -259,9 +259,11 @@ extern void pci_iounmap(struct pci_dev *dev, void __iomem *addr);
|
|
|
#define BIOVEC_MERGEABLE(vec1, vec2) \
|
|
|
((bvec_to_phys((vec1)) + (vec1)->bv_len) == bvec_to_phys((vec2)))
|
|
|
|
|
|
+#ifdef CONFIG_MMU
|
|
|
#define ARCH_HAS_VALID_PHYS_ADDR_RANGE
|
|
|
extern int valid_phys_addr_range(unsigned long addr, size_t size);
|
|
|
extern int valid_mmap_phys_addr_range(unsigned long pfn, size_t size);
|
|
|
+#endif
|
|
|
|
|
|
/*
|
|
|
* Convert a physical pointer to a virtual kernel pointer for /dev/mem
|