哪位帮我翻译一下 非常感谢

来源:百度知道 编辑:UC知道 时间:2024/05/31 06:01:56
7.2 The Program's View of DMA

To the program, direct memory access devices appear to perform transfers of whole blocks of data to or from the memory. The program that requests the transfer has to provide information that defines the transfer. The actual information that is sent to the controller depends on the type of device. If we consider a transfer from a disk, at least the following must be specified:

disk address - where on that drive the data is located
memory address - destination in memory for the data
item (word/character) count - how much data to transfer
direction of transfer - which way (READ in this case).

This may be generalised to:

source location for transfer
destination location for transfer
length of transfer
direction of transfer.

Once the transfer has been started, the program will, as has already been mentioned, either wait for some sort of DONE bit to appear or

7.2计划的看法的DMA

该计划的,直接记忆体存取装置出现履行转让整个大厦的数据,或从记忆体。该计划要求转让已提供资料,确定了转移。实际的信息发送到控制器,取决于设备的类型。如果我们考虑到转移从一个磁盘,至少有以下几个必须指定:

磁盘地址-如果该驱动器上的数据是位于
记忆体位址-目的地在记忆体中为数据
项目(字/字符)计数-多少数据转移
方向转移-哪种方式(阅读在这种情况下) 。

这可能是笼统到:

源位置的转移
目标位置转移
长度转让
方向的转移手续。

一旦转移已经开始,计划将,正如已经提到,无论是等待某种做位出现,或更可能,返回到其他一些任务后,要求该设备产生一个中断,以马克年底转让。

我们将返回看看具体的例子,转让,但首先我们必须深入研究硬件方面的DMA传输。

7.3硬件方面的DMA

一旦DMA控制器已告诉正是这样做的计划,它将继续举办和转让。有两个层次上发生这种情况。最高级别是共同所有的DMA装备精良的设备和关注如何完成块的数据是之间传送装置和记忆。下级是处理器的依赖和关心的是如何装置收益巴士mastership -的前提下向任何D MA传输。

7.3.1 DMA的设备控制器的操作-满足计划

该计划通过向设备控制器的资料,确定了转移。这是到控制器,以满足这一转移的要求,报告完成之前,该计划的。它已经指出的运作,该控制器在这个水平上重复运作的程序回路,但在硬件。它实际上是在比这更多的,因为它进一步重复的运作程序的数据传输从设备到一个缓冲记忆体中,反之亦然。这是很容易想象,如何做到这一点,在计划的条款。为投入,每个数据项目将收到时,准备置于缓冲区在下次可点。为输出,相反会发生。每个数据项目,将采取从缓冲区及发送到装置时,它愿意处理它。前面的,更多或更少,说明了高层次运作的一般性的DMA控制器。以数据输入作为一个例子,我们可以表达的运作,控制在这个水平上,在伪C为如下:

while (item_count > 0)
{