summary refs log tree commit diff stats
path: root/hw/misc/mps2-fpgaio.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2018-03-02 10:45:38 +0000
committerPeter Maydell <peter.maydell@linaro.org>2018-03-02 11:03:45 +0000
commit4a151677a8ea80e65f519fed1df92c0db6350a02 (patch)
treed71ca52ab8a8959e337819e7ffdf27696e9e26fe /hw/misc/mps2-fpgaio.c
parent439f122f760c0327f60228047652638d769a836c (diff)
downloadfocaccia-qemu-4a151677a8ea80e65f519fed1df92c0db6350a02.tar.gz
focaccia-qemu-4a151677a8ea80e65f519fed1df92c0db6350a02.zip
qdev: Add new qdev_init_gpio_in_named_with_opaque()
The function qdev_init_gpio_in_named() passes the DeviceState pointer
as the opaque data pointor for the irq handler function.  Usually
this is what you want, but in some cases it would be helpful to use
some other data pointer.

Add a new function qdev_init_gpio_in_named_with_opaque() which allows
the caller to specify the data pointer they want.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180220180325.29818-12-peter.maydell@linaro.org
Diffstat (limited to 'hw/misc/mps2-fpgaio.c')
0 files changed, 0 insertions, 0 deletions