Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81018
b: refs/heads/master
c: 2cd1008
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Dec 11, 2007
1 parent 3f581ec commit 38ae471
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72ece3b8271bb59b25e42e3f0a1d6a3dbc69e369
refs/heads/master: 2cd1008cf56371404055fbc7d59f6da060af16fa
11 changes: 11 additions & 0 deletions trunk/arch/powerpc/platforms/iseries/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
13 changes: 1 addition & 12 deletions trunk/arch/powerpc/platforms/iseries/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* End Change Activity
*/

#include <asm/pci-bridge.h>
#include <asm/iseries/hv_types.h>

struct pci_dev; /* For Forward Reference */

Expand All @@ -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
Expand Down

0 comments on commit 38ae471

Please sign in to comment.