mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
![Warner Losh](/assets/img/avatar_default.png)
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
27 lines
597 B
C
27 lines
597 B
C
/*-
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* Copyright (c) 2021 Beckhoff Automation GmbH & Co. KG
|
|
* Author: Corvin Köhne <c.koehne@beckhoff.com>
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <vmmapi.h>
|
|
|
|
#define QEMU_FWCFG_MAX_ARCHS 0x2
|
|
#define QEMU_FWCFG_MAX_ENTRIES 0x4000
|
|
#define QEMU_FWCFG_MAX_NAME 56
|
|
|
|
#define QEMU_FWCFG_FILE_TABLE_LOADER "etc/table-loader"
|
|
|
|
struct qemu_fwcfg_item {
|
|
uint32_t size;
|
|
uint8_t *data;
|
|
};
|
|
|
|
int qemu_fwcfg_add_file(const char *name,
|
|
const uint32_t size, void *const data);
|
|
int qemu_fwcfg_init(struct vmctx *const ctx);
|
|
int qemu_fwcfg_parse_cmdline_arg(const char *opt);
|