[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 11/21] adb: add to input category
From: |
David Gibson |
Subject: |
[Qemu-devel] [PULL 11/21] adb: add to input category |
Date: |
Fri, 23 Oct 2015 20:43:23 +1100 |
From: Laurent Vivier <address@hidden>
The Apple Desktop Bus is used to connect a keyboard and a mouse,
so add it to the input category.
Signed-off-by: Laurent Vivier <address@hidden>
Reviewed-by: Thomas Huth <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
hw/input/adb.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/input/adb.c b/hw/input/adb.c
index a18eea2..09eead9 100644
--- a/hw/input/adb.c
+++ b/hw/input/adb.c
@@ -362,6 +362,7 @@ static void adb_kbd_class_init(ObjectClass *oc, void *data)
akc->parent_realize = dc->realize;
dc->realize = adb_kbd_realizefn;
+ set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
adc->devreq = adb_kbd_request;
dc->reset = adb_kbd_reset;
@@ -566,6 +567,7 @@ static void adb_mouse_class_init(ObjectClass *oc, void
*data)
amc->parent_realize = dc->realize;
dc->realize = adb_mouse_realizefn;
+ set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
adc->devreq = adb_mouse_request;
dc->reset = adb_mouse_reset;
--
2.4.3
- [Qemu-devel] [PULL 00/21] ppc-next-20151023 queue 20151023, David Gibson, 2015/10/23
- [Qemu-devel] [PULL 00/21] ppc-next-20151023 queue 20151023, David Gibson, 2015/10/23
- [Qemu-devel] [PULL 03/21] spapr: Add "slb-size" property to CPU device tree nodes, David Gibson, 2015/10/23
- [Qemu-devel] [PULL 13/21] escc: add to input category, David Gibson, 2015/10/23
- [Qemu-devel] [PULL 12/21] cmd646: add to storage category, David Gibson, 2015/10/23
- [Qemu-devel] [PULL 11/21] adb: add to input category,
David Gibson <=
- [Qemu-devel] [PULL 14/21] grackle: add to bridge category, David Gibson, 2015/10/23
- [Qemu-devel] [PULL 08/21] hw/scsi/spapr_vscsi: Remove superfluous memset, David Gibson, 2015/10/23
- [Qemu-devel] [PULL 04/21] spapr_pci: Allow PCI host bridge DMA window to be configured, David Gibson, 2015/10/23
- [Qemu-devel] [PULL 07/21] spapr_pci: Allow VFIO devices to work on the normal PCI host bridge, David Gibson, 2015/10/23
- [Qemu-devel] [PULL 01/21] spapr: Allocate HTAB from machine init, David Gibson, 2015/10/23
- [Qemu-devel] [PULL 02/21] spapr: Abort when HTAB of requested size isn't allocated, David Gibson, 2015/10/23
- [Qemu-devel] [PULL 06/21] spapr_iommu: Provide a function to switch a TCE table to allowing VFIO, David Gibson, 2015/10/23
- [Qemu-devel] [PULL 16/21] macio-ide: add to storage category, David Gibson, 2015/10/23
- [Qemu-devel] [PULL 19/21] macio-nvram: add to misc category, David Gibson, 2015/10/23
- [Qemu-devel] [PULL 18/21] macio: add to bridge category, David Gibson, 2015/10/23