diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-12-08 13:34:56 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-12-11 21:27:46 +0000 |
commit | dee41d58ef7b874fd8a07e9e0ae4ef6e7fe624fc (patch) | |
tree | bf50e58bad6dda3e9e334ebd57373b7bdc3b8d17 /hw/fdc.c | |
parent | 21150814d9f0d40b77f8ec54e716505b85b87e6b (diff) |
Keep track of ISA ports ISA device is using in qdev.
Store all io ports used by device in ISADevice structure.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/fdc.c')
-rw-r--r-- | hw/fdc.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1983,6 +1983,9 @@ static int isabus_fdc_init1(ISADevice *dev) &fdctrl_write_port, fdctrl); register_ioport_write(iobase + 0x07, 1, 1, &fdctrl_write_port, fdctrl); + isa_init_ioport_range(dev, iobase, 6); + isa_init_ioport(dev, iobase + 7); + isa_init_irq(&isa->busdev, &fdctrl->irq, isairq); fdctrl->dma_chann = dma_chann; |