aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-06-24 14:40:39 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-06-26 18:40:12 +0100
commit7b9fff290c20ee65c5deba0ad98f97529061d231 (patch)
tree58540a0e7fe7ae3148219706817c8afaa8e8b2a6 /hw
parentd4f5b4d87945d2a0f02fea8b42439d24c809c458 (diff)
downloadqemu-7b9fff290c20ee65c5deba0ad98f97529061d231.zip
qemu-7b9fff290c20ee65c5deba0ad98f97529061d231.tar.gz
qemu-7b9fff290c20ee65c5deba0ad98f97529061d231.tar.bz2
pckbd: add size qdev property to I8042_MMIO device
This will soon be used to set the size of the register memory region using a qdev property. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Helge Deller <deller@gmx.de> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20220624134109.881989-25-mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw')
-rw-r--r--hw/input/pckbd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/input/pckbd.c b/hw/input/pckbd.c
index c04a2c5..a70442e 100644
--- a/hw/input/pckbd.c
+++ b/hw/input/pckbd.c
@@ -675,6 +675,7 @@ static void i8042_mmio_reset(DeviceState *dev)
static Property i8042_mmio_properties[] = {
DEFINE_PROP_UINT64("mask", MMIOKBDState, kbd.mask, UINT64_MAX),
+ DEFINE_PROP_UINT32("size", MMIOKBDState, size, -1),
DEFINE_PROP_END_OF_LIST(),
};
@@ -696,6 +697,7 @@ void i8042_mm_init(qemu_irq kbd_irq, qemu_irq mouse_irq,
dev = qdev_new(TYPE_I8042_MMIO);
qdev_prop_set_uint64(dev, "mask", mask);
+ qdev_prop_set_uint32(dev, "size", size);
sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
s = &I8042_MMIO(dev)->kbd;