aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64
diff options
context:
space:
mode:
authorDavid S. Miller <davem@huronp11.davemloft.net>2008-02-08 05:02:39 -0500
committerDavid S. Miller <davem@davemloft.net>2008-02-09 06:15:03 -0500
commit0507468a8055fc9a51b40a59e6b4eb6081f23aad (patch)
tree41cfdac60b4b244e52f0b6904ae6e45f865b70f1 /arch/sparc64
parentb1d0e4f535e10775cffde922208b49629169aeaa (diff)
[SPARC64]: Remove unused declarations from iommu_common.h
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64')
-rw-r--r--arch/sparc64/kernel/iommu_common.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/sparc64/kernel/iommu_common.h b/arch/sparc64/kernel/iommu_common.h
index 4b5cafa2877a..41992371c932 100644
--- a/arch/sparc64/kernel/iommu_common.h
+++ b/arch/sparc64/kernel/iommu_common.h
@@ -55,22 +55,3 @@ static inline unsigned long calc_npages(struct scatterlist *sglist, int nelems)
55 55
56 return npages; 56 return npages;
57} 57}
58
59/* You are _strongly_ advised to enable the following debugging code
60 * any time you make changes to the sg code below, run it for a while
61 * with filesystems mounted read-only before buying the farm... -DaveM
62 */
63#undef VERIFY_SG
64
65#ifdef VERIFY_SG
66extern void verify_sglist(struct scatterlist *sg, int nents, iopte_t *iopte, int npages);
67#endif
68
69/* Two addresses are "virtually contiguous" if and only if:
70 * 1) They are equal, or...
71 * 2) They are both on a page boundary
72 */
73#define VCONTIG(__X, __Y) (((__X) == (__Y)) || \
74 (((__X) | (__Y)) << (64UL - PAGE_SHIFT)) == 0UL)
75
76extern unsigned long prepare_sg(struct device *dev, struct scatterlist *sg, int nents);