From: "Blue Swirl" <blauwirbel@gmail.com>
To: wpecnik@tecwec.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] can anybody check ?
Date: Thu, 11 Dec 2008 19:05:43 +0200 [thread overview]
Message-ID: <f43fc5580812110905m2b734af4h7ab8fa8e95d317a9@mail.gmail.com> (raw)
In-Reply-To: <200812080138.21206.wpecnik@tecwec.org>
On 12/8/08, William PECNIK <wpecnik@tecwec.org> wrote:
> Hello,
> Perhaps not the good way to report a "potential" bug, but i try ....
> in hw/fdc.c in qemu-0.9.1.tar.gz line 768-781
>
> static uint32_t fdctrl_read_dor (fdctrl_t *fdctrl)
> {
> uint32_t retval = 0;
>
> /* Drive motors state indicators */
> if (drv0(fdctrl)->drflags & FDRIVE_MOTOR_ON)
> retval |= 1 << 5;
> if (drv1(fdctrl)->drflags & FDRIVE_MOTOR_ON)
> retval |= 1 << 4;
> /* DMA enable */
> retval |= fdctrl->dma_en << 3;
> /* Reset indicator */
> retval |= (fdctrl->state & FD_CTRL_RESET) == 0 ? 0x04 : 0;
> /* Selected drive */
> retval |= fdctrl->cur_drv;
> FLOPPY_DPRINTF("digital output register: 0x%02x\n", retval);
>
> return retval;
> }
>
> In my book PC Programming System edition CampuPress they say:
> bit 7 r/w motor on drive 3
> bit 6 r/w motor on drive 2
> bit 5 r/w motor on drive 1
> bit 4 r/w motor on drive 0,
> ... for the port 0x3F2
> and as i can see in source it is inverse , can anybody confirm ?
At least i82077AA and i82078 manuals describe the bits same way.
prev parent reply other threads:[~2008-12-11 17:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-08 0:38 [Qemu-devel] can anybody check ? William PECNIK
2008-12-11 17:05 ` Blue Swirl [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=f43fc5580812110905m2b734af4h7ab8fa8e95d317a9@mail.gmail.com \
--to=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=wpecnik@tecwec.org \
/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).