aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/iseries/pci.c11
-rw-r--r--arch/powerpc/platforms/iseries/pci.h13
2 files changed, 12 insertions, 12 deletions
diff --git a/arch/powerpc/platforms/iseries/pci.c b/arch/powerpc/platforms/iseries/pci.c
index 3cf51c6df686..b46d8c5709f2 100644
--- a/arch/powerpc/platforms/iseries/pci.c
+++ b/arch/powerpc/platforms/iseries/pci.c
@@ -69,6 +69,17 @@ static const char pci_io_text[] = "iSeries PCI I/O";
69static DEFINE_SPINLOCK(iomm_table_lock); 69static DEFINE_SPINLOCK(iomm_table_lock);
70 70
71/* 71/*
72 * Generate a Direct Select Address for the Hypervisor
73 */
74static inline u64 iseries_ds_addr(struct device_node *node)
75{
76 struct pci_dn *pdn = PCI_DN(node);
77
78 return ((u64)pdn->busno << 48) + ((u64)pdn->bussubno << 40)
79 + ((u64)0x10 << 32);
80}
81
82/*
72 * iomm_table_allocate_entry 83 * iomm_table_allocate_entry
73 * 84 *
74 * Adds pci_dev entry in address translation table 85 * Adds pci_dev entry in address translation table
diff --git a/arch/powerpc/platforms/iseries/pci.h b/arch/powerpc/platforms/iseries/pci.h
index 3cb18fa07b63..3af9cf1c1d04 100644
--- a/arch/powerpc/platforms/iseries/pci.h
+++ b/arch/powerpc/platforms/iseries/pci.h
@@ -30,7 +30,7 @@
30 * End Change Activity 30 * End Change Activity
31 */ 31 */
32 32
33#include <asm/pci-bridge.h> 33#include <asm/iseries/hv_types.h>
34 34
35struct pci_dev; /* For Forward Reference */ 35struct pci_dev; /* For Forward Reference */
36 36
@@ -47,17 +47,6 @@ struct pci_dev; /* For Forward Reference */
47#define ISERIES_GET_DEVICE_FROM_SUBBUS(subbus) ((subbus >> 5) & 0x7) 47#define ISERIES_GET_DEVICE_FROM_SUBBUS(subbus) ((subbus >> 5) & 0x7)
48#define ISERIES_GET_FUNCTION_FROM_SUBBUS(subbus) ((subbus >> 2) & 0x7) 48#define ISERIES_GET_FUNCTION_FROM_SUBBUS(subbus) ((subbus >> 2) & 0x7)
49 49
50/*
51 * Generate a Direct Select Address for the Hypervisor
52 */
53static inline u64 iseries_ds_addr(struct device_node *node)
54{
55 struct pci_dn *pdn = PCI_DN(node);
56
57 return ((u64)pdn->busno << 48) + ((u64)pdn->bussubno << 40)
58 + ((u64)0x10 << 32);
59}
60
61extern void iSeries_Device_Information(struct pci_dev *PciDev, int count, 50extern void iSeries_Device_Information(struct pci_dev *PciDev, int count,
62 u16 bus, HvSubBusNumber subbus); 51 u16 bus, HvSubBusNumber subbus);
63#ifdef CONFIG_PCI 52#ifdef CONFIG_PCI