- Previous thread: [PATCH] net: Keep interface binding when sending packets with ipi_ifindex = 0
- Next thread: linux-next: Tree for July 6
- Threads sorted by date: kernel 200907
On Monday 06 July 2009, FUJITA Tomonori wrote:
> --- a/arch/sparc/include/asm/pci_64.h
> +++ b/arch/sparc/include/asm/pci_64.h
> -/* Return whether the given PCI device DMA address mask can
> - * be supported properly. For example, if your device can
> - * only drive the low 24-bits during PCI bus mastering, then
> - * you would pass 0x00ffffff as the mask to this function.
> - */
> -extern int pci_dma_supported(struct pci_dev *hwdev, u64 mask);
> -
> /* PCI IOMMU mapping bypass support. */
>
> /* PCI 64-bit addressing works for all slots on all controller
> --- a/arch/sparc/kernel/iommu.c
> +++ b/arch/sparc/kernel/iommu.c
> @@ -840,6 +840,8 @@ static struct dma_map_ops sun4u_dma_ops = {
> struct dma_map_ops *dma_ops = &sun4u_dma_ops;
> EXPORT_SYMBOL(dma_ops);
>
> +extern int pci64_dma_supported(struct pci_dev *pdev, u64 device_mask);
> +
> int dma_supported(struct device *dev, u64 device_mask)
> {
> struct iommu *iommu = dev->archdata.iommu;
Minor nitpicking: The declaration should better be left in the header
file to avoid extern declarations in C files.
Arnd <
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
> --- a/arch/sparc/include/asm/pci_64.h
> +++ b/arch/sparc/include/asm/pci_64.h
> -/* Return whether the given PCI device DMA address mask can
> - * be supported properly. For example, if your device can
> - * only drive the low 24-bits during PCI bus mastering, then
> - * you would pass 0x00ffffff as the mask to this function.
> - */
> -extern int pci_dma_supported(struct pci_dev *hwdev, u64 mask);
> -
> /* PCI IOMMU mapping bypass support. */
>
> /* PCI 64-bit addressing works for all slots on all controller
> --- a/arch/sparc/kernel/iommu.c
> +++ b/arch/sparc/kernel/iommu.c
> @@ -840,6 +840,8 @@ static struct dma_map_ops sun4u_dma_ops = {
> struct dma_map_ops *dma_ops = &sun4u_dma_ops;
> EXPORT_SYMBOL(dma_ops);
>
> +extern int pci64_dma_supported(struct pci_dev *pdev, u64 device_mask);
> +
> int dma_supported(struct device *dev, u64 device_mask)
> {
> struct iommu *iommu = dev->archdata.iommu;
Minor nitpicking: The declaration should better be left in the header
file to avoid extern declarations in C files.
Arnd <
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Conversations: [PATCH 0/5] sparc: use asm-generic/dma-mapping-common.h and pci-dma-compat.h
- [PATCH 0/5] sparc: use asm-generic/dma-mapping-common.h and pci-dma-compat.h by FUJITA Tomonori on 2009-07-06T06:15:56+00:00
- [PATCH 1/5] sparc: use dma_map_ops struct by FUJITA Tomonori on 2009-07-06T06:16:15+00:00
- [PATCH 2/5] sparc: use asm-generic/dma-mapping-common.h by FUJITA Tomonori on 2009-07-06T06:16:28+00:00
- [PATCH 5/5] sparc: use asm-generic/pci-dma-compat by FUJITA Tomonori on 2009-07-06T06:16:47+00:00
- Re: [PATCH 5/5] sparc: use asm-generic/pci-dma-compat by Arnd Bergmann on 2009-07-06T08:22:08+00:00
- Re: [PATCH 2/5] sparc: use asm-generic/dma-mapping-common.h by Arnd Bergmann on 2009-07-06T08:26:54+00:00
Related Threads
- update devel/darcs - openbsd
- PATCH - Fix RW dependence testing in vect_analyze_data_ref_dependence - gcc
- Stopping GDM from auto-mounting autofs home dirs - ubuntu
- Support of 'salt' based password schemes - IMPLEMENTED - ofbiz
- Hendrix - VERY IMPORTANT - firefox
- 2/2 - msxml3: Rewrite IXMLDOMDocument2 save to behave more like msxml3 (try 2) - wine
- Openvpn-devel - Development Snapshots - openvpn
- svn commit: r936390 - in /activemq/trunk/activemq-core/src: main/java/org/apache/activemq/broker/region/ main/java/org/apache/ac - activemq
- Hendrix - foobar - firefox