Commit 19cd762f authored by Tom 'spot' Callaway's avatar Tom 'spot' Callaway Committed by David S. Miller

[SPARC]: Add pci_dma_mapping_error to pci.h

Signed-off-by: default avatarTom Callaway <tcallawa@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent 35fcd5dd
No related merge requests found
......@@ -154,6 +154,13 @@ static inline void pcibios_add_platform_entries(struct pci_dev *dev)
{
}
#define PCI_DMA_ERROR_CODE (~(dma_addr_t)0x0)
static inline int pci_dma_mapping_error(dma_addr_t dma_addr)
{
return (dma_addr == PCI_DMA_ERROR_CODE);
}
#endif /* __KERNEL__ */
/* generic pci stuff */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment