diff options
Diffstat (limited to 'pcnet32/irq.h')
-rw-r--r-- | pcnet32/irq.h | 27 |
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 |