Skip to contentSkip to conversation

PCIe setup routines

DISCUSSION Larry Finger 3 participants 4 messages Apr 6, 2010 – May 24, 2010

lore
Share & tools
lore
#0 lore raw

There are routines in
http://bcm-v4.sipsolutions.net/PCI-E#PCIe_Attach_.28int_state.29 that I don't think have been implemented.

I still have a question about getting an MMIO address from sprom[x]. That is how the 0x280A address is picked in the code I sent earlier; however, I don't see any of the other addresses in those routines being used on my card. I still need to find where that array is filled in Broadcom's code.

Larry

#1 lore raw

2010/4/6 Larry Finger <[email protected]>:

Quoted 9 lines

There are routines in
http://bcm-v4.sipsolutions.net/PCI-E#PCIe_Attach_.28int_state.29 that I don't think have been implemented.

I still have a question about getting an MMIO address from sprom[x]. That is how the 0x280A address is picked in the code I sent earlier; however, I don't see any of the other addresses in those routines being used on my card. I still need to find where that array is filled in Broadcom's code.

Could someone point me to part of core related to PCI(e) operations?

Signature · 1 line
Rafa?
#2 lore raw
Quoted 5 lines · Rafa? Mi?ecki

2010/4/6 Larry Finger <[email protected]>:

Quoted 4 lines

There are routines in
http://bcm-v4.sipsolutions.net/PCI-E#PCIe_Attach_.28int_state.29 that I don't think have been implemented.

Quoted 7 lines
Quoted 5 lines

I still have a question about getting an MMIO address from sprom[x]. That is how the 0x280A address is picked in the code I sent earlier; however, I don't see any of the other addresses in those routines being used on my card. I still need to find where that array is filled in Broadcom's code.

Could someone point me to part of core related to PCI(e) operations?

Most of the stuff is in drivers/ssb/driver_pcicore.c. If not there, check in drivers/ssb/pci.c; however, most of that is SPROM related.

Larry

#3 lore raw
Quoted 12 lines · Larry Finger
Quoted 11 lines · Rafa? Mi?ecki

2010/4/6 Larry Finger<[email protected]>:

Quoted 9 lines

There are routines in
http://bcm-v4.sipsolutions.net/PCI-E#PCIe_Attach_.28int_state.29 that I don't think have been implemented.

I still have a question about getting an MMIO address from sprom[x]. That is how the 0x280A address is picked in the code I sent earlier; however, I don't see any of the other addresses in those routines being used on my card. I still need to find where that array is filled in Broadcom's code.

Quoted 3 lines
Quoted 1 line

Could someone point me to part of core related to PCI(e) operations?

Most of the stuff is in drivers/ssb/driver_pcicore.c.

Everything related to the PCI-core is in that file.

Quoted 2 lines

If not there,
check in drivers/ssb/pci.c

No, everything in drivers/ssb/pci.c is host-related. This is the code that ties the SSB bus to the host PCI bus, _if_ it is a PCI card. The file does not contain any PCI-core related code.