Subversion Repositories HelenOS

Rev

Rev 1922 | Rev 1933 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1922 Rev 1923
Line 69... Line 69...
69
#include <ddi/irq.h>
69
#include <ddi/irq.h>
70
#include <adt/hash_table.h>
70
#include <adt/hash_table.h>
71
#include <arch/types.h>
71
#include <arch/types.h>
72
#include <typedefs.h>
72
#include <typedefs.h>
73
#include <synch/spinlock.h>
73
#include <synch/spinlock.h>
74
#include <atomic.h>
-
 
75
#include <arch.h>
74
#include <arch.h>
76
 
75
 
77
#define KEY_INR     0
76
#define KEY_INR     0
78
#define KEY_DEVNO   1
77
#define KEY_DEVNO   1
79
 
78
 
Line 144... Line 143...
144
    irq->devno = -1;
143
    irq->devno = -1;
145
    irq->trigger = 0;
144
    irq->trigger = 0;
146
    irq->claim = NULL;
145
    irq->claim = NULL;
147
    irq->handler = NULL;
146
    irq->handler = NULL;
148
    irq->arg = NULL;
147
    irq->arg = NULL;
149
    irq->notif_answerbox = NULL;
148
    irq->notif_cfg.answerbox = NULL;
150
    irq->code = NULL;
149
    irq->notif_cfg.code = NULL;
151
    irq->method = 0;
150
    irq->notif_cfg.method = 0;
152
    atomic_set(&irq->counter, 0);
151
    irq->notif_cfg.counter = 0;
153
}
152
}
154
 
153
 
155
/** Register IRQ for device.
154
/** Register IRQ for device.
156
 *
155
 *
157
 * The irq structure must be filled with information
156
 * The irq structure must be filled with information