Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / hw / core / guest-loader.h
blob07f4b4884b8ab2cfeed9d99624ff8cc0814dc2ac
1 /*
2 * Guest Loader
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>)
8 * SPDX-License-Identifier: GPL-2.0-or-later
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.
14 #ifndef GUEST_LOADER_H
15 #define GUEST_LOADER_H
17 #include "hw/qdev-core.h"
18 #include "qom/object.h"
20 struct GuestLoaderState {
21 /* <private> */
22 DeviceState parent_obj;
24 /* <public> */
25 uint64_t addr;
26 char *kernel;
27 char *args;
28 char *initrd;
31 #define TYPE_GUEST_LOADER "guest-loader"
32 OBJECT_DECLARE_SIMPLE_TYPE(GuestLoaderState, GUEST_LOADER)
34 #endif