2012-12-24 42 views
0

我在看嵌入式x86系统设计文档。包含Xilinx FPGA的I/O板连接到linux x86 PCI总线。 FPGA实现如下所述:linux设备资源号?

• PCI interface core to connect to the x86 PCI bus 

• Xilinx MB soft processor 

• Xilinx OPB bus (this is a processor bus for the MB) 

• PCI <-> OPB interface to allow the PCI bus to access all OPB peripherals 

• Interrupt controllers for dealing with interrupts from internal/external devices. 

• Dual port RAM connected to PCI and OPB for MB/x86 communication 

连接后,它声称86现在将能够访问“MB处理器”,“双端口RAM”,“外围设备”。

然后它声称PCI板本身发布了两套资源资源0是一个4Meg区域,用于连接到MB处理器和ioboard上的IO点。 资源1​​是MB处理器和x86之间的双端口RAM接口。

我是新的linux设备驱动程序,刚开始学习。

任何人都可以解释一下“PC板本身发布两套资源”是什么意思?这是否意味着在插入电路板后(安装驱动程序是必要的?)linux操作系统会检测到一些资源?

该资源信息将如何用于为IO板编写设备驱动程序?或者也许在编写用于MB,RAM和外设的独立设备驱动程序?

感谢,

回答

0

在开始之前,我建议你阅读LDD - http://lwn.net/Kernel/LDD3/。请参阅“第12章:PCI驱动程序”,“访问I/O和内存空间”。你可能想要熟悉整个章节(和本书)