X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-alpha%2Fdma-mapping.h;h=c675f282d6ad9d8090ddefeb42d25343635b161a;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=0faad459ad12570f5f06b3ea28899b9fdffac8a2;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/asm-alpha/dma-mapping.h b/include/asm-alpha/dma-mapping.h index 0faad459a..c675f282d 100644 --- a/include/asm-alpha/dma-mapping.h +++ b/include/asm-alpha/dma-mapping.h @@ -25,6 +25,8 @@ pci_unmap_sg(alpha_gendev_to_pci(dev), sg, nents, dir) #define dma_supported(dev, mask) \ pci_dma_supported(alpha_gendev_to_pci(dev), mask) +#define dma_mapping_error(addr) \ + pci_dma_mapping_error(addr) #else /* no PCI - no IOMMU. */ @@ -43,6 +45,8 @@ int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, #define dma_unmap_page(dev, addr, size, dir) do { } while (0) #define dma_unmap_sg(dev, sg, nents, dir) do { } while (0) +#define dma_mapping_error(addr) (0) + #endif /* !CONFIG_PCI */ #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)