[PATCH] remove platform support for pci_dac_dma_supported
Stephen Rothwell
sfr at canb.auug.org.au
Mon May 30 13:38:00 EST 2005
Hi Anton,
Currently no PPC64 platform actually implements the dac_dma_supported
method in the dma_mapping_ops structure. This patch just tidies it up.
Does it look OK to you?
Signed-off-by: Stephen Rothwell <sfr at canb.auug.org.au>
--
Cheers,
Stephen Rothwell sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
diff -ruNp linus/include/asm-ppc64/dma-mapping.h linus-pci_dac_dma_supported/include/asm-ppc64/dma-mapping.h
--- linus/include/asm-ppc64/dma-mapping.h 2005-05-20 09:05:54.000000000 +1000
+++ linus-pci_dac_dma_supported/include/asm-ppc64/dma-mapping.h 2005-05-04 17:56:06.000000000 +1000
@@ -130,7 +130,6 @@ struct dma_mapping_ops {
void (*unmap_sg)(struct device *dev, struct scatterlist *sg,
int nents, enum dma_data_direction direction);
int (*dma_supported)(struct device *dev, u64 mask);
- int (*dac_dma_supported)(struct device *dev, u64 mask);
};
#endif /* _ASM_DMA_MAPPING_H */
diff -ruNp linus/include/asm-ppc64/pci.h linus-pci_dac_dma_supported/include/asm-ppc64/pci.h
--- linus/include/asm-ppc64/pci.h 2005-05-20 09:05:56.000000000 +1000
+++ linus-pci_dac_dma_supported/include/asm-ppc64/pci.h 2005-05-04 17:57:02.000000000 +1000
@@ -68,15 +68,7 @@ extern unsigned int pcibios_assign_all_b
extern struct dma_mapping_ops pci_dma_ops;
-/* For DAC DMA, we currently don't support it by default, but
- * we let the platform override this
- */
-static inline int pci_dac_dma_supported(struct pci_dev *hwdev,u64 mask)
-{
- if (pci_dma_ops.dac_dma_supported)
- return pci_dma_ops.dac_dma_supported(&hwdev->dev, mask);
- return 0;
-}
+#define pci_dac_dma_supported(hwdev, mask) 0
extern int pci_domain_nr(struct pci_bus *bus);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20050530/7bcce932/attachment.pgp
More information about the Linuxppc64-dev
mailing list