All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6] define pci_dma_mapping_error for sparc
@ 2004-07-12 22:30 Tom 'spot' Callaway
  2004-07-12 22:33 ` Tom 'spot' Callaway
  2004-07-21 20:51 ` David S. Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Tom 'spot' Callaway @ 2004-07-12 22:30 UTC (permalink / raw)
  To: sparclinux

[-- Attachment #1: Type: text/plain, Size: 274 bytes --]

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

[-- Attachment #2: linux-2.6.6-sparc-define_pci_dma_mapping_error.patch --]
[-- Type: text/x-patch, Size: 491 bytes --]

--- linux-2.6.6/include/asm-sparc/pci.h.BAD	2004-05-19 21:38:11.502123000 -0400
+++ linux-2.6.6/include/asm-sparc/pci.h	2004-05-19 21:40:13.872123000 -0400
@@ -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 */

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-07-21 20:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-12 22:30 [PATCH 2.6] define pci_dma_mapping_error for sparc Tom 'spot' Callaway
2004-07-12 22:33 ` Tom 'spot' Callaway
2004-07-21 20:51 ` David S. Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.