diff options
author | linas <linas@austin.ibm.com> | 2005-11-04 01:42:26 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-11-10 01:30:25 +0100 |
commit | ae65a391caf1830aea9e4cadd69bb1aa69aad492 (patch) | |
tree | 7174b40718cbf42e4b1bddaa5dbe4bcdcf456da0 /include/asm-powerpc/ppc-pci.h | |
parent | [PATCH] ppc64: Don't panic when early __ioremap fails (diff) | |
download | linux-ae65a391caf1830aea9e4cadd69bb1aa69aad492.tar.xz linux-ae65a391caf1830aea9e4cadd69bb1aa69aad492.zip |
[PATCH] ppc64: uniform usage of bus unit id interfaces
01-pci-dn-uniformization.patch
This patch changes the rtas_pci interface to use the new struct pci_dn
structure for two routines that work with pci device nodes.
This patch also does some minor janitorial work: it uses some handy macros
and cleans up some trailing whitespace in the affected file.
Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/ppc-pci.h')
-rw-r--r-- | include/asm-powerpc/ppc-pci.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-powerpc/ppc-pci.h b/include/asm-powerpc/ppc-pci.h index 13aacff755f3..302f0a9878c7 100644 --- a/include/asm-powerpc/ppc-pci.h +++ b/include/asm-powerpc/ppc-pci.h @@ -26,6 +26,10 @@ extern unsigned long find_and_init_phbs(void); extern struct pci_dev *ppc64_isabridge_dev; /* may be NULL if no ISA bus */ +/** Bus Unit ID macros; get low and hi 32-bits of the 64-bit BUID */ +#define BUID_HI(buid) ((buid) >> 32) +#define BUID_LO(buid) ((buid) & 0xffffffff) + /* PCI device_node operations */ struct device_node; typedef void *(*traverse_func)(struct device_node *me, void *data); |