Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81101
b: refs/heads/master
c: 84631f3
h: refs/heads/master
i:
  81099: 74b5057
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Dec 20, 2007
1 parent 7fd2631 commit a9258a5
Show file tree
Hide file tree
Showing 3 changed files with 20 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: 53024fe250a0f044b114844a01456902bce40ade
refs/heads/master: 84631f37cc405dd6dcd566f9fa4e8a3ca2f03f76
16 changes: 16 additions & 0 deletions trunk/arch/powerpc/kernel/pci_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,22 @@ struct dma_mapping_ops *get_pci_dma_ops(void)
}
EXPORT_SYMBOL(get_pci_dma_ops);


int pci_set_dma_mask(struct pci_dev *dev, u64 mask)
{
return dma_set_mask(&dev->dev, mask);
}

int pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask)
{
int rc;

rc = dma_set_mask(&dev->dev, mask);
dev->dev.coherent_dma_mask = dev->dma_mask;

return rc;
}

static void fixup_broken_pcnet32(struct pci_dev* dev)
{
if ((dev->class>>8 == PCI_CLASS_NETWORK_ETHERNET)) {
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/asm-powerpc/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ static inline int dma_supported(struct device *dev, u64 mask)
return dma_ops->dma_supported(dev, mask);
}

/* We have our own implementation of pci_set_dma_mask() */
#define HAVE_ARCH_PCI_SET_DMA_MASK

static inline int dma_set_mask(struct device *dev, u64 dma_mask)
{
struct dma_mapping_ops *dma_ops = get_dma_ops(dev);
Expand Down

0 comments on commit a9258a5

Please sign in to comment.