Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158046
b: refs/heads/master
c: a0b00ca
h: refs/heads/master
v: v3
  • Loading branch information
FUJITA Tomonori committed Jul 28, 2009
1 parent 4549934 commit d283062
Show file tree
Hide file tree
Showing 2 changed files with 9 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: a4c2baa6e148adfb27beaf16b6fb6d465b5b3acb
refs/heads/master: a0b00ca84b3ecb9eebd62ad34880d8cc0d988c8a
8 changes: 8 additions & 0 deletions trunk/arch/ia64/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ dma_set_mask (struct device *dev, u64 mask)
return 0;
}

static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
{
if (!dev->dma_mask)
return 0;

return addr + size <= *dev->dma_mask;
}

extern int dma_get_cache_alignment(void);

static inline void
Expand Down

0 comments on commit d283062

Please sign in to comment.