diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-03-18 22:21:00 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-03-18 22:21:00 -0800 |
| commit | f6c5dcb15bf74b4efc76efe5539025e8c74c2ea9 (patch) | |
| tree | 75bcc588f9fad39335a1e192f5dfe2a11f04577a /include | |
| parent | 29dd2f744bb338594a9d66dbaf9b308d9586a8f0 (diff) | |
| parent | c0c83822a1eab0fe15e6b9e2c56001e9bfa77958 (diff) | |
Merge bk://gkernel.bkbits.net/net-drivers-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-sparc64/pci.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-sparc64/pci.h b/include/asm-sparc64/pci.h index e53279ec1ab6..cfcfd74497ec 100644 --- a/include/asm-sparc64/pci.h +++ b/include/asm-sparc64/pci.h @@ -213,6 +213,13 @@ pci_dac_dma_sync_single_for_device(struct pci_dev *pdev, dma64_addr_t dma_addr, */ } +#define PCI_DMA_ERROR_CODE (~(dma_addr_t)0x0) + +static inline int pci_dma_error(dma_addr_t dma_addr) +{ + return (dma_addr == PCI_DMA_ERROR_CODE); +} + /* Return the index of the PCI controller for device PDEV. */ extern int pci_domain_nr(struct pci_bus *bus); |
