MultiDrive – free backup, clone & wipe disk utility from Atola Technology

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Does every PRD in PRDT need a disk DMA_READ command
PostPosted: April 3rd, 2014, 23:05 
Offline

Joined: April 3rd, 2014, 22:51
Posts: 1
Location: China
Hi, guys! I am diving into the DMA part of QEMU and I have been confused by the ATA Bus Master DMA specification. We all know that before starting the DMA transfer, we must specify a PRD table in memory. Then we send command to the IO port of the drive to setup the sector_num and number of sectors. Then we issue a DMA_READ command (0xC8) to the drive.
My question is that does each entry in the PRD table needs to separately be told the sector_num and the DMA_READ command? Or we just need to setup the sector_num, number of sectors and issue the DMA_READ command once to consume all the entries in the PRD table?
If I haven't make the question clear, I want to know if the sentence below is right.
Quote:
For ATA, for each PRD entry in the PRDT, the driver must issue a Read/Write DMA command to the disk; specifying a StartLBA and a sector count.

Thanks very much! Any help is appreciated very much!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 33 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group