]> git.proxmox.com Git - mirror_qemu.git/commit - include/hw/qdev-core.h
qdev: gpio: Define qdev_pass_gpios()
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Fri, 26 Sep 2014 05:23:42 +0000 (22:23 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Oct 2014 14:41:26 +0000 (16:41 +0200)
commit17a96a146cb5195ab1f6b5cf48645f9f6450539f
treeef4fe63aa1c1b42712a10137adc4bfd2ec0aa61c
parentaef0869e8ed83ec201488020a9a1cc44d85d72bf
qdev: gpio: Define qdev_pass_gpios()

Allows a container to take ownership of GPIOs in a contained
device and automatically connect them as GPIOs to the container.

This prepares for deprecation of the SYSBUS IRQ functionality, which
has this feature. We push it up to the device level instead of sysbus
level. There's nothing sysbus specific about passing GPIOs to
containers so its a legitimate device-level generic feature.

Reviewed-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/qdev.c
include/hw/qdev-core.h