Page 1 of 1
PCI Header Types
Posted: Fri Mar 27, 2009 5:10 am
by Kieran
Hi guys,
Does anyone know the layout of the PCI Header (Type 02h), I have added the PCI-to-PCI Bridge, header type 01h.
Thanks in advance guys.
Kieran Foot
MeganetOS
Re: PCI Header Types
Posted: Fri Mar 27, 2009 6:26 am
by Combuster
euhm, a pci-to-pci bridge is defined by the class 06:04:00... "PCI Header" is not in my copy of the specification...
What are you trying to do?
edit, you definately got the wrong thing:
The encoding 02h is defined for a CardBus bridge and is documented in the PC Card Standard.
Re: PCI Header Types
Posted: Fri Mar 27, 2009 6:47 am
by Kieran
Sorry Combustor,
When I was talking about the PCI Header, I am talking about the Header Type register which tells the layout of the actual PCI Information Block.
Like I said, I have added the PCI-to-PCI Bridge Layout (Header Type 01h) and I could not find the layout for the Cardbus PCI Block.
Thanks,
Kieran Foot
MeganetOS
Re: PCI Header Types
Posted: Fri Mar 27, 2009 7:55 am
by djmauretto
Note that this is not 100% safe
Code: Select all
OFFSET (Hex)
0 Vendor ID
2 Device ID
4 Command
6 Status
8 Revision ID
9 Class Code
C Cache Line Size
D Primary Latency Timer
E Header Type
F BIST
10 Card Bus Base Address
14 Capabilities (Offset of list of capabilities in cfg space)
15 Reserved
16 Secondary Status
18 Bus Number (PCI bus number)
19 Card Bus Number
1A Subordinate Bus Number
1B Card Bus Latency timer
1C Memory Base 0
20 Memory Limit 0 High
24 Memory Base 1
28 Memory Limit 1 High
2C I/O Base 0
2E I/O Base 0 High
30 I/O Limit 0
32 I/O Limit 0 High
34 I/O Base 1
36 I/O Base 1 High
38 I/O Limit 1
3A I/O Limit 1 High
3C Interrupt Line
3D Interrupt Pin
3E Bridge Control
Re: PCI Header Types
Posted: Sat Mar 28, 2009 7:25 am
by Kieran
Cheers mate,
Ill try and check this info then add to the wiki.
Thanks,
Kieran Foot
MeganetOS