diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-07 18:14:41 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-07 18:14:41 +0000 |
commit | d537cf6c8624b27ce2b63431d2f8937f6356f652 (patch) | |
tree | d7173d79977b4426b2ff225b35c839c8a2e4a215 /hw/gt64xxx.c | |
parent | b6e27ab8b12ef6075d85fc505f821643804a3a79 (diff) | |
download | qemu-d537cf6c8624b27ce2b63431d2f8937f6356f652.zip qemu-d537cf6c8624b27ce2b63431d2f8937f6356f652.tar.gz qemu-d537cf6c8624b27ce2b63431d2f8937f6356f652.tar.bz2 |
Unify IRQ handling.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2635 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/gt64xxx.c')
-rw-r--r-- | hw/gt64xxx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c index 9d6bb44..3300d40 100644 --- a/hw/gt64xxx.c +++ b/hw/gt64xxx.c @@ -520,7 +520,7 @@ static int pci_gt64120_map_irq(PCIDevice *pci_dev, int irq_num) extern PCIDevice *piix4_dev; static int pci_irq_levels[4]; -static void pci_gt64120_set_irq(void *pic, int irq_num, int level) +static void pci_gt64120_set_irq(qemu_irq *pic, int irq_num, int level) { int i, pic_irq, pic_level; @@ -537,7 +537,7 @@ static void pci_gt64120_set_irq(void *pic, int irq_num, int level) if (pic_irq == piix4_dev->config[0x60 + i]) pic_level |= pci_irq_levels[i]; } - pic_set_irq(pic_irq, pic_level); + qemu_set_irq(pic[pic_irq], pic_level); } } @@ -608,7 +608,7 @@ void gt64120_reset(void *opaque) gt64120_pci_mapping(s); } -PCIBus *pci_gt64120_init(void *pic) +PCIBus *pci_gt64120_init(qemu_irq *pic) { GT64120State *s; PCIDevice *d; |