diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/mmu.h | 4 | ||||
-rw-r--r-- | include/asm-powerpc/prom.h | 9 | ||||
-rw-r--r-- | include/asm-ppc/prom.h | 10 |
3 files changed, 23 insertions, 0 deletions
diff --git a/include/asm-powerpc/mmu.h b/include/asm-powerpc/mmu.h index 29b0bb0086d3..29613500c2c2 100644 --- a/include/asm-powerpc/mmu.h +++ b/include/asm-powerpc/mmu.h | |||
@@ -394,6 +394,10 @@ static inline unsigned long get_vsid(unsigned long context, unsigned long ea) | |||
394 | #define VSID_SCRAMBLE(pvsid) (((pvsid) * VSID_MULTIPLIER) % VSID_MODULUS) | 394 | #define VSID_SCRAMBLE(pvsid) (((pvsid) * VSID_MULTIPLIER) % VSID_MODULUS) |
395 | #define KERNEL_VSID(ea) VSID_SCRAMBLE(GET_ESID(ea)) | 395 | #define KERNEL_VSID(ea) VSID_SCRAMBLE(GET_ESID(ea)) |
396 | 396 | ||
397 | /* Physical address used by some IO functions */ | ||
398 | typedef unsigned long phys_addr_t; | ||
399 | |||
400 | |||
397 | #endif /* __ASSEMBLY */ | 401 | #endif /* __ASSEMBLY */ |
398 | 402 | ||
399 | #endif /* CONFIG_PPC64 */ | 403 | #endif /* CONFIG_PPC64 */ |
diff --git a/include/asm-powerpc/prom.h b/include/asm-powerpc/prom.h index f999df1c5c90..fb732c992bd2 100644 --- a/include/asm-powerpc/prom.h +++ b/include/asm-powerpc/prom.h | |||
@@ -223,5 +223,14 @@ extern struct resource *request_OF_resource(struct device_node* node, | |||
223 | int index, const char* name_postfix); | 223 | int index, const char* name_postfix); |
224 | extern int release_OF_resource(struct device_node* node, int index); | 224 | extern int release_OF_resource(struct device_node* node, int index); |
225 | 225 | ||
226 | /* | ||
227 | * Address translation function(s) | ||
228 | */ | ||
229 | #define OF_BAD_ADDR ((u64)-1) | ||
230 | extern u64 of_translate_address(struct device_node *np, u32 *addr); | ||
231 | extern u32 *of_get_address(struct device_node *dev, int index, u64 *size); | ||
232 | extern u32 *of_get_pci_address(struct device_node *dev, int bar_no, u64 *size); | ||
233 | |||
234 | |||
226 | #endif /* __KERNEL__ */ | 235 | #endif /* __KERNEL__ */ |
227 | #endif /* _POWERPC_PROM_H */ | 236 | #endif /* _POWERPC_PROM_H */ |
diff --git a/include/asm-ppc/prom.h b/include/asm-ppc/prom.h index 3e39827ed566..a10a2d64b300 100644 --- a/include/asm-ppc/prom.h +++ b/include/asm-ppc/prom.h | |||
@@ -136,5 +136,15 @@ extern unsigned long sub_reloc_offset(unsigned long); | |||
136 | #define PTRRELOC(x) ((typeof(x))add_reloc_offset((unsigned long)(x))) | 136 | #define PTRRELOC(x) ((typeof(x))add_reloc_offset((unsigned long)(x))) |
137 | #define PTRUNRELOC(x) ((typeof(x))sub_reloc_offset((unsigned long)(x))) | 137 | #define PTRUNRELOC(x) ((typeof(x))sub_reloc_offset((unsigned long)(x))) |
138 | 138 | ||
139 | |||
140 | /* | ||
141 | * Address translation function(s) | ||
142 | */ | ||
143 | #define OF_BAD_ADDR ((u64)-1) | ||
144 | extern u64 of_translate_address(struct device_node *np, u32 *addr); | ||
145 | extern u32 *of_get_address(struct device_node *dev, int index, u64 *size); | ||
146 | extern u32 *of_get_pci_address(struct device_node *dev, int bar_no, u64 *size); | ||
147 | |||
148 | |||
139 | #endif /* _PPC_PROM_H */ | 149 | #endif /* _PPC_PROM_H */ |
140 | #endif /* __KERNEL__ */ | 150 | #endif /* __KERNEL__ */ |