* [Qemu-devel] Question
@ 2008-07-27 16:52 Mohammed Al-Saleh
2008-08-04 17:42 ` [Qemu-devel] CD-ROM Reading Mohammed Al-Saleh
0 siblings, 1 reply; 4+ messages in thread
From: Mohammed Al-Saleh @ 2008-07-27 16:52 UTC (permalink / raw)
To: qemu-devel
Hi all;
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
de_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
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] CD-ROM Reading
2008-07-27 16:52 [Qemu-devel] Question Mohammed Al-Saleh
@ 2008-08-04 17:42 ` Mohammed Al-Saleh
0 siblings, 0 replies; 4+ messages in thread
From: Mohammed Al-Saleh @ 2008-08-04 17:42 UTC (permalink / raw)
To: qemu-devel
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 -------
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] CD-ROM Reading
@ 2008-07-31 21:46 Mohammed Al-Saleh
2008-07-31 21:55 ` Samuel Thibault
0 siblings, 1 reply; 4+ messages in thread
From: Mohammed Al-Saleh @ 2008-07-31 21:46 UTC (permalink / raw)
To: qemu-devel
Hi all;
I really need help from you.
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
de_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
--
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-08-04 17:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-27 16:52 [Qemu-devel] Question Mohammed Al-Saleh
2008-08-04 17:42 ` [Qemu-devel] CD-ROM Reading Mohammed Al-Saleh
-- strict thread matches above, loose matches on Subject: below --
2008-07-31 21:46 Mohammed Al-Saleh
2008-07-31 21:55 ` Samuel Thibault
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).