Skip to contentSkip to conversation

define pci_dma_mapping_error for sparc

PATCH Applied Tom 'spot' Callaway 2 participants 3 messages Jul 12, 2004 – Jul 21, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 define pci_dma_mapping_error for sparc

Sparc32 is missing the pci_dma_mapping_error function in pci.h, this patch adds it.

~spot
---
Tom "spot" Callaway <tcallawa(a)redhat*com> LCA, RHCE Red Hat Sales Engineer || Aurora Linux Project Leader

"If you are going through hell, keep going."
- Sir Winston Churchill

include/asm-sparc/pci.h renamed from include/asm-sparc/pci.h.BAD +7 -0
@@ -148,6 +148,13 @@
 {
 }
 
+#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 */
#1 lore raw
Quoted 2 lines · Tom 'spot' Callaway

Sparc32 is missing the pci_dma_mapping_error function in pci.h, this patch adds it.

Ugh. Use this revision instead, sorry for the nasty whitespace.

~spot
---
Tom "spot" Callaway <tcallawa(a)redhat*com> LCA, RHCE Red Hat Sales Engineer || Aurora Linux Project Leader

"If you are going through hell, keep going."
- Sir Winston Churchill

include/asm-sparc/pci.h renamed from include/asm-sparc/pci.h.BAD +7 -0
@@ -148,6 +148,13 @@
 {
 }
 
+#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 */
#2 lore raw
In reply to Tom 'spot' Callaway
Quoted 5 lines · On Mon, 12 Jul 2004 17:33:23 -0500 "Tom 'spot' Callaway" <[email protected]>…
Quoted 2 lines · Tom 'spot' Callaway

Sparc32 is missing the pci_dma_mapping_error function in pci.h, this patch adds it.

Ugh. Use this revision instead, sorry for the nasty whitespace.

Applied, thanks Tom.