diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-10-14 02:49:58 -0400 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-10-14 02:49:58 -0400 |
commit | 20f48ccfa015d8b8391bbf07fc27618453f44969 (patch) | |
tree | 0a38839fb3c8899fe1eb3026a29daaabec65babc /arch/powerpc/platforms/iseries/pci.h | |
parent | bffa8fc3835b0d3c4a59af8aceeea3aba823b032 (diff) |
powerpc: eliminate DsaAddr from pci_dn
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'arch/powerpc/platforms/iseries/pci.h')
-rw-r--r-- | arch/powerpc/platforms/iseries/pci.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/iseries/pci.h b/arch/powerpc/platforms/iseries/pci.h index 94b4bfdceadf..33a8489fde54 100644 --- a/arch/powerpc/platforms/iseries/pci.h +++ b/arch/powerpc/platforms/iseries/pci.h | |||
@@ -30,6 +30,8 @@ | |||
30 | * End Change Activity | 30 | * End Change Activity |
31 | */ | 31 | */ |
32 | 32 | ||
33 | #include <asm/pci-bridge.h> | ||
34 | |||
33 | struct pci_dev; /* For Forward Reference */ | 35 | struct pci_dev; /* For Forward Reference */ |
34 | 36 | ||
35 | /* | 37 | /* |
@@ -45,6 +47,17 @@ struct pci_dev; /* For Forward Reference */ | |||
45 | #define ISERIES_GET_DEVICE_FROM_SUBBUS(subbus) ((subbus >> 5) & 0x7) | 47 | #define ISERIES_GET_DEVICE_FROM_SUBBUS(subbus) ((subbus >> 5) & 0x7) |
46 | #define ISERIES_GET_FUNCTION_FROM_SUBBUS(subbus) ((subbus >> 2) & 0x7) | 48 | #define ISERIES_GET_FUNCTION_FROM_SUBBUS(subbus) ((subbus >> 2) & 0x7) |
47 | 49 | ||
50 | /* | ||
51 | * Generate a Direct Select Address for the Hypervisor | ||
52 | */ | ||
53 | static 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 | |||
48 | extern void iSeries_Device_Information(struct pci_dev*, int); | 61 | extern void iSeries_Device_Information(struct pci_dev*, int); |
49 | 62 | ||
50 | #endif /* _PLATFORMS_ISERIES_PCI_H */ | 63 | #endif /* _PLATFORMS_ISERIES_PCI_H */ |