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

pci地址如何映射

楼主#
更多 发布于:2002-01-07 10:01
我做一pci9054、双口ram、tms320c31的pci卡,想知道计算机如何访问到我的双口ram上。双口ram数据线16位,对计算机来说,他的地址是什么(pci9054的映射寄存器该如何设置)。
best wishes
kapok@371.net

最新喜欢:

juventusjuvent...
echo
hong
驱动小牛
驱动小牛
  • 注册日期2001-09-19
  • 最后登录2005-12-16
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望1点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-07-15 21:43
you have to make your self clear first:
1. do you want to access the on board memory from Host computer through PCI?
or
2. you want to access the on board memory from your on board MPU or other devices?

if you are the case 1. normally you not need to do base address assignment manually, bios will do it automatically.
there is not reason for doing so manually. as long as you have a way to access the on board memory who cares the value of the base address.

if you are the case 2. you can do it freely on your board design.
six
six
驱动牛犊
驱动牛犊
  • 注册日期2001-06-03
  • 最后登录2003-08-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2002-01-07 11:01
问题是我想手动分配,如何做到?
关键是如何得到一块可用的内存空间?又如何知道物理地址和逻辑地址之间的关系?
????
lu_six
gcai
驱动牛犊
驱动牛犊
  • 注册日期2001-03-23
  • 最后登录2009-09-12
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2002-01-07 10:45
对于计算机来说
9054的地址就是在pci总线上的地址
一般是由bios来分配的
你只要根据bar的值就可以访问了
jst7792
论坛版主
论坛版主
  • 注册日期2001-12-10
  • 最后登录2006-11-16
  • 粉丝0
  • 关注0
  • 积分3分
  • 威望1点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2002-01-07 10:44
9054作设计时,你需要提供这块存储器的range,local bus base
address,其中系统关心的主要是range,系统通过读config register
获得range后,分配一部分地址空间,系统启动后,你可以通过读
config register,获得实际分配的物理地址,如果想知道逻辑地址,
就要借助于驱动程序了(至少我不知道还有什么办法).

兄弟们,给点分吧
游客

返回顶部