summaryrefslogtreecommitdiffstats
path: root/arch/ppc/boot/include
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-11-10 12:00:55 +1100
committerPaul Mackerras <paulus@samba.org>2005-11-10 12:00:55 +1100
commita23414beb6607dfd40d3245f7df9dd97a4e2c82b (patch)
tree7fb2e368a462fab4ce4cc275281ecd22e284653a /arch/ppc/boot/include
parent8b553f32db3bf5d0ec0819c595932eb21cd45945 (diff)
downloadblackbird-op-linux-a23414beb6607dfd40d3245f7df9dd97a4e2c82b.tar.gz
blackbird-op-linux-a23414beb6607dfd40d3245f7df9dd97a4e2c82b.zip
ppc/powerpc: workarounds for old Open Firmware versions
This adds code to work around some problems with old versions of Open Firmware, such as on the early powermacs (7500 etc.) and the "Longtrail" CHRP machine. On these machines we have to claim the physical and virtual address ranges explicitly when claiming memory and then set up a V->P mapping. The Longtrail has more problems: setprop doesn't work, and we have to set an "allow-reclaim" variable to 0 in order to get claim on physical memory ranges to fail if the memory is already claimed. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/boot/include')
-rw-r--r--arch/ppc/boot/include/of1275.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/ppc/boot/include/of1275.h b/arch/ppc/boot/include/of1275.h
index 69173df76db0..4ed88acfa73a 100644
--- a/arch/ppc/boot/include/of1275.h
+++ b/arch/ppc/boot/include/of1275.h
@@ -19,6 +19,9 @@ extern prom_entry of_prom_entry;
/* function declarations */
+int call_prom(const char *service, int nargs, int nret, ...);
+int call_prom_ret(const char *service, int nargs, int nret,
+ unsigned int *rets, ...);
void * claim(unsigned int virt, unsigned int size, unsigned int align);
int map(unsigned int phys, unsigned int virt, unsigned int size);
void enter(void);
OpenPOWER on IntegriCloud