Statistics
| Branch: | Revision:

root / hw / openpic.h @ 7bc3018b

History | View | Annotate | Download (752 Bytes)

1 b7169916 aurel32
#if !defined(__OPENPIC_H__)
2 b7169916 aurel32
#define __OPENPIC_H__
3 b7169916 aurel32
4 b7169916 aurel32
/* OpenPIC have 5 outputs per CPU connected and one IRQ out single output */
5 b7169916 aurel32
enum {
6 b7169916 aurel32
    OPENPIC_OUTPUT_INT = 0, /* IRQ                       */
7 b7169916 aurel32
    OPENPIC_OUTPUT_CINT,    /* critical IRQ              */
8 b7169916 aurel32
    OPENPIC_OUTPUT_MCK,     /* Machine check event       */
9 b7169916 aurel32
    OPENPIC_OUTPUT_DEBUG,   /* Inconditional debug event */
10 b7169916 aurel32
    OPENPIC_OUTPUT_RESET,   /* Core reset event          */
11 b7169916 aurel32
    OPENPIC_OUTPUT_NB,
12 b7169916 aurel32
};
13 b7169916 aurel32
14 8a5faa1d Anthony Liguori
qemu_irq *openpic_init (MemoryRegion **pmem, int nb_cpus,
15 b7169916 aurel32
                        qemu_irq **irqs, qemu_irq irq_out);
16 71cf9e62 Fabien Chouteau
qemu_irq *mpic_init (MemoryRegion *address_space, target_phys_addr_t base,
17 71cf9e62 Fabien Chouteau
                     int nb_cpus, qemu_irq **irqs, qemu_irq irq_out);
18 b7169916 aurel32
#endif /* __OPENPIC_H__ */