• Home
  • Raw
  • Download

Lines Matching refs:irq

76 static inline void pic_set_irq1(PicState *s, int irq, int level)  in pic_set_irq1()  argument
79 mask = 1 << irq; in pic_set_irq1()
145 int irq2, irq; in pic_update_irq() local
155 irq = pic_get_irq(&s->pics[0]); in pic_update_irq()
156 if (irq >= 0) { in pic_update_irq()
184 static void i8259_set_irq(void *opaque, int irq, int level) in i8259_set_irq() argument
189 if (level != irq_level[irq]) { in i8259_set_irq()
191 printf("i8259_set_irq: irq=%d level=%d\n", irq, level); in i8259_set_irq()
193 irq_level[irq] = level; in i8259_set_irq()
196 irq_count[irq]++; in i8259_set_irq()
202 irq_time[irq] = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in i8259_set_irq()
205 pic_set_irq1(&s->pics[irq >> 3], irq & 7, level); in i8259_set_irq()
208 s->alt_irq_func(s->alt_irq_opaque, irq, level); in i8259_set_irq()
213 static inline void pic_intack(PicState *s, int irq) in pic_intack() argument
217 s->priority_add = (irq + 1) & 7; in pic_intack()
219 s->isr |= (1 << irq); in pic_intack()
222 if (!(s->elcr & (1 << irq))) in pic_intack()
223 s->irr &= ~(1 << irq); in pic_intack()
228 int irq, irq2, intno; in pic_read_irq() local
230 irq = pic_get_irq(&s->pics[0]); in pic_read_irq()
231 if (irq >= 0) { in pic_read_irq()
232 pic_intack(&s->pics[0], irq); in pic_read_irq()
233 if (irq == 2) { in pic_read_irq()
242 irq = irq2 + 8; in pic_read_irq()
244 intno = s->pics[0].irq_base + irq; in pic_read_irq()
248 irq = 7; in pic_read_irq()
249 intno = s->pics[0].irq_base + irq; in pic_read_irq()
255 irq, in pic_read_irq()
256 … (double)(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) - irq_time[irq]) * 1000000.0 / get_ticks_per_sec); in pic_read_irq()
259 printf("pic_interrupt: irq=%d\n", irq); in pic_read_irq()
289 int priority, cmd, irq; in pic_ioport_write() local
324 irq = (priority + s->priority_add) & 7; in pic_ioport_write()
325 s->isr &= ~(1 << irq); in pic_ioport_write()
327 s->priority_add = (irq + 1) & 7; in pic_ioport_write()
332 irq = val & 7; in pic_ioport_write()
333 s->isr &= ~(1 << irq); in pic_ioport_write()
341 irq = val & 7; in pic_ioport_write()
342 s->isr &= ~(1 << irq); in pic_ioport_write()
343 s->priority_add = (irq + 1) & 7; in pic_ioport_write()