[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>
This commit is contained in:

committed by
Paul Mackerras

vanhempi
72ece3b827
commit
2cd1008cf5
@@ -68,6 +68,17 @@ static u8 iobar_table[IOMM_TABLE_MAX_ENTRIES];
|
||||
static const char pci_io_text[] = "iSeries PCI I/O";
|
||||
static DEFINE_SPINLOCK(iomm_table_lock);
|
||||
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
|
||||
/*
|
||||
* iomm_table_allocate_entry
|
||||
*
|
||||
|
Viittaa uudesa ongelmassa
Block a user