diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2013-01-21 12:40:26 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-01-21 12:40:26 +0000 |
commit | 361261976fb173af65a366fc5540311eb5b1a855 (patch) | |
tree | d4b73a90cf728746833aece86b47ffce8a19c5fe /xen | |
parent | 4679291811f433575618627d8e6ea004b53dcf4f (diff) | |
download | xen-361261976fb173af65a366fc5540311eb5b1a855.tar.gz xen-361261976fb173af65a366fc5540311eb5b1a855.tar.bz2 xen-361261976fb173af65a366fc5540311eb5b1a855.zip |
xen: arm: introduce concept of modules which can be in RAM at start of day
The intention is that these will eventually be filled in with
information from the bootloader, perhaps via a DTB binding.
Allow for 2 modules (kernel and initrd), plus a third pseudo-module
which is the hypervisor itself. Currently we neither parse nor do
anything with them.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen')
-rw-r--r-- | xen/include/xen/device_tree.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/xen/include/xen/device_tree.h b/xen/include/xen/device_tree.h index a0e3a97922..52ef258584 100644 --- a/xen/include/xen/device_tree.h +++ b/xen/include/xen/device_tree.h @@ -15,6 +15,7 @@ #define DEVICE_TREE_MAX_DEPTH 16 #define NR_MEM_BANKS 8 +#define NR_MODULES 2 struct membank { paddr_t start; @@ -33,9 +34,22 @@ struct dt_gic_info { paddr_t gic_vcpu_addr; }; +struct dt_mb_module { + paddr_t start; + paddr_t size; + char cmdline[1024]; +}; + +struct dt_module_info { + int nr_mods; + /* Module 0 is Xen itself, followed by the provided modules-proper */ + struct dt_mb_module module[NR_MODULES + 1]; +}; + struct dt_early_info { struct dt_mem_info mem; struct dt_gic_info gic; + struct dt_module_info modules; }; typedef int (*device_tree_node_func)(const void *fdt, |