diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2010-11-30 15:25:34 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-11-30 15:25:34 -0600 |
commit | 09fa35e5cdc7d17ed3e1528ca743893ae77a0ea2 (patch) | |
tree | b11bb495700b297a4d49692bfd8d6070a1b74e0b /hw/ide/via.c | |
parent | 9233da785f55c924c5850cd1ce1b7f5f200d631b (diff) | |
parent | b76876e602ca09ff848d99595a506feb1fd54ff4 (diff) |
Merge remote branch 'kwolf/for-anthony' into staging
Diffstat (limited to 'hw/ide/via.c')
-rw-r--r-- | hw/ide/via.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/hw/ide/via.c b/hw/ide/via.c index b2c7cad622..3e41d005b1 100644 --- a/hw/ide/via.c +++ b/hw/ide/via.c @@ -87,12 +87,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; } } |