From: "Mohammed Al-Saleh" <alsaleh@cs.unm.edu>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] CD-ROM Reading
Date: Mon, 4 Aug 2008 11:42:20 -0600 [thread overview]
Message-ID: <20080804173009.M9631@cs.unm.edu> (raw)
In-Reply-To: <20080727164239.M42198@cs.unm.edu>
Hi all;
Two methods to read from the CD-ROM depending on the following condition in
the hw/ide.c file:
if (s->atapi_dma) {
ide_atapi_cmd_read_dma(s, lba, nb_sectors, sector_size);
} else {
ide_atapi_cmd_read_pio(s, lba, nb_sectors, sector_size);
}
in the first case (ide_atapi_cmd_read_dma), it is obvious how data will be
read from the CD-ROM into an io_buffer and then to the RAM. But in the
second case(ide_atapi_cmd_read_pio), it is obvious how that data will be
read from the CD-ROM into an io_buffer, but it is not obvious how or when
the data will written to the RAM. I know that cd_read_sector function (which
is called from ide_atapi_cmd_reply_end) in ide.c will copy data from the CD-
ROM to an intermediate buffer, but I could not find out when this buffer is
written to the RAM. All of what I can see is after reading data,
ide_transfer_start and ide_set_irq are called, but then what? how data will
go to the RAM? if data will be copied to the RAM implicitly through the
interrupt, then where can I find the ultimate function that copies the data
to the RAM.
Can any body answer my question? it will be very appreciated.
Thanks,
...Mohammed
--
------- End of Forwarded Message -------
--
next prev parent reply other threads:[~2008-08-04 17:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-27 16:52 [Qemu-devel] Question Mohammed Al-Saleh
2008-08-04 17:42 ` Mohammed Al-Saleh [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-07-31 21:46 [Qemu-devel] CD-ROM Reading Mohammed Al-Saleh
2008-07-31 21:55 ` Samuel Thibault
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=20080804173009.M9631@cs.unm.edu \
--to=alsaleh@cs.unm.edu \
--cc=qemu-devel@nongnu.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).