Revision 96e2fc41 hw/sh_intc.c
b/hw/sh_intc.c | ||
---|---|---|
73 | 73 |
} |
74 | 74 |
} |
75 | 75 |
|
76 |
void sh_intc_set_irq (void *opaque, int n, int level) |
|
77 |
{ |
|
78 |
struct intc_desc *desc = opaque; |
|
79 |
struct intc_source *source = &(desc->sources[n]); |
|
80 |
|
|
81 |
sh_intc_toggle_source(source, 0, level ? 1 : -1); |
|
82 |
} |
|
83 |
|
|
76 | 84 |
int sh_intc_get_pending_vector(struct intc_desc *desc, int imask) |
77 | 85 |
{ |
78 | 86 |
unsigned int i; |
... | ... | |
428 | 436 |
|
429 | 437 |
source->parent = desc; |
430 | 438 |
} |
439 |
|
|
440 |
desc->irqs = qemu_allocate_irqs(sh_intc_set_irq, desc, nr_sources); |
|
431 | 441 |
|
432 | 442 |
desc->iomemtype = cpu_register_io_memory(0, sh_intc_readfn, |
433 | 443 |
sh_intc_writefn, desc); |
Also available in: Unified diff