Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63382
b: refs/heads/master
c: e5071b5
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and David S. Miller committed Jul 31, 2007
1 parent eaef562 commit d683b16
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: 76fcdb30ae1cb28e438e5ffd4db5f49ea3d96cd7
refs/heads/master: e5071b5493b1dcfa98a6e8a75f56997f6d4a0c25
7 changes: 7 additions & 0 deletions trunk/include/asm-sparc64/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ static inline int dma_mapping_error(dma_addr_t dma_addr)
return (dma_addr == DMA_ERROR_CODE);
}

static inline int dma_get_cache_alignment(void)
{
/* no easy way to get cache size on all processors, so return
* the maximum possible, to be safe */
return (1 << INTERNODE_CACHE_SHIFT);
}

#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
#define dma_is_consistent(d, h) (1)
Expand Down

0 comments on commit d683b16

Please sign in to comment.