会计考友 发表于 2012-8-4 12:13:19

linux学习:LPI硬件和体系结构(二)

 总线、端口、IRQ 和 DMA。   PCI 和 ISA 总线
  外围设备(包括那些可能构建在系统板中的)通过 总线 与 CPU 通信。当前最常见的总线类型是 Peripheral Component Interconnect(PCI)总线,它几乎已经完全取代了更早的 Industry Standard Architecture(ISA)总线。1984 年 IBM PC-AT 中首次使用它,之后 ISA 总线有时也称为 AT 总线。在从 ISA 到 PCI 总线的过渡过程中,很多系统同时包含了这两类总线的插槽,以使得 ISA 或 PCI 外围设备都能够使用。
  ISA 总线支持 8-位 和 16-位 设备卡,而 PCI 总线支持 32-位 设备。
  还有一些也应该了解的其他总线标准。很多系统中包括一个 Accelerated Graphics Port(AGP)插槽,这是一个基于 PCI 2.1 总线规范的特殊插槽,但是为图形卡所需要的高带宽和快速响应进行了优化。它正在慢慢被更新的 PCI Express(PCI-E)所取代,后者解决了先前 PCI 设计中的很多限制。
  在本系列的最后一篇教程中将深入了解 Linux 文件系统,不过,在此先介绍 /proc 文件系统。这不是一个磁盘上的真实文件系统,而是一个“假的文件系统”,提供关于正在运行的系统的信息。在这个文件系统中,文件 /proc/pci 包含了系统 PCI 总线上设备的信息。曾经有一些关于废除这个特殊文件的讨论,因为 lspci 命令可以给出类似的信息。运行 cat /proc/pci 命令,可以看到类似于清单 1 的输出。
  清单 1. /proc/pci
  PCI devices found:
  Bus 0, device 0, function 0:
  Host bridge: Intel Corp. 82845G/GL Chipset Host Bridge
  (rev 1).
  Prefetchable 32 bit memory at 0xd0000000 .
  Bus 0, device 2, function 0:
  VGA compatible controller: Intel Corp. 82845G/GL Chipset
  Integrated Graphics Device (rev 1).
  IRQ 11.
  Prefetchable 32 bit memory at 0x88000000 .
  Non-prefetchable 32 bit memory at 0x80000000 .
  Bus 0, device 29, function 0:
  USB Controller: Intel Corp. 82801DB USB (Hub #1) (rev 1).
  IRQ 11.
  I/O at 0x1800 .

会计考友 发表于 2012-8-4 12:13:20

linux学习:LPI硬件和体系结构(二)

Bus 0, device 29, function 1:
  USB Controller: Intel Corp. 82801DB USB (Hub #2) (rev 1).
  IRQ 10.
  I/O at 0x1820 .
  Bus 0, device 29, function 2:
  USB Controller: Intel Corp. 82801DB USB (Hub #3) (rev 1).
  IRQ 5.
  I/O at 0x1840 .
  Bus 0, device 29, function 7:
  USB Controller: Intel Corp. 82801DB USB2 (rev 1).
  IRQ 9.
  Non-prefetchable 32 bit memory at 0xc0080000 .
  Bus 0, device 30, function 0:
  PCI bridge: Intel Corp. 82801BA/CA/DB/EB PCI Bridge (rev 129).
  Master Capable. No bursts. Min Gnt=4.
  Bus 0, device 31, function 0:
  ISA bridge: Intel Corp. 82801DB LPC Interface Controller (rev 1).
  Bus 0, device 31, function 1:
  IDE interface: Intel Corp. 82801DB Ultra ATA Storage Controller
  (rev 1).
  IRQ 5.
  I/O at 0x1860 .
  Non-prefetchable 32 bit memory at 0x60000000 .
  Bus 0, device 31, function 3:
  SMBus: Intel Corp. 82801DB/DBM SMBus Controller (rev 1).
  IRQ 9.
  I/O at 0x1880 .
  Bus 0, device 31, function 5:
  Multimedia audio controller: Intel Corp. 82801DB AC'97 Audio
  Controller (rev 1).
  IRQ 9.
  I/O at 0x1c00 .
  I/O at 0x18c0 .
  Non-prefetchable 32 bit memory at 0xc0080c00 .
  Non-prefetchable 32 bit memory at 0xc0080800 .
  Bus 2, device 8, function 0:
  Ethernet controller: Intel Corp. 82801BD PRO/100 VE (LOM) Ethernet
  Controller (rev 129).
  IRQ 9.
  Master Capable. Latency=66. Min Gnt=8.Max Lat=56.
  Non-prefetchable 32 bit memory at 0xc0100000 .
  I/O at 0x2000 .
页: [1]
查看完整版本: linux学习:LPI硬件和体系结构(二)