PCI Header Types

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Kieran
Member
Member
Posts: 54
Joined: Mon Apr 11, 2005 11:00 pm

PCI Header Types

Post 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
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: PCI Header Types

Post 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.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Kieran
Member
Member
Posts: 54
Joined: Mon Apr 11, 2005 11:00 pm

Re: PCI Header Types

Post 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
djmauretto
Member
Member
Posts: 116
Joined: Wed Oct 22, 2008 2:21 am
Location: Roma,Italy

Re: PCI Header Types

Post by djmauretto »

Note that this is not 100% safe :P

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
Kieran
Member
Member
Posts: 54
Joined: Mon Apr 11, 2005 11:00 pm

Re: PCI Header Types

Post by Kieran »

Cheers mate,

Ill try and check this info then add to the wiki.

Thanks,

Kieran Foot
MeganetOS
Post Reply