summary refs log tree commit diff stats
path: root/include/hw/ppc/fdt.h
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2016-08-02 19:38:01 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2016-09-07 12:40:12 +1000
commit3654fa95bc29e72c2eef22f26eb621af1f86feec (patch)
tree8e69f523b29fa7b593aac6063cea5c23e8897668 /include/hw/ppc/fdt.h
parentce9863b7978976492efc2b57589516f3fcae79cb (diff)
downloadfocaccia-qemu-3654fa95bc29e72c2eef22f26eb621af1f86feec.tar.gz
focaccia-qemu-3654fa95bc29e72c2eef22f26eb621af1f86feec.zip
hw/ppc: add a ppc_create_page_sizes_prop() helper routine
The exact same routine will be used in PowerNV.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/ppc/fdt.h')
-rw-r--r--include/hw/ppc/fdt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/ppc/fdt.h b/include/hw/ppc/fdt.h
index 2e5c61af14..2c68d1616f 100644
--- a/include/hw/ppc/fdt.h
+++ b/include/hw/ppc/fdt.h
@@ -12,6 +12,8 @@
 
 #include "qemu/error-report.h"
 
+typedef struct CPUPPCState CPUPPCState;
+
 #define _FDT(exp)                                                  \
     do {                                                           \
         int ret = (exp);                                           \
@@ -22,4 +24,7 @@
         }                                                          \
     } while (0)
 
+size_t ppc_create_page_sizes_prop(CPUPPCState *env, uint32_t *prop,
+                                  size_t maxsize);
+
 #endif /* PPC_FDT_H */