Re: [Qemu-devel] [PATCH V4 11/18] fdc: support NEC PC-9821 interface

2010-01-05 Thread Gerd Hoffmann
+fdctrl_t *pc98_fdctrl_init (DriveInfo **fds) +{ +ISADevice *dev; +fdctrl_t *fdctrl; +int i; + +dev = isa_create("pc98-fdc"); +qdev_prop_set_drive(&dev->qdev, "driveA", fds[0]); +qdev_prop_set_drive(&dev->qdev, "driveB", fds[1]); +if (qdev_init(&dev->qdev)< 0) +

[Qemu-devel] [PATCH V4 11/18] fdc: support NEC PC-9821 interface

2009-12-22 Thread TAKEDA, toshiya
Signed-off-by: TAKEDA, toshiya --- hw/fdc.c | 591 -- hw/fdc.h |1 + hw/hw.h | 12 ++ 3 files changed, 472 insertions(+), 132 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index 0579b03..3041a22 100644 --- a/hw/fdc.c +++ b/hw/fd