diff options
Diffstat (limited to 'usr/src/cmd/bhyve/bootrom.h')
-rw-r--r-- | usr/src/cmd/bhyve/bootrom.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr/src/cmd/bhyve/bootrom.h b/usr/src/cmd/bhyve/bootrom.h index 7fb12181dd..da802343ee 100644 --- a/usr/src/cmd/bhyve/bootrom.h +++ b/usr/src/cmd/bhyve/bootrom.h @@ -32,9 +32,19 @@ #define _BOOTROM_H_ #include <stdbool.h> +#include <stddef.h> +#include <stdint.h> +#include <limits.h> struct vmctx; -int bootrom_init(struct vmctx *ctx, const char *romfile); +void init_bootrom(struct vmctx *ctx); +enum { + BOOTROM_ALLOC_TOP = 0x80, + _FORCE_INT = INT_MIN, +}; +int bootrom_alloc(struct vmctx *ctx, size_t len, int prot, int flags, + char **region_out, uint64_t *gpa_out); +int bootrom_loadrom(struct vmctx *ctx, const char *romfile); #endif |