Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/bootrom.h
Show All 30 Lines | |||||
#ifndef _BOOTROM_H_ | #ifndef _BOOTROM_H_ | ||||
#define _BOOTROM_H_ | #define _BOOTROM_H_ | ||||
#include <stdbool.h> | #include <stdbool.h> | ||||
#include <stddef.h> | #include <stddef.h> | ||||
#include <stdint.h> | #include <stdint.h> | ||||
#include <limits.h> | #include <limits.h> | ||||
#include "config.h" | |||||
struct vmctx; | struct vmctx; | ||||
void init_bootrom(struct vmctx *ctx); | void init_bootrom(struct vmctx *ctx); | ||||
enum { | enum { | ||||
BOOTROM_ALLOC_TOP = 0x80, | BOOTROM_ALLOC_TOP = 0x80, | ||||
_FORCE_INT = INT_MIN, | _FORCE_INT = INT_MIN, | ||||
}; | }; | ||||
int bootrom_alloc(struct vmctx *ctx, size_t len, int prot, int flags, | int bootrom_alloc(struct vmctx *ctx, size_t len, int prot, int flags, | ||||
char **region_out, uint64_t *gpa_out); | char **region_out, uint64_t *gpa_out); | ||||
int bootrom_loadrom(struct vmctx *ctx, const char *romfile); | int bootrom_loadrom(struct vmctx *ctx, const nvlist_t *const nvl); | ||||
#endif | #endif |