mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
ide: Split non-qdev code off ide_init2()
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
870111c8ed
commit
57234ee40d
8 changed files with 35 additions and 19 deletions
|
@ -539,7 +539,8 @@ PCMCIACardState *dscm1xxxx_init(DriveInfo *bdrv)
|
|||
md->card.cis = dscm1xxxx_cis;
|
||||
md->card.cis_len = sizeof(dscm1xxxx_cis);
|
||||
|
||||
ide_init2(&md->bus, bdrv, NULL, qemu_allocate_irqs(md_set_irq, md, 1)[0]);
|
||||
ide_init2_with_non_qdev_drives(&md->bus, bdrv, NULL,
|
||||
qemu_allocate_irqs(md_set_irq, md, 1)[0]);
|
||||
md->bus.ifs[0].is_cf = 1;
|
||||
md->bus.ifs[0].mdata_size = METADATA_SIZE;
|
||||
md->bus.ifs[0].mdata_storage = (uint8_t *) qemu_mallocz(METADATA_SIZE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue