julan
驱动小牛
驱动小牛
  • 注册日期2001-11-23
  • 最后登录2005-04-29
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1083回复:1

pci地址如何映射

楼主#
更多 发布于:2002-01-07 09:51
我做一pci9054、双口ram、tms320c31的pci卡,想知道计算机如何访问到我的双口ram上。双口ram数据线16位,对计算机来说,他的地址是什么。
best wishes
kapok@371.net
echo
hong
驱动小牛
驱动小牛
  • 注册日期2001-09-19
  • 最后登录2005-12-16
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望1点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-07-15 21:34
basically, the resouces on pci board, I/O ports, memory register and ram can be seen by host through PCI;
as 9054, after booting, bios will assign following base address on so call bars location: herewith is in my pc
bar0:memory range: 0xE9001000 - 0xE90010ff
bar1:I/O range:    0xDC00 - 0xDCff
bar2:memory range: 0xe7000000 - 0xe7ffffff
bar3:memory range: 0xe8000000 - 0xe8ffffff
these base address are assigned by bios during boot and can be different from pc to pc, slot to slot and time to time.
as device driver, you just need to get these base address and map to kernel virtual address then read/write accoring to required opertion.
hope this help.

hong

游客

返回顶部