pci and pcie coexistence

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux