阅读:1522回复:5
请教用9052设计ISA转PCI卡资源分配的问题
我用9052设计的ISA转PCI卡,只用到了局部I/O空间03a0-03a7
我的eeprom中的内容如下: eep 0 905010b5 echo PCIIDR; Device ID, Vendor ID eep 4 06800002 echo PCICCR; Class Code eep 8 905010b5 echo Subsystem ID, Subsystem Vendor ID eep c 00000100 echo Maximum Latency, Minimum Grant, Int Pin, Int Routing eep 10 00000000 echo LAS0RR; Local Address Space 0 Range eep 14 fffffff9 echo LAS1RR; Local Address Space 1 Range eep 18 00000000 echo LAS2RR; Local Address Space 2 Range eep 1c 00000000 echo LAS3RR; Local Address Space 3 Range eep 20 00000000 echo EROMRR; Expansion ROM Range eep 24 00000000 echo LAS0BA; Local Address Space 0 Base Address (Re-Map) eep 28 000003a1 echo LAS1BA; Local Address Space 1 Base Address (Re-Map) eep 2c 00000000 echo LAS2BA; Local Address Space 2 Base Address (Re-Map) eep 30 00000000 echo LAS3BA; Local Address Space 3 Base Address (Re-Map) eep 34 00000000 echo EROMBA; Expansion ROM Base Address (Re-Map) eep 38 00000002 echo LAS0BRD; Local Address Space 0 Bus Region Descriptors eep 3c 00000022 echo LAS1BRD; Local Address Space 1 Bus Region Descriptors eep 40 00000000 echo LAS2BRD; Local Address Space 2 Bus Region Descriptors eep 44 00000000 echo LAS3BRD; Local Address Space 3 Bus Region Descriptors eep 48 00000000 echo EROMBRD; Expansion ROM Bus Region Descriptors eep 4c 00000000 echo CS0BASE; Chip Select 0 Base eep 50 000003a9 echo CS1BASE; Chip Select 1 Base eep 54 00000000 echo CS2BASE; Chip Select 2 Base eep 58 00000000 echo CS3BASE; Chip Select 3 Base eep 5c 00001000 echo INTCSR; Interrupt Control/Status eep 60 00454012 echo CNTRL; User I/O, EEPROM, Init Control 在用windriver调试过程中,查看资源分配情况,显示i/o空间BAR1 range为0xa000-0xa07f BAR3 range为0xa400-0xa407 memory空间 BAR0 range为:0xfa000000-0xfa00007f。请问这三个空间是什么意思?怎么才能知道是否为我正确分配了局部I/O空间03a0-03a7呢? |
|
沙发#
发布于:2005-01-05 13:43
用户被禁言,该主题自动屏蔽! |
|
板凳#
发布于:2005-01-05 20:43
再请问一下:
我的板卡局部总线口是在FPGA内对光栅信号进行数据采集处理,我现在要用VC编写一个界面显示结果,是否用随机分配的这个地址? 另外bar1和bar3是什么关系? 不知道我说清楚了没有 [编辑 - 1/5/05 by realxu] |
|
地板#
发布于:2005-01-05 21:22
用户被禁言,该主题自动屏蔽! |
|
地下室#
发布于:2005-01-07 11:09
再请问一下:那么我究竟该调用哪个BAR空间呢?
数据从局部端口3a0-3a7过来之后,是不是就暂存在这两个BAR 里? |
|
5楼#
发布于:2005-01-15 13:36
bar1对应的是pci的局部寄存器 bar3对应的是9052的space2!可以用windriver看一下具体是多少
|
|
|