All of lore.kernel.org
 help / color / mirror / Atom feed
* pci and pcie coexistence
@ 2012-05-04 13:37 John Crispin
  0 siblings, 0 replies; only message in thread
From: John Crispin @ 2012-05-04 13:37 UTC (permalink / raw)
  To: linux-mips@linux-mips.org

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-04 13:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-04 13:37 pci and pcie coexistence John Crispin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.