hw/isa: Factor isa_bus_get_irq() out of isa_get_irq()
commitd2fbec575f652dc35239c5b026f7ebabc548beb1
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 9 Feb 2023 10:55:03 +0000 (9 11:55 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 27 Feb 2023 21:29:02 +0000 (27 22:29 +0100)
treebe47d0668f694fe727eb1ee63409d533a3f9d761
parentdc8d6cf2033c813ade9863a926f2d71a22edd249
hw/isa: Factor isa_bus_get_irq() out of isa_get_irq()

isa_get_irq() was added in commit 3a38d437ca
("Add isa_reserve_irq()" Fri Aug 14 11:36:15 2009) as:

    a temporary interface to be used to allocate ISA IRQs for
    devices which have not yet been converted to qdev, and for
    special cases which are not suited for qdev conversions,
    such as the 'ferr'.

We still use it 14 years later, using the global 'isabus'
singleton. In order to get rid of such *temporary* interface,
extract isa_bus_get_irq() which can take any ISABus* object.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230215161641.32663-3-philmd@linaro.org>
hw/isa/isa-bus.c
include/hw/isa/isa.h