Blame view
include/asm-ppc/prom.h
1.28 KB
1da177e4c Linux-2.6.12-rc2 |
1 2 3 4 5 6 7 8 9 |
/* * Definitions for talking to the Open Firmware PROM on * Power Macintosh computers. * * Copyright (C) 1996 Paul Mackerras. */ #ifdef __KERNEL__ #ifndef _PPC_PROM_H #define _PPC_PROM_H |
0a26b1364 ppc: Remove CHRP,... |
10 |
/* This is used in arch/ppc/mm/mem_pieces.h */ |
1da177e4c Linux-2.6.12-rc2 |
11 12 13 14 |
struct reg_property { unsigned int address; unsigned int size; }; |
1da177e4c Linux-2.6.12-rc2 |
15 |
/* |
0a26b1364 ppc: Remove CHRP,... |
16 17 18 19 20 21 |
* These macros assist in performing the address calculations that we * need to do to access data when the kernel is running at an address * that is different from the address that the kernel is linked at. * The reloc_offset() function returns the difference between these * two addresses and the macros simplify the process of adding or * subtracting this offset to/from pointer values. |
1da177e4c Linux-2.6.12-rc2 |
22 23 24 25 26 27 28 |
*/ extern unsigned long reloc_offset(void); extern unsigned long add_reloc_offset(unsigned long); extern unsigned long sub_reloc_offset(unsigned long); #define PTRRELOC(x) ((typeof(x))add_reloc_offset((unsigned long)(x))) #define PTRUNRELOC(x) ((typeof(x))sub_reloc_offset((unsigned long)(x))) |
a7fdd90bc [PATCH] ppc: Remo... |
29 |
/* |
0a26b1364 ppc: Remove CHRP,... |
30 |
* Fallback definitions since we don't support OF in arch/ppc any more. |
a7fdd90bc [PATCH] ppc: Remo... |
31 32 33 |
*/ #define machine_is_compatible(x) 0 #define of_find_compatible_node(f, t, c) NULL |
0e56efc7d [POWERPC] Rename ... |
34 35 |
#define of_get_property(p, n, l) NULL #define get_property(a, b, c) of_get_property((a), (b), (c)) |
d1405b869 [PATCH] powerpc: ... |
36 |
|
1da177e4c Linux-2.6.12-rc2 |
37 38 |
#endif /* _PPC_PROM_H */ #endif /* __KERNEL__ */ |