From: Gerd Hoffmann <kraxel@redhat.com>
To: "TAKEDA, toshiya" <t-takeda@m1.interq.or.jp>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH V4 11/18] fdc: support NEC PC-9821 interface
Date: Tue, 05 Jan 2010 11:20:47 +0100 [thread overview]
Message-ID: <4B43127F.4090305@redhat.com> (raw)
In-Reply-To: <200912221741.AA00214@YOUR-BD18D6DD63.m1.interq.or.jp>
> +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)
> + return NULL;
> + fdctrl =&(DO_UPCAST(fdctrl_isabus_t, busdev, dev)->state);
This code ....
> + fdctrl->if_mode = PC98_MODE_FDDEXC | PC98_MODE_PORTEXC;
> + fdctrl->dor |= FD_DOR_DMAEN;
> +
> + for (i = 0; i< MAX_FD; i++) {
> + fdrive_t *drv =&fdctrl->drives[i];
> + if (drv->dinfo) {
> + fdctrl_media_changed(drv);
> + }
> + }
> + fdctrl->media_timer = qemu_new_timer(vm_clock,
> + pc98_fdctrl_media_timer, fdctrl);
> + qemu_mod_timer(fdctrl->media_timer,
> + qemu_get_clock(vm_clock) + get_ticks_per_sec() / 10);
... should be moved to ...
> +static int pc98_fdc_init1(ISADevice *dev)
... this function.
cheers,
Gerd
prev parent reply other threads:[~2010-01-05 19:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-22 17:41 [Qemu-devel] [PATCH V4 11/18] fdc: support NEC PC-9821 interface TAKEDA, toshiya
2010-01-05 10:20 ` Gerd Hoffmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B43127F.4090305@redhat.com \
--to=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=t-takeda@m1.interq.or.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).