Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/bhyve/bootrom.h
Show All 26 Lines | |||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _BOOTROM_H_ | #ifndef _BOOTROM_H_ | ||||
#define _BOOTROM_H_ | #define _BOOTROM_H_ | ||||
#include <stdbool.h> | #include <stdbool.h> | ||||
#include <stddef.h> | |||||
#include <stdint.h> | |||||
#include <limits.h> | |||||
struct vmctx; | 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 | #endif |