Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188370
b: refs/heads/master
c: dcbae4b
h: refs/heads/master
v: v3
  • Loading branch information
Michal Simek committed Mar 11, 2010
1 parent 4b67e7d commit b911503
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4c912c1a33abb67aefecb5ed8bd73d91887c4977
refs/heads/master: dcbae4be907488df5e1cc8a89b7df1a0565c257c
9 changes: 3 additions & 6 deletions trunk/arch/microblaze/kernel/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,15 @@
* can set archdata.dma_data to an unsigned long holding the offset. By
* default the offset is PCI_DRAM_OFFSET.
*/

static inline void __dma_sync_page(void *paddr, unsigned long offset,
static inline void __dma_sync_page(unsigned long paddr, unsigned long offset,
size_t size, enum dma_data_direction direction)
{
unsigned long start = (unsigned long)paddr;

switch (direction) {
case DMA_TO_DEVICE:
flush_dcache_range(start + offset, start + offset + size);
flush_dcache_range(paddr + offset, paddr + offset + size);
break;
case DMA_FROM_DEVICE:
invalidate_dcache_range(start + offset, start + offset + size);
invalidate_dcache_range(paddr + offset, paddr + offset + size);
break;
default:
BUG();
Expand Down

0 comments on commit b911503

Please sign in to comment.