diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-12-06 14:55:50 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-12-11 02:42:27 (GMT) |
commit | 2cd1008cf56371404055fbc7d59f6da060af16fa (patch) | |
tree | 9dec6c67fc88d91cc052afe5f4cefb38d88bb2dd /arch/powerpc/platforms/iseries/pci.h | |
parent | 72ece3b8271bb59b25e42e3f0a1d6a3dbc69e369 (diff) | |
download | linux-fsl-qoriq-2cd1008cf56371404055fbc7d59f6da060af16fa.tar.xz |
[POWERPC] iSeries: iseries_ds_addr is only used in pci.c
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/iseries/pci.h')
-rw-r--r-- | arch/powerpc/platforms/iseries/pci.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/powerpc/platforms/iseries/pci.h b/arch/powerpc/platforms/iseries/pci.h index 3cb18fa..3af9cf1c 100644 --- a/arch/powerpc/platforms/iseries/pci.h +++ b/arch/powerpc/platforms/iseries/pci.h @@ -30,7 +30,7 @@ * End Change Activity */ -#include <asm/pci-bridge.h> +#include <asm/iseries/hv_types.h> struct pci_dev; /* For Forward Reference */ @@ -47,17 +47,6 @@ struct pci_dev; /* For Forward Reference */ #define ISERIES_GET_DEVICE_FROM_SUBBUS(subbus) ((subbus >> 5) & 0x7) #define ISERIES_GET_FUNCTION_FROM_SUBBUS(subbus) ((subbus >> 2) & 0x7) -/* - * Generate a Direct Select Address for the Hypervisor - */ -static inline u64 iseries_ds_addr(struct device_node *node) -{ - struct pci_dn *pdn = PCI_DN(node); - - return ((u64)pdn->busno << 48) + ((u64)pdn->bussubno << 40) - + ((u64)0x10 << 32); -} - extern void iSeries_Device_Information(struct pci_dev *PciDev, int count, u16 bus, HvSubBusNumber subbus); #ifdef CONFIG_PCI |