summaryrefslogtreecommitdiff
path: root/pcnet32/irq.h
diff options
context:
space:
mode:
authorZheng Da <zhengda1936@gmail.com>2009-11-14 00:15:08 +0100
committerZheng Da <zhengda1936@gmail.com>2009-11-14 00:15:08 +0100
commit6c25f97b8e9171eb399d56549cded82d29d05924 (patch)
treed4870807926dcba2a27fb55f705f8af1424d77b1 /pcnet32/irq.h
parentea13a76596f0a980fad58b83a6b50917d65b67c0 (diff)
A working user-level pcnet32 driver.user-level_pcnet32
Diffstat (limited to 'pcnet32/irq.h')
-rw-r--r--pcnet32/irq.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/pcnet32/irq.h b/pcnet32/irq.h
new file mode 100644
index 000000000..14c48e5ae
--- /dev/null
+++ b/pcnet32/irq.h
@@ -0,0 +1,27 @@
+#ifndef __IRQ_H__
+
+#define __IRQ_H__
+
+#include <device/device_types.h>
+#include <mach.h>
+
+#include "netdevice.h"
+
+void deliver_irq (int irq);
+
+typedef struct
+{
+ mach_msg_header_t irq_header;
+ mach_msg_type_t irq_type;
+ int irq;
+} mach_irq_notification_t;
+
+#define IRQ_NOTIFY_MSGH_SEQNO 0
+#define MACH_NOTIFY_IRQ 100
+
+int request_irq (struct linux_device *dev,
+ void (*handler) (int), unsigned long flags);
+
+void free_irq (struct linux_device *dev);
+
+#endif