linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 1/6] dmaengine: shdma: add IRQ resource name definition macros
@ 2012-01-11  7:27 Shimoda, Yoshihiro
  2012-01-12  1:04 ` Paul Mundt
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Shimoda, Yoshihiro @ 2012-01-11  7:27 UTC (permalink / raw)
  To: linux-sh

The SH DMAC has an ERROR IRQ and channel IRQs. So, the defination
macros are used as the resource name, and the resource name will be
used to detect each IRQ by the driver.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
 about v4:
  - add defination macros for IRQ resource first.

 include/linux/sh_dma.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/linux/sh_dma.h b/include/linux/sh_dma.h
index cb2dd11..a6c82cc 100644
--- a/include/linux/sh_dma.h
+++ b/include/linux/sh_dma.h
@@ -13,6 +13,10 @@
 #include <linux/list.h>
 #include <linux/dmaengine.h>

+/* resource name of IORESOURCE_IRQ */
+#define SH_DMA_IRQ_ERROR	"error"
+#define SH_DMA_IRQ_CHANNEL	"channel"
+
 /* Used by slave DMA clients to request DMA to/from a specific peripheral */
 struct sh_dmae_slave {
 	unsigned int			slave_id; /* Set by the platform */
-- 
1.7.1

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

end of thread, other threads:[~2012-01-12  1:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-11  7:27 [PATCH v4 1/6] dmaengine: shdma: add IRQ resource name definition macros Shimoda, Yoshihiro
2012-01-12  1:04 ` Paul Mundt
2012-01-12  1:54 ` Shimoda, Yoshihiro
2012-01-12  1:57 ` Paul Mundt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).