mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
Un-inline fdctrl_init_isa()
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
8aab031fc6
commit
dfc65f1f78
6 changed files with 26 additions and 25 deletions
24
hw/fdc.h
24
hw/fdc.h
|
@ -1,32 +1,12 @@
|
|||
#ifndef HW_FDC_H
|
||||
#define HW_FDC_H
|
||||
|
||||
#include "isa.h"
|
||||
#include "blockdev.h"
|
||||
#include "qemu-common.h"
|
||||
|
||||
/* fdc.c */
|
||||
#define MAX_FD 2
|
||||
|
||||
static inline ISADevice *fdctrl_init_isa(ISABus *bus, DriveInfo **fds)
|
||||
{
|
||||
ISADevice *dev;
|
||||
|
||||
dev = isa_try_create(bus, "isa-fdc");
|
||||
if (!dev) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (fds[0]) {
|
||||
qdev_prop_set_drive_nofail(&dev->qdev, "driveA", fds[0]->bdrv);
|
||||
}
|
||||
if (fds[1]) {
|
||||
qdev_prop_set_drive_nofail(&dev->qdev, "driveB", fds[1]->bdrv);
|
||||
}
|
||||
qdev_init_nofail(&dev->qdev);
|
||||
|
||||
return dev;
|
||||
}
|
||||
|
||||
ISADevice *fdctrl_init_isa(ISABus *bus, DriveInfo **fds);
|
||||
void fdctrl_init_sysbus(qemu_irq irq, int dma_chann,
|
||||
target_phys_addr_t mmio_base, DriveInfo **fds);
|
||||
void sun4m_fdctrl_init(qemu_irq irq, target_phys_addr_t io_base,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue