diff options
| author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-08-23 02:55:40 +0200 |
|---|---|---|
| committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-08-23 02:55:40 +0200 |
| commit | efb3fcb360327b71ef4836f60eda77ac0cab76f3 (patch) | |
| tree | de3178204cf054661e109f46d4f37888441caba6 | |
| parent | f309b0036b005dfa971def25134a5275732ddcc9 (diff) | |
rename irq into intr or line
| -rw-r--r-- | libddekit/interrupt.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libddekit/interrupt.c b/libddekit/interrupt.c index 30515bbd..7de111d4 100644 --- a/libddekit/interrupt.c +++ b/libddekit/interrupt.c @@ -31,10 +31,10 @@ typedef struct { - mach_msg_header_t irq_header; - mach_msg_type_t irq_type; - int irq; -} mach_irq_notification_t; + mach_msg_header_t intr_header; + mach_msg_type_t intr_type; + int line; +} mach_intr_notification_t; /* * Internal type for interrupt loop parameters @@ -129,16 +129,16 @@ static void intloop(void *arg) ddekit_sem_up(params->started); int irq_server (mach_msg_header_t *inp, mach_msg_header_t *outp) { - mach_irq_notification_t *irq_header = (mach_irq_notification_t *) inp; + mach_intr_notification_t *intr_header = (mach_irq_notification_t *) inp; ((mig_reply_header_t *) outp)->RetCode = MIG_NO_REPLY; if (inp->msgh_id != MACH_NOTIFY_IRQ) return 0; /* It's an interrupt not for us. It shouldn't happen. */ - if (irq_header->irq != params->irq) { + if (intr_header->line != params->irq) { ddekit_printf ("We get interrupt %d, %d is expected", - irq_header->irq, params->irq); + intr_header->line, params->irq); return 1; } |
