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/pckbd.c | |
parent | 21150814d9f0d40b77f8ec54e716505b85b87e6b (diff) | |
download | qemu-dee41d58ef7b874fd8a07e9e0ae4ef6e7fe624fc.zip qemu-dee41d58ef7b874fd8a07e9e0ae4ef6e7fe624fc.tar.gz qemu-dee41d58ef7b874fd8a07e9e0ae4ef6e7fe624fc.tar.bz2 |
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/pckbd.c')
-rw-r--r-- | hw/pckbd.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -485,10 +485,13 @@ static int i8042_initfn(ISADevice *dev) register_ioport_read(0x60, 1, 1, kbd_read_data, s); register_ioport_write(0x60, 1, 1, kbd_write_data, s); + isa_init_ioport(dev, 0x60); register_ioport_read(0x64, 1, 1, kbd_read_status, s); register_ioport_write(0x64, 1, 1, kbd_write_command, s); + isa_init_ioport(dev, 0x64); register_ioport_read(0x92, 1, 1, ioport92_read, s); register_ioport_write(0x92, 1, 1, ioport92_write, s); + isa_init_ioport(dev, 0x92); s->kbd = ps2_kbd_init(kbd_update_kbd_irq, s); s->mouse = ps2_mouse_init(kbd_update_aux_irq, s); |