简体   繁体   English

Pci驱动程序如何在Linux中运行

[英]How Pci driver works in Linux

I'm trying to learn about how pci drivers works in Linux in PC environment but really find it difficult to go thorugh.There are few following statement which I like to understand before make a move. 我正在尝试了解pci驱动程序在PC环境下如何在Linux中运行,但实际上很难找到它。在采取行动之前,我很少有以下声明。

  1. The PCI specification permits a system to host up to 256 buses.(buses = pci slots?) PCI规范允许系统承载多达256个总线。(总线= pci插槽?)

  2. Each bus hosts up to 32 devices. 每条总线最多可容纳32台设备。

  3. Each device can be a multifunction board with a maximum of eight functions.(what exactly this line means?) 每个设备都可以是一个多功能电路板,最多有八个功能。(这条线到底意味着什么?)

On my PC can see only three pci slots (are these are called buses) and from each slots one irq lines is directed to cpu. 在我的电脑上只能看到三个pci插槽(这些被称为总线),每个插槽中有一个irq线路指向cpu。

It seems my understanding is quite wrong and thats why wanted to get in more views in. 看来我的理解是完全错误的,这就是为什么想要获得更多的观点。

I can answer at least part of your question. 我至少可以回答你的部分问题。

C1  C2  C3  ....  Chipset/PCI bridge
 |   |    |            |
 +---+----+  .... -----+

C1, C2, C3 etc are the white PCI connectors. C1,C2,C3等是白色PCI连接器。
This is where you plug in a PCI card. 这是插入PCI卡的地方。 These are often called PCI slots 这些通常称为PCI插槽

The line at the bottom is the PCI bus. 底部的线是PCI总线。
All devices on the same PCI bus can directly communicate with eachother. 同一PCI总线上的所有设备可以直接相互通信。
Since they are on a shared bus, only one device can be active at the same time. 由于它们位于共享总线上,因此只能同时激活一个设备。


The part I marked Chipset/PCI bridge is often where the PCI bus is connected to other parts of the computer. 标记为芯片组/ PCI桥的部分通常是PCI总线连接到计算机其他部分的位置。 This can be a connection to the chipset, or another PCI bus. 这可以是与芯片组或其他PCI总线的连接。


I found some link on Ars Technica's archives which might help: 我在Ars Technica的档案中找到了一些可能有帮助的链接:
http://archive.arstechnica.com/paedia/p/pci-express/m-pcie-1.html http://archive.arstechnica.com/paedia/p/pci-express/m-pcie-1.html
http://archive.arstechnica.com/paedia/p/pci-express/m-pcie-2.html http://archive.arstechnica.com/paedia/p/pci-express/m-pcie-2.html
... ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM