linux-mips
[Top] [All Lists]

pci and pcie coexistence

To: "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
Subject: pci and pcie coexistence
From: John Crispin <john@phrozen.org>
Date: Fri, 04 May 2012 15:37:39 +0200
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16
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

<Prev in Thread] Current Thread [Next in Thread>
  • pci and pcie coexistence, John Crispin <=