--- a/me8100.h Mon Jan 21 20:14:51 2002 +0100
+++ b/me8100.h Mon Jan 21 21:52:00 2002 +0100
@@ -134,10 +134,14 @@
#define ME8100_CTRL_IRQ_PATTERN 0x40
#define ME8100_CTRL_IRQ_MASK 0x60
-#define ME8100_CTRL_REG 0x00 //( ,w)
-#define ME8100_MASK_REG 0x02 //(r, )
-#define ME8100_DI_REG 0x04 //(r, )
-#define ME8100_DO_REG 0x06 //( ,w)
+#define ME8100_ID_REG 0x00 //(r, )
+#define ME8100_CTRL_REG 0x00 //( ,w)
+#define ME8100_RES_INT_REG 0x02 //(r, )
+#define ME8100_DI_REG 0x04 //(r, )
+#define ME8100_DO_REG 0x06 //( ,w)
+#define ME8100_PATTERN_REG 0x08 //( ,w)
+#define ME8100_MASK_REG 0x0A //( ,w)
+#define ME8100_INT_DI_REG 0x0A //(r, )
/* ME8100 Register Set A */
#define ME8100_ID_REG_A 0x00 //(r, )
@@ -216,6 +220,7 @@
int int_seen;
int int_count;
+ unsigned short int_di; /* value that raised the interrupt */
struct fasync_struct *fasync_ptr;
wait_queue_head_t readq;