Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1420180 > unrolled thread

[PATCH v2 15/17] sh: SH-INTC helper files

Started byYoshinori Sato <ysato@users.sourceforge.jp>
First post2016-06-12 09:00 +0200
Last post2016-06-12 09:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 15/17] sh: SH-INTC helper files Yoshinori Sato <ysato@users.sourceforge.jp> - 2016-06-12 09:00 +0200

#1420180 — [PATCH v2 15/17] sh: SH-INTC helper files

FromYoshinori Sato <ysato@users.sourceforge.jp>
Date2016-06-12 09:00 +0200
Subject[PATCH v2 15/17] sh: SH-INTC helper files
Message-ID<rJ7xf-5js-25@gated-at.bofh.it>
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
---
 arch/sh/boot/dts/include/dt-bindings               | 1 +
 include/dt-bindings/interrupt-controller/sh_intc.h | 2 ++
 2 files changed, 3 insertions(+)
 create mode 120000 arch/sh/boot/dts/include/dt-bindings
 create mode 100644 include/dt-bindings/interrupt-controller/sh_intc.h

diff --git a/arch/sh/boot/dts/include/dt-bindings b/arch/sh/boot/dts/include/dt-bindings
new file mode 120000
index 0000000..08c00e4
--- /dev/null
+++ b/arch/sh/boot/dts/include/dt-bindings
@@ -0,0 +1 @@
+../../../../../include/dt-bindings
\ No newline at end of file
diff --git a/include/dt-bindings/interrupt-controller/sh_intc.h b/include/dt-bindings/interrupt-controller/sh_intc.h
new file mode 100644
index 0000000..8c9dcdc
--- /dev/null
+++ b/include/dt-bindings/interrupt-controller/sh_intc.h
@@ -0,0 +1,2 @@
+#define evt2irq(evt)		(((evt) >> 5) - 16)
+#define irq2evt(irq)		(((irq) + 16) << 5)
-- 
2.7.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web