summaryrefslogtreecommitdiff
path: root/hw/pckbd.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-09-10 11:43:26 +0200
committermalc <av1474@comtv.ru>2009-09-10 19:47:58 +0400
commit6c9bb1c723e15d76b62c7c80dcf0e720ac05af5b (patch)
tree639b1de76d4c0fdbd8ae2501da3288bc62ae28ce /hw/pckbd.c
parent2ea2b56216cc977e8c664f4cc68a9539d7942abe (diff)
downloadqemu-6c9bb1c723e15d76b62c7c80dcf0e720ac05af5b.tar.gz
qemu-6c9bb1c723e15d76b62c7c80dcf0e720ac05af5b.tar.bz2
qemu-6c9bb1c723e15d76b62c7c80dcf0e720ac05af5b.zip
qdev: drop iobase properties from isa bus
Lot of ISA devices work at fixed addresses, so having iobase as bus property doesn't make much sense. Devices which can have different iobases will get a device property. Also simply hard-code stuff which can't be configured anyway. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/pckbd.c')
-rw-r--r--hw/pckbd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/pckbd.c b/hw/pckbd.c
index 3f833202a2..b4b65a6604 100644
--- a/hw/pckbd.c
+++ b/hw/pckbd.c
@@ -455,10 +455,10 @@ static int i8042_initfn(ISADevice *dev)
kbd_reset(s);
register_savevm("pckbd", 0, 3, kbd_save, kbd_load, s);
- register_ioport_read(dev->iobase[0], 1, 1, kbd_read_data, s);
- register_ioport_write(dev->iobase[0], 1, 1, kbd_write_data, s);
- register_ioport_read(dev->iobase[1], 1, 1, kbd_read_status, s);
- register_ioport_write(dev->iobase[1], 1, 1, kbd_write_command, s);
+ register_ioport_read(0x60, 1, 1, kbd_read_data, s);
+ register_ioport_write(0x60, 1, 1, kbd_write_data, s);
+ register_ioport_read(0x64, 1, 1, kbd_read_status, s);
+ register_ioport_write(0x64, 1, 1, kbd_write_command, s);
s->kbd = ps2_kbd_init(kbd_update_kbd_irq, s);
s->mouse = ps2_mouse_init(kbd_update_aux_irq, s);