summaryrefslogtreecommitdiff
path: root/openpicc/application/pio_irq.h
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-11 17:13:52 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-11 17:13:52 +0000
commit9d397dfbbea03968384b9a1b0ae121b6ba256806 (patch)
treebba755d8eb00dfed0c56707e7748b46a24a8e670 /openpicc/application/pio_irq.h
parent820b68313794bc658cd664cbfd7adddbcfcd2cf8 (diff)
Add pio_irq and pll code
(and a dummy dbgu.h) git-svn-id: https://svn.openpcd.org:2342/trunk@322 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/pio_irq.h')
-rw-r--r--openpicc/application/pio_irq.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/openpicc/application/pio_irq.h b/openpicc/application/pio_irq.h
new file mode 100644
index 0000000..65a0f9d
--- /dev/null
+++ b/openpicc/application/pio_irq.h
@@ -0,0 +1,15 @@
+#ifndef _PIO_IRQ_H
+#define _PIO_IRQ_H
+
+#include "openpicc.h"
+
+#define NR_PIO 32
+typedef void irq_handler_t(u_int32_t pio);
+
+extern void pio_irq_enable(u_int32_t pio);
+extern void pio_irq_disable(u_int32_t pio);
+extern int pio_irq_register(u_int32_t pio, irq_handler_t *func);
+extern void pio_irq_unregister(u_int32_t pio);
+extern void pio_irq_init(void);
+
+#endif
personal git repositories of Harald Welte. Your mileage may vary