xref: /openbmc/qemu/hw/core/guest-loader.h (revision 2068cabd)
1 /*
2  * Guest Loader
3  *
4  * Copyright (C) 2020 Linaro
5  * Written by Alex Bennée <alex.bennee@linaro.org>
6  * (based on the generic-loader by Li Guang <lig.fnst@cn.fujitsu.com>)
7  *
8  * SPDX-License-Identifier: GPL-2.0-or-later
9  *
10  * This work is licensed under the terms of the GNU GPL, version 2 or later.
11  * See the COPYING file in the top-level directory.
12  */
13 
14 #ifndef GUEST_LOADER_H
15 #define GUEST_LOADER_H
16 
17 #include "hw/qdev-core.h"
18 #include "qom/object.h"
19 
20 struct GuestLoaderState {
21     /* <private> */
22     DeviceState parent_obj;
23 
24     /* <public> */
25     uint64_t addr;
26     char *kernel;
27     char *args;
28     char *initrd;
29 };
30 
31 #define TYPE_GUEST_LOADER "guest-loader"
32 OBJECT_DECLARE_SIMPLE_TYPE(GuestLoaderState, GUEST_LOADER)
33 
34 #endif
35