From 89c73779743492346d36f68845c74213ac0f4709 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Wed, 9 Sep 2020 10:40:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E7=A7=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- Hardware/Bus/PCI/PCIe_中的_Capability_结构的寻址.md | 12 ++++++------ .../{01.jpg => 001.jpg} | Bin .../{02.jpg => 002.jpg} | Bin .../{03.jpg => 003.jpg} | Bin .../{04.jpg => 004.jpg} | Bin .../{05.jpg => 005.jpg} | Bin .../{06.jpg => 006.jpg} | Bin 7 files changed, 6 insertions(+), 6 deletions(-) rename Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/{01.jpg => 001.jpg} (100%) rename Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/{02.jpg => 002.jpg} (100%) rename Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/{03.jpg => 003.jpg} (100%) rename Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/{04.jpg => 004.jpg} (100%) rename Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/{05.jpg => 005.jpg} (100%) rename Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/{06.jpg => 006.jpg} (100%) diff --git a/Hardware/Bus/PCI/PCIe_中的_Capability_结构的寻址.md b/Hardware/Bus/PCI/PCIe_中的_Capability_结构的寻址.md index c1bde88..d01528a 100644 --- a/Hardware/Bus/PCI/PCIe_中的_Capability_结构的寻址.md +++ b/Hardware/Bus/PCI/PCIe_中的_Capability_结构的寻址.md @@ -2,24 +2,24 @@ PCI-X 和PCIe 总线规范要求其设备必须支持 Capabilities 结构。在PCI 总线的基本配置空间中,包含一个 Capabilities Pointer 寄存器,该寄存器存放 Capabilities 结构链表的头指针。在一个PCIe 设备中,可能含有多个 Capability 结构,这些寄存器组成一个链表,如下图所示。 -![PCIe 总线 Capability 结构的组成](img/PCIe_中的_Capability_结构的寻址/01.jpg) +![PCIe 总线 Capability 结构的组成](img/PCIe_中的_Capability_结构的寻址/001.jpg) 其中每一个 Capability 结构都有唯一的 ID 号,每一个 Capability 寄存器都有一个指针,这个指针指向下一个 Capability 结构,从而组成一个单向链表结构,这个链表的最后一个 Capability 结构的指针为 0。链表开始的指针地址为 0x34 处的 1byte 数值,寻址过程如下。 -![PCIe Config 空间 Capability 指针](img/PCIe_中的_Capability_结构的寻址/02.jpg) +![PCIe Config 空间 Capability 指针](img/PCIe_中的_Capability_结构的寻址/002.jpg) 1. We look at address 34h and see the address of the next capability register set (50h). - ![查找 Capability 寄存器](img/PCIe_中的_Capability_结构的寻址/03.jpg) + ![查找 Capability 寄存器](img/PCIe_中的_Capability_结构的寻址/003.jpg) 2. We jump to 50h and see a capability ID of 05h (MSI Capability Structure). We look at the next capability pointer in 51h to find which address to jump to next (78h). - ![查找 Capability 寄存器](img/PCIe_中的_Capability_结构的寻址/04.jpg) + ![查找 Capability 寄存器](img/PCIe_中的_Capability_结构的寻址/004.jpg) 3. We jump to 78h and see a capability ID of 01h (Power Management Capability Structure). We look at the next capability pointer in 79h to find which address to jump to the next (80h). - ![查找 Capability 寄存器](img/PCIe_中的_Capability_结构的寻址/05.jpg) + ![查找 Capability 寄存器](img/PCIe_中的_Capability_结构的寻址/005.jpg) 4. We jump to 80h and see a capability ID of 10h (PCI Express Capability Structure). We see 00h as the next capability pointer in 81h signifying the end of the linked list. - ![查找 Capability 寄存器](img/PCIe_中的_Capability_结构的寻址/06.jpg) + ![查找 Capability 寄存器](img/PCIe_中的_Capability_结构的寻址/006.jpg) diff --git a/Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/01.jpg b/Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/001.jpg similarity index 100% rename from Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/01.jpg rename to Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/001.jpg diff --git a/Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/02.jpg b/Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/002.jpg similarity index 100% rename from Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/02.jpg rename to Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/002.jpg diff --git a/Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/03.jpg b/Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/003.jpg similarity index 100% rename from Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/03.jpg rename to Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/003.jpg diff --git a/Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/04.jpg b/Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/004.jpg similarity index 100% rename from Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/04.jpg rename to Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/004.jpg diff --git a/Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/05.jpg b/Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/005.jpg similarity index 100% rename from Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/05.jpg rename to Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/005.jpg diff --git a/Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/06.jpg b/Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/006.jpg similarity index 100% rename from Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/06.jpg rename to Hardware/Bus/PCI/img/PCIe_中的_Capability_结构的寻址/006.jpg