Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69569
b: refs/heads/master
c: 32e8f70
h: refs/heads/master
i:
  69567: 71f1e08
v: v3
  • Loading branch information
James Bottomley authored and Linus Torvalds committed Oct 16, 2007
1 parent 81eaaa8 commit 1674e91
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 64da82efae0d7b5f7c478021840fd329f76d965d
refs/heads/master: 32e8f70230c0c417490787b3f48b6ed6c48e7ec9
7 changes: 7 additions & 0 deletions trunk/include/linux/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,20 @@ enum dma_data_direction {
#define DMA_28BIT_MASK 0x000000000fffffffULL
#define DMA_24BIT_MASK 0x0000000000ffffffULL

#define DMA_MASK_NONE 0x0ULL

static inline int valid_dma_direction(int dma_direction)
{
return ((dma_direction == DMA_BIDIRECTIONAL) ||
(dma_direction == DMA_TO_DEVICE) ||
(dma_direction == DMA_FROM_DEVICE));
}

static inline int is_device_dma_capable(struct device *dev)
{
return dev->dma_mask != NULL && *dev->dma_mask != DMA_MASK_NONE;
}

#ifdef CONFIG_HAS_DMA
#include <asm/dma-mapping.h>
#else
Expand Down

0 comments on commit 1674e91

Please sign in to comment.