diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-02-20 17:05:20 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-02-28 00:23:39 +0100 |
commit | dcaff46101c1f3abd97bbc5ba2f6c904def4e3b3 (patch) | |
tree | b15074b1b32d9b2238e55e214d8d73738dfa5025 /hw/ide/ide-internal.h | |
parent | b5a9de3259f4c791bde2faff086dd5737625e41e (diff) |
ide: collapse parameters to ide_init_drive
All calls to ide_init_drive comes from ide_dev_initfn. Just pass down the
IDEDevice (IDEState is kinda obsolete and should be merged into IDEDevice).
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/ide/ide-internal.h')
-rw-r--r-- | hw/ide/ide-internal.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/hw/ide/ide-internal.h b/hw/ide/ide-internal.h index 20dde37f45..0d64805da2 100644 --- a/hw/ide/ide-internal.h +++ b/hw/ide/ide-internal.h @@ -416,11 +416,7 @@ uint32_t ide_data_readw(void *opaque, uint32_t addr); void ide_data_writel(void *opaque, uint32_t addr, uint32_t val); uint32_t ide_data_readl(void *opaque, uint32_t addr); -int ide_init_drive(IDEState *s, BlockBackend *blk, IDEDriveKind kind, - const char *version, const char *serial, const char *model, - uint64_t wwn, - uint32_t cylinders, uint32_t heads, uint32_t secs, - int chs_trans, Error **errp); +int ide_init_drive(IDEState *s, IDEDevice *dev, IDEDriveKind kind, Error **errp); void ide_exit(IDEState *s); void ide_bus_init_output_irq(IDEBus *bus, qemu_irq irq_out); int ide_init_ioport(IDEBus *bus, ISADevice *isa, int iobase, int iobase2); |