aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2016-05-20 16:41:40 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2016-06-21 15:30:58 +1000
commit7e19bf32c8ac977e7702a67d7392a3e0a9644bc8 (patch)
tree13f003cef438104190d28896c8eee2a0619578fe /arch/powerpc/include
parentpowerpc/powernv: Use PCI slot reset infrastructure (diff)
downloadlinux-dev-7e19bf32c8ac977e7702a67d7392a3e0a9644bc8.tar.xz
linux-dev-7e19bf32c8ac977e7702a67d7392a3e0a9644bc8.zip
powerpc/powernv: Introduce pnv_pci_get_slot_id()
This introduces pnv_pci_get_slot_id() to get the hotpluggable PCI slot ID from the corresponding device node. It will be used by hotplug driver. Requested-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/pnv-pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/pnv-pci.h b/arch/powerpc/include/asm/pnv-pci.h
index c607902c5477..810cc9a8169f 100644
--- a/arch/powerpc/include/asm/pnv-pci.h
+++ b/arch/powerpc/include/asm/pnv-pci.h
@@ -17,6 +17,8 @@
#define PCI_SLOT_ID(phb_id, bdfn) \
(PCI_SLOT_ID_PREFIX | ((uint64_t)(bdfn) << 16) | (phb_id))
+extern int pnv_pci_get_slot_id(struct device_node *np, uint64_t *id);
+
int pnv_phb_to_cxl_mode(struct pci_dev *dev, uint64_t mode);
int pnv_cxl_ioda_msi_setup(struct pci_dev *dev, unsigned int hwirq,
unsigned int virq);