]> rtime.felk.cvut.cz Git - jailhouse.git/blob - configs/vexpress-gic-demo.c
configs: Remove obsolete chromebook config
[jailhouse.git] / configs / vexpress-gic-demo.c
1 /*
2  * Jailhouse, a Linux-based partitioning hypervisor
3  *
4  * Copyright (c) ARM Limited, 2014
5  *
6  * Authors:
7  *  Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
8  *
9  * This work is licensed under the terms of the GNU GPL, version 2.  See
10  * the COPYING file in the top-level directory.
11  */
12
13 #include <linux/types.h>
14 #include <jailhouse/cell-config.h>
15
16 #define ARRAY_SIZE(a) sizeof(a) / sizeof(a[0])
17
18 struct {
19         struct jailhouse_cell_desc cell;
20         __u64 cpus[1];
21         struct jailhouse_memory mem_regions[2];
22 } __attribute__((packed)) config = {
23         .cell = {
24                 .name = "gic-demo",
25                 .flags = JAILHOUSE_CELL_PASSIVE_COMMREG,
26
27                 .cpu_set_size = sizeof(config.cpus),
28                 .num_memory_regions = ARRAY_SIZE(config.mem_regions),
29                 .num_irqchips = 0,
30                 .pio_bitmap_size = 0,
31                 .num_pci_devices = 0,
32         },
33
34         .cpus = {
35                 0x2,
36         },
37
38         .mem_regions = {
39                 /* UART 1 */ {
40                         .phys_start = 0x1c0a0000,
41                         .virt_start = 0x1c090000,
42                         .size = 0x10000,
43                         .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
44                                 JAILHOUSE_MEM_IO,
45                 },
46                 /* RAM */ {
47                         .phys_start = 0xfbfe0000,
48                         .virt_start = 0,
49                         .size = 0x00010000,
50                         .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
51                                 JAILHOUSE_MEM_EXECUTE | JAILHOUSE_MEM_LOADABLE,
52                 },
53         },
54 };