Index: include/asm-i386/pci.h =================================================================== RCS file: /cvs/linuxppc64/linuxppc64_2_5/include/asm-i386/pci.h,v retrieving revision 1.8 diff -u -r1.8 pci.h --- include/asm-i386/pci.h 27 Oct 2003 21:04:53 -0000 1.8 +++ include/asm-i386/pci.h 23 Dec 2003 21:24:18 -0000 @@ -59,6 +59,8 @@ /* This is always fine. */ #define pci_dac_dma_supported(pci_dev, mask) (1) +#define pci_dma_error(x) (0) + static __inline__ dma64_addr_t pci_dac_page_to_dma(struct pci_dev *pdev, struct page *page, unsigned long offset, int direction) { Index: include/asm-ppc/pci.h =================================================================== RCS file: /cvs/linuxppc64/linuxppc64_2_5/include/asm-ppc/pci.h,v retrieving revision 1.7 diff -u -r1.7 pci.h --- include/asm-ppc/pci.h 30 Sep 2003 14:39:37 -0000 1.7 +++ include/asm-ppc/pci.h 23 Dec 2003 21:24:18 -0000 @@ -238,6 +238,7 @@ * memory above the 4GB point, and we don't support that. */ #define pci_dac_dma_supported(pci_dev, mask) (0) +#define pci_dma_error(x) (0) static __inline__ dma64_addr_t pci_dac_page_to_dma(struct pci_dev *pdev, struct page *page, unsigned long offset, int direction) Index: include/asm-ppc64/pci_dma.h =================================================================== RCS file: /cvs/linuxppc64/linuxppc64_2_5/include/asm-ppc64/pci_dma.h,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 pci_dma.h --- include/asm-ppc64/pci_dma.h 15 Jun 2002 18:29:29 -0000 1.1.1.1 +++ include/asm-ppc64/pci_dma.h 23 Dec 2003 21:24:18 -0000 @@ -31,6 +31,7 @@ #define NUM_TCE_LEVELS 10 #define NO_TCE ((dma_addr_t)-1) +#define pci_dma_error(x) ((x) == NO_TCE) /* * Tces come in two formats, one for the virtual bus and a different