Skip to contentSkip to conversation

pci and pcie coexistence

DISCUSSION John Crispin 1 participant 1 message May 4, 2012 MIPS

lore
Share & tools
lore
#0 lore raw

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