diff options
author | Avi Kivity <avi@redhat.com> | 2010-11-21 18:29:52 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-11-24 17:31:06 +0100 |
commit | 9fbef1ac7cc888f29435e9f636b5dd14cd3260df (patch) | |
tree | d5a3df94b3c658f7f3a371a7b9eefd01f08e604a /hw/ide/piix.c | |
parent | 62155e2b51e3c282ddc30adbb6d7b8d3bb7c386e (diff) | |
download | qemu-9fbef1ac7cc888f29435e9f636b5dd14cd3260df.zip qemu-9fbef1ac7cc888f29435e9f636b5dd14cd3260df.tar.gz qemu-9fbef1ac7cc888f29435e9f636b5dd14cd3260df.tar.bz2 |
ide: convert bmdma address ioport to ioport_register()
cmd646, via compile tested, pci lightly boot tested.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/ide/piix.c')
-rw-r--r-- | hw/ide/piix.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/hw/ide/piix.c b/hw/ide/piix.c index 07483e8..e02b89a 100644 --- a/hw/ide/piix.c +++ b/hw/ide/piix.c @@ -85,12 +85,8 @@ static void bmdma_map(PCIDevice *pci_dev, int region_num, register_ioport_write(addr + 1, 3, 1, bmdma_writeb, bm); register_ioport_read(addr, 4, 1, bmdma_readb, bm); - register_ioport_write(addr + 4, 4, 1, bmdma_addr_writeb, bm); - register_ioport_read(addr + 4, 4, 1, bmdma_addr_readb, bm); - register_ioport_write(addr + 4, 4, 2, bmdma_addr_writew, bm); - register_ioport_read(addr + 4, 4, 2, bmdma_addr_readw, bm); - register_ioport_write(addr + 4, 4, 4, bmdma_addr_writel, bm); - register_ioport_read(addr + 4, 4, 4, bmdma_addr_readl, bm); + iorange_init(&bm->addr_ioport, &bmdma_addr_ioport_ops, addr + 4, 4); + ioport_register(&bm->addr_ioport); addr += 8; } } |