From: Huang Shijie <b32955@freescale.com>
To: <shawn.guo@linaro.org>
Cc: <linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <akpm@linux-foundation.org>,
<u.kleine-koenig@pengutronix.de>,
Huang Shijie <b32955@freescale.com>
Subject: [PATCH resent v2 1/2] ioport : add DEFINE_RES_DMA_SIZE_NAMED macro
Date: Thu, 19 Jan 2012 15:53:39 +0800 [thread overview]
Message-ID: <1326959620-25920-2-git-send-email-b32955@freescale.com> (raw)
In-Reply-To: <1326959620-25920-1-git-send-email-b32955@freescale.com>
Some DMA resource does have the range more then ones.
Signed-off-by: Huang Shijie <b32955@freescale.com>
---
include/linux/ioport.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/include/linux/ioport.h b/include/linux/ioport.h
index 9d57a71..9ea5de4 100644
--- a/include/linux/ioport.h
+++ b/include/linux/ioport.h
@@ -134,8 +134,10 @@ struct resource_list {
#define DEFINE_RES_IRQ(_irq) \
DEFINE_RES_IRQ_NAMED((_irq), NULL)
+#define DEFINE_RES_DMA_SIZE_NAMED(_dma, _size, _name) \
+ DEFINE_RES_NAMED((_dma), (_size), (_name), IORESOURCE_DMA)
#define DEFINE_RES_DMA_NAMED(_dma, _name) \
- DEFINE_RES_NAMED((_dma), 1, (_name), IORESOURCE_DMA)
+ DEFINE_RES_DMA_SIZE_NAMED((_dma), 1, (_name))
#define DEFINE_RES_DMA(_dma) \
DEFINE_RES_DMA_NAMED((_dma), NULL)
--
1.7.0.4
next prev parent reply other threads:[~2012-01-19 7:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-19 7:53 [PATCH resent v2 0/2] ARM/mxs : add GPMI-NAND support for imx23/imx28 Huang Shijie
2012-01-19 7:53 ` Huang Shijie [this message]
2012-01-19 8:14 ` [PATCH resent v2 1/2] ioport : add DEFINE_RES_DMA_SIZE_NAMED macro Shawn Guo
2012-01-19 8:23 ` Huang Shijie
2012-01-19 8:27 ` Huang Shijie
2012-01-19 8:55 ` Shawn Guo
2012-02-05 11:53 ` Huang Shijie
2012-02-05 12:34 ` Russell King - ARM Linux
2012-02-05 16:22 ` Huang Shijie
2012-01-19 7:53 ` [PATCH resent v2 2/2] ARM: mxs: add GPMI-NAND support for imx23/imx28 Huang Shijie
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=1326959620-25920-2-git-send-email-b32955@freescale.com \
--to=b32955@freescale.com \
--cc=akpm@linux-foundation.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shawn.guo@linaro.org \
--cc=u.kleine-koenig@pengutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®