All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Tom 'spot' Callaway" <tcallawa@redhat.com>
To: sparclinux@vger.kernel.org
Subject: Re: [PATCH 2.6] define pci_dma_mapping_error for sparc
Date: Mon, 12 Jul 2004 22:33:23 +0000	[thread overview]
Message-ID: <1089671603.20813.33.camel@localhost.localdomain> (raw)
In-Reply-To: <1089671439.20813.31.camel@localhost.localdomain>

[-- 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 */

  reply	other threads:[~2004-07-12 22:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2004-07-21 20:51 ` David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1089671603.20813.33.camel@localhost.localdomain \
    --to=tcallawa@redhat.com \
    --cc=sparclinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.