1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2021 Beckhoff Automation GmbH & Co. KG 5 * Author: Corvin Köhne <c.koehne@beckhoff.com> 6 */ 7 8 #pragma once 9 10 #include <vmmapi.h> 11 12 #define QEMU_FWCFG_MAX_ARCHS 0x2 13 #define QEMU_FWCFG_MAX_ENTRIES 0x4000 14 #define QEMU_FWCFG_MAX_NAME 56 15 16 struct qemu_fwcfg_item { 17 uint32_t size; 18 uint8_t *data; 19 }; 20 21 int qemu_fwcfg_init(struct vmctx *const ctx); 22