ppc64: Add support for PowerMacs in the OF client interface code (prom.c)

Also move some of the init cruft into separate function to make
things slightly more readable. We sill need to significantly
cleanup that file, but that will come later...

Properly export the OF device-tree accessors to modules
parent 81eda1c7
This diff is collapsed.
...@@ -21,8 +21,9 @@ extern unsigned long reloc_offset(void); ...@@ -21,8 +21,9 @@ extern unsigned long reloc_offset(void);
#define MAX_LMB_REGIONS 64 #define MAX_LMB_REGIONS 64
union lmb_reg_property { union lmb_reg_property {
struct reg_property32 addr32[MAX_LMB_REGIONS]; struct reg_property32 addr32[MAX_LMB_REGIONS];
struct reg_property64 addr64[MAX_LMB_REGIONS]; struct reg_property64 addr64[MAX_LMB_REGIONS];
struct reg_property_pmac addrPM[MAX_LMB_REGIONS];
}; };
#define LMB_MEMORY_AREA 1 #define LMB_MEMORY_AREA 1
......
...@@ -108,6 +108,12 @@ struct reg_property64 { ...@@ -108,6 +108,12 @@ struct reg_property64 {
unsigned long size; unsigned long size;
}; };
struct reg_property_pmac {
unsigned int address_hi;
unsigned int address_lo;
unsigned int size;
};
struct translation_property { struct translation_property {
unsigned long virt; unsigned long virt;
unsigned long size; unsigned long size;
...@@ -207,6 +213,7 @@ struct prom_args { ...@@ -207,6 +213,7 @@ struct prom_args {
struct prom_t { struct prom_t {
unsigned long entry; unsigned long entry;
ihandle root;
ihandle chosen; ihandle chosen;
int cpu; int cpu;
ihandle stdout; ihandle stdout;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment