首页> 外国专利> Method and apparatus for dynamic chaining of DMA operations without incurring race conditions

Method and apparatus for dynamic chaining of DMA operations without incurring race conditions

机译:动态链接dma操作而不产生竞争条件的方法和装置

摘要

An apparatus and method for performing direct memory access (DMA) to input/output (I/O) devices are described. In order to overcome storage limitations of a DMA controller, channel control blocks (CCBs) are stored in external memory. The DMA controller is programmed to reference a particular address of the external memory when a predetermined bit, referred to as a chain bit, in a current channel control block is set. The DMA controller will then perform a memory read operation on that area of memory and store a retrieved channel control block at a location previously utilized by an earlier channel control block. This process will continue until the chain bit is reset, at which time a DMA operation is complete. Dynamic chaining is easily accommodated whereby channel control blocks can be dynamically changed during the DMA access to provide a flexible I/O system. The apparatus and method may be used to implement dynamic chaining without incurring race conditions. A wait bit is provided in each channel control block and, when this bit is set, the DMA controller will suspend operations thereby providing an opportunity for updating a chain of CCBs without incurring errors due to race conditions. Once the chain has been modified, the wait bit is reset and processing safely continues.
机译:描述了一种用于对输入/输出(I / O)设备执行直接存储器访问(DMA)的设备和方法。为了克服DMA控制器的存储限制,通道控制块(CCB)存储在外部存储器中。当设置了当前通道控制块中的预定位(称为链接位)时,将DMA控制器编程为引用外部存储器的特定地址。 DMA控制器随后将在该存储器区域上执行存储器读取操作,并将检索到的通道控制块存储在较早的通道控制块先前使用的位置。该过程将继续进行,直到重置链位为止,此时DMA操作完成。可以轻松容纳动态链接,从而可以在DMA访问期间动态更改通道控制块,以提供灵活的I / O系统。该设备和方法可以用于实现动态链接而不会引起竞争状况。在每个通道控制块中都提供了一个等待位,当该位被设置时,DMA控制器将暂停操作,从而提供更新CCB链的机会,而不会因竞争条件而引起错误。修改链之后,将重置等待位,然后安全地继续处理。

著录项

  • 公开/公告号US5367639A

    专利类型

  • 公开/公告日1994-11-22

    原文格式PDF

  • 申请/专利权人 SUN MICROSYSTEMS INC.;

    申请/专利号US19910815802

  • 发明设计人 MARTIN SODOS;

    申请日1991-12-30

  • 分类号G06F13/28;

  • 国家 US

  • 入库时间 2022-08-22 04:05:50

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号