mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
hw/ide: Un-inline ide_set_irq()
Only include "hw/irq.h" where appropriate. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230215112712.23110-10-philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
1f7a0d0339
commit
da9f1172c0
9 changed files with 16 additions and 8 deletions
|
@ -8,7 +8,6 @@
|
|||
*/
|
||||
|
||||
#include "hw/ide.h"
|
||||
#include "hw/irq.h"
|
||||
#include "sysemu/dma.h"
|
||||
#include "hw/block/block.h"
|
||||
#include "exec/ioport.h"
|
||||
|
@ -572,13 +571,6 @@ static inline IDEState *idebus_active_if(IDEBus *bus)
|
|||
return bus->ifs + bus->unit;
|
||||
}
|
||||
|
||||
static inline void ide_set_irq(IDEBus *bus)
|
||||
{
|
||||
if (!(bus->cmd & IDE_CTRL_DISABLE_IRQ)) {
|
||||
qemu_irq_raise(bus->irq);
|
||||
}
|
||||
}
|
||||
|
||||
/* hw/ide/core.c */
|
||||
extern const VMStateDescription vmstate_ide_bus;
|
||||
|
||||
|
@ -627,6 +619,7 @@ int ide_init_drive(IDEState *s, BlockBackend *blk, IDEDriveKind kind,
|
|||
void ide_init2(IDEBus *bus, qemu_irq irq);
|
||||
void ide_exit(IDEState *s);
|
||||
int ide_init_ioport(IDEBus *bus, ISADevice *isa, int iobase, int iobase2);
|
||||
void ide_set_irq(IDEBus *bus);
|
||||
void ide_register_restart_cb(IDEBus *bus);
|
||||
|
||||
void ide_exec_cmd(IDEBus *bus, uint32_t val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue