作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2007, Vol. 33 ›› Issue (18): 256-258. doi: 10.3969/j.issn.1000-3428.2007.18.090

• 工程应用技术与实现 • 上一篇    下一篇

Linux下的DDR DIMM总线接口设备检测方法

王 乐1,张晓彤1,李 磊2,樊 勇1   

  1. (1. 北京科技大学信息工程学院,北京 100083;2. 中国科学院计算技术研究所,北京 100080)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-09-20 发布日期:2007-09-20

Method for Detecting Device of DDR DIMM Interface Under Linux

WANG Yue1, ZHANG Xiao-tong1, LI Lei2, FAN Yong1   

  1. (1. Information Engineering School, University of Science and Technology Beijing, Beijing 100083; 2. Institute of Computing Technology, Chinese Academy of Sciences, Beijing 100080)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-09-20 Published:2007-09-20

摘要: DDR DIMM总线接口是当前普通PC中和CPU交换数据最快的接口,基于此接口开发设备必将有效提高设备的出口带宽。为了避免操作系统管理和使用DDR DIMM,使得用户程序可以通过DDR DIMM总线接口发送和接收数据,该文提出了一种基于Linux操作系统的实现方法。通过把DDR DIMM总线接口设备作为外部设备,将其内存空间映射到用户空间,用户应用程序可以直接访问设备内存。在参照Linux2.4.20-8内核源代码中有关数据结构和函数原形的基础上,编写和测试了DDR DIMM总线接口设备的驱动程序。

关键词: DDR DIMM, Linux, 驱动程序, 内存映射

Abstract: DDR DIMM interface has the maximal data exchange rate with CPU in normal PC, so the devices based on this interface can have high bandwidth. As the DDR DIMM interface is managed and used by OS, user programs can’t use it to transmit or receive data. This paper brings forward a solution under Linux. It uses the device based on DDR DIMM interface as an external device and maps memory space into the user process’s address space, so the user programs can access the device memory directly. Referring to the related data structures and functions of Linux2.4.20-8, a device driver is programmed and tested for the device based on DDR DIMM Interface.

Key words: DDR DIMM, Linux, driver program, memory mapping

中图分类号: