]> rtime.felk.cvut.cz Git - jailhouse.git/blob - configs/chromebook.c
configs: Adjust MSI capability address of HDA devices
[jailhouse.git] / configs / chromebook.c
1 /*
2  * Jailhouse, a Linux-based partitioning hypervisor
3  *
4  * Test configuration for Samsung Chromebook, 2 GB RAM, 64 MB hypervisor
5  *
6  * Copyright (c) Siemens AG, 2013
7  *
8  * Authors:
9  *  Jan Kiszka <jan.kiszka@siemens.com>
10  *
11  * This work is licensed under the terms of the GNU GPL, version 2.  See
12  * the COPYING file in the top-level directory.
13  */
14
15 #include <linux/types.h>
16 #include <jailhouse/cell-config.h>
17
18 #define ARRAY_SIZE(a) sizeof(a) / sizeof(a[0])
19
20 struct {
21         struct jailhouse_system header;
22         __u64 cpus[1];
23         struct jailhouse_memory mem_regions[1];
24 } __attribute__((packed)) config = {
25         .header = {
26                 .hypervisor_memory = {
27                         .phys_start = 0xbc000000,
28                         .size = 0x4000000,
29                 },
30                 .root_cell = {
31                         .name = "Samsung Chromebook",
32
33                         .cpu_set_size = sizeof(config.cpus),
34                         .num_memory_regions = ARRAY_SIZE(config.mem_regions),
35                         .num_irqchips = 0,
36                         .pio_bitmap_size = 0,
37
38                         .num_pci_devices = 0,
39                 },
40         },
41
42         .cpus = {
43                 0xf,
44         },
45
46         .mem_regions = {
47                 /* RAM */ {
48                         .phys_start = 0x0,
49                         .virt_start = 0x0,
50                         .size = 0x3c000000,
51                         .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
52                                 JAILHOUSE_MEM_EXECUTE,
53                 },
54         },
55 };