pci and pcie coexistence

From: John Crispin <john@phrozen.org>
Date: 2012-05-04 13:39:06

Hi,

I have some boards, where pcie and pci need to coexist.

This implies, that both drivers share the same pcibios_plat_dev_init and
pcibios_map_irq.

I am trying to figure out, how to best differentiate between the 2
drivers. Would the following be sane ?

if (pci_find_capability(pdev, PCI_CAP_ID_EXP))
     do_pcie_stuf();
else
     do_pci_stuff();


Thanks,
John
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help