Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112586
b: refs/heads/master
c: eecfffc
h: refs/heads/master
v: v3
  • Loading branch information
FUJITA Tomonori authored and Ingo Molnar committed Sep 14, 2008
1 parent f52082a commit 7d63d0c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e03f99803195e5aaf7f247db31b0d11857ccc35
refs/heads/master: eecfffc154ffbfe70686a9905c090b488778c28e
10 changes: 10 additions & 0 deletions trunk/include/linux/iommu-helper.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
static inline unsigned long iommu_device_max_index(unsigned long size,
unsigned long offset,
u64 dma_mask)
{
if (size + offset > dma_mask)
return dma_mask - offset + 1;
else
return size;
}

extern int iommu_is_span_boundary(unsigned int index, unsigned int nr,
unsigned long shift,
unsigned long boundary_size);
Expand Down

0 comments on commit 7d63d0c

Please sign in to comment.