Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101768
b: refs/heads/master
c: 3a4c6f0
h: refs/heads/master
v: v3
  • Loading branch information
Mark Nelson authored and Benjamin Herrenschmidt committed Jul 9, 2008
1 parent cd3aae2 commit f1c4fea
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 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: 7e5f8105030038de94b44a74cd7b64dd000830fc
refs/heads/master: 3a4c6f0b1540811110a59112b4c83f55c229728c
9 changes: 0 additions & 9 deletions trunk/arch/powerpc/kernel/dma_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@
* Generic iommu implementation
*/

static inline unsigned long device_to_mask(struct device *dev)
{
if (dev->dma_mask && *dev->dma_mask)
return *dev->dma_mask;
/* Assume devices without mask can take 32 bit addresses */
return 0xfffffffful;
}


/* Allocates a contiguous real buffer and creates mappings over it.
* Returns the virtual address of the buffer and sets dma_handle
* to the dma address (mapping) of the first page.
Expand Down
9 changes: 9 additions & 0 deletions trunk/include/asm-powerpc/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ extern void __dma_sync_page(struct page *page, unsigned long offset,
#endif /* ! CONFIG_NOT_COHERENT_CACHE */

#ifdef CONFIG_PPC64

static inline unsigned long device_to_mask(struct device *dev)
{
if (dev->dma_mask && *dev->dma_mask)
return *dev->dma_mask;
/* Assume devices without mask can take 32 bit addresses */
return 0xfffffffful;
}

/*
* DMA operations are abstracted for G5 vs. i/pSeries, PCI vs. VIO
*/
Expand Down

0 comments on commit f1c4fea

Please sign in to comment.