Revision b881fbe9 hw/pc.h

b/hw/pc.h
8 8
#include "fdc.h"
9 9
#include "net.h"
10 10
#include "memory.h"
11
#include "ioapic.h"
11 12

  
12 13
/* PC-style peripherals (also used by other machines).  */
13 14

  
......
70 71
void pic_info(Monitor *mon);
71 72
void irq_info(Monitor *mon);
72 73

  
73
/* ISA */
74
#define IOAPIC_NUM_PINS 0x18
74
/* Global System Interrupts */
75 75

  
76
typedef struct isa_irq_state {
77
    qemu_irq *i8259;
78
    qemu_irq ioapic[IOAPIC_NUM_PINS];
79
} IsaIrqState;
76
#define GSI_NUM_PINS IOAPIC_NUM_PINS
80 77

  
81
void isa_irq_handler(void *opaque, int n, int level);
78
typedef struct GSIState {
79
    qemu_irq *i8259_irq;
80
    qemu_irq ioapic_irq[IOAPIC_NUM_PINS];
81
} GSIState;
82

  
83
void gsi_handler(void *opaque, int n, int level);
82 84

  
83 85
/* i8254.c */
84 86

  
......
141 143
                    MemoryRegion **ram_memory);
142 144
qemu_irq *pc_allocate_cpu_irq(void);
143 145
void pc_vga_init(PCIBus *pci_bus);
144
void pc_basic_device_init(qemu_irq *isa_irq,
146
void pc_basic_device_init(qemu_irq *gsi,
145 147
                          ISADevice **rtc_state,
146 148
                          bool no_vmport);
147 149
void pc_init_ne2k_isa(NICInfo *nd);

Also available in: Unified diff