* [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
* Re: [PATCH 2.6] define pci_dma_mapping_error for sparc
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
1 sibling, 0 replies; 3+ messages in thread
From: Tom 'spot' Callaway @ 2004-07-12 22:33 UTC (permalink / raw)
To: sparclinux
[-- Attachment #1: Type: text/plain, Size: 405 bytes --]
On Mon, 2004-07-12 at 17:30 -0500, Tom 'spot' Callaway wrote:
> 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
[-- Attachment #2: linux-2.6.6-sparc-define_pci_dma_mapping_error-good.patch --]
[-- Type: text/x-patch, Size: 411 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
* Re: [PATCH 2.6] define pci_dma_mapping_error for sparc
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
1 sibling, 0 replies; 3+ messages in thread
From: David S. Miller @ 2004-07-21 20:51 UTC (permalink / raw)
To: sparclinux
On Mon, 12 Jul 2004 17:33:23 -0500
"Tom 'spot' Callaway" <tcallawa@redhat.com> wrote:
> On Mon, 2004-07-12 at 17:30 -0500, Tom 'spot' Callaway wrote:
> > 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.
^ 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.