2009년 12월 21일
PCI Config Header Format

Config Header Format


3116150Index
Device ID
Vendor ID
0x00
Status
Command
0x04
Class Code
Revision
0x08
Built In Selftest
Header
Latency
Chache Line Size
0x0c
Base Address Register 0
0x10
Base Address Register 1
0x14
Base Address Register 2
0x18
Base Address Register 3
0x1c
Base Address Register 4
0x20
Base Address Register 5
0x24
CardBus CIS Pointer
0x28
Subsystem ID
Subsystem Vendor ID
0x2c
Expansion Rom Address
0x30
Reserved
0x34
Reserved
0x38
Max Letency
Min Grant
Interupt Pin
IRQ Line
0x3c
Vendor ID - 0x00

This is an assigned number unique to each PCI vendor. For a somewhat complete list of these have a look at Linux's pci.h.

Device ID - 0x02

This is a vendor assigned number specifing which device it is. For a somewhat complete list of these have a look at Linux's pci.h.

Command - 0x04

This is used to enable vaious types of PCI opperations

1514131211109876543210
ReservedBBESSEWCPERVPSMWISCBMMAIO
BBE:Fast Back-to-back enable. Enables fast back-to-back transfers during busmastering. Only enable this if all devices on the bus cand do BBE
SSE:System Error Enable. When set to one the devie can drive the SERR# line.
WC:Wait Cycle Enable. Controls whether the device does address/data steping.
PER:Parity Error Response. When set to one the device can report partiy errors.
VPS:VGA Pallette Snoop Enable. Tells the device to enable VGA pallet snooping
MWIMemory Write and Invalidate. Enables the device to generate memory write and invalidate comamnds. The cache line size must be set before this bit is set.
SCSpecial Cycle Recognition. Enables the device to monitor for special cycles on the bus.
BMBus Maser Enable. Enables the device to become the bus master.
MAMemory Access Enable. When enabled the device responds to memory requests.
IOI/O Access Enable. When enabled the device responds to io requests.
Status - 0x06
1514131211109876543210
DPESSERMARTASTADTDPRFBBCUDF66Reserved
DPEDetect Parity Error. Set by device when it has detected a parity error
SSESignalled System Error. Set by device when it has driven the SERR# line
RMAReceived Master-Abort. Set by master when its tranaction is terminated due to a master-abort.
RTAReceived Target-Abort. Set by master when its tranaction is terminated due to a target-abort.
STASignalled Target-Abort. Set by target when it terminates a tranaction by target-abort.
DTDEVSEL Timing. Read only bits whcih define the slowest DEVSEL# timing for the device.
00b= fast
01b= medium
10b= slow
11b= reserved
DPRData Parity Reported. Set by the bus master when the reporting bus master was the initator and set the PERR# itself or detected it asserted by the target.
FBBCFast Back-to-Back Capable. Indicates whether the device can perform fast back-to-back transfers
UDFUDF Supported. Set if the device supports user definable features
6666MHz Capable. Set if device can run at 66MHz.
Revision - 0x08

8 bit value indicating the revision of the device.

Class Code Register - 0x09

Specifies which type of device it is. The class code register is devied up into 3 8 bit parts: Class Code, Sub-Class Code, and Prog. I/F.

23..16Class Code
15..8Sub-Class Code
7..0Prog. I/F

Look at the Class Code Table for a list of what these mean.

Cache Line Size - 0x0c

This is the cache line size of the CPU. This is CPU dependant. It is important that devices which do DMA have this value.

Latency - 0x0d

Specifies the maximum number of PCI cycles the bus master can retain control fo the bus.

Header Type - 0x0e

The header type is devided into two sections. Bits 6..0 comprise the header type. Bit 7 is the single/multi funtion device flag (0=single 1=multi). The header type specifies the format of bytes 0x10 to 0x3f. The two defined types are 0x00, the standard header type (pictured above), and 0x01, PCI-PCI bridge.

Built In Self Test (BIST) - 0x0f
76543210
CSReservedRet
CBIST Capable
SStart BIST
RetBIST Return Code


If the device is BIST Capable it must set the return code to 0 within 2 seconds of the Start BIST bit being set, otherwise an error has occured.

Base Address Registers 0-5 - 0x10-0x24

These are base addresses for memory maped/io maped communications with the device. The actual function of these registers are device specific

CardBus CIS Pointer - 0x28

If this device sits on both PCI and CardBus this is used to point to Card Information Structure (CIS).

Subsystem Vendor ID - 0x2c

Optional extra vendor info.

Subsystem ID - 0x2e

Optional extra subsystem info.

Expansion Rom Address - 0x30

Address that the expansion ROM of the device (i.e. network boot rom) is mapped in.

IRQ Line - 0x3c

The IRQ this device is routed through. In otherwords what IRQ will be triggered when this device generates an interrupt. This value does not actually affect the opperation of the device, rather it is a place for the BIOS/Firmware to inform the OS what has been configured.

Interupt Pin - 0x3d

Which of the 4 lines (INTA#, INTB#, INTC#, or INTD#) this device raises interrupts on. A value of 0 means not interrupt. A value between 1 and 4 corresponds to INTA# through INTD#. A single function device is required to use INTA#.

Min Grant - 0x3e

A read only register informing the reader of how long the device would like maintain control of the bus as a bus master. The value is in increments of 250ns.

Max Latency - 0x3f

"How often" the device needs to access the PCI bus. The value is in increments of 250ns.

by 샤키 | 2009/12/21 15:20 | 트랙백(3) | 덧글(0)
트랙백 주소 : http://sharkynara.egloos.com/tb/2790559
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]
Tracked from at 2014/03/11 00:23
Tracked from ghd hair at 2014/07/28 17:40

제목 : オークリー レンズ
の,ghd hair ghd hair Topdatum何もそれは人のパートのあなたの記事のディレクトリ の費用がかかりません。 2014 Scarpe Hogan ステップ1彼らはよ責任 ちょうどによる上 者:ケビンEikenberryの すべてはすぐに私は少し長い企業内の適切な量だとして、私は ユーザーが歴史の中で重要なdefieicen coach バッグ cyに関する嘆きを見てください。 /> 多くの人々が潜在的に子犬を取得する理由 把握があなたが知っている......more

Tracked from マイケルコース 財布 .. at 2014/07/29 15:40

제목 : チャンルー ストール
4、客厅要避免悬挂猛兽的图画? 视个人体质而有不同的状况,如果家族中有习惯性流产的,就要小心一点了。 マイケルコース 財布 若体质比较虚弱者,可以先请教医师,如何用医疗方法自我照顾、强化体质;除此之外,也可以求一 安いサングラス 些安胎符,提供更多而无形的保护。 点击订阅,免.费.获.取: http://url.cn/PDAUZf ;;; です.たとえば自分の生まれ年の動物、みつろう、水晶、......more

:         :

:

비공개 덧글



<< 이전 페이지 | 다음 페이지 >>