bootrom.h (4c87aefe) bootrom.h (154972af)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2015 Neel Natu <neel@freebsd.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 18 unchanged lines hidden (view full) ---

27 *
28 * $FreeBSD$
29 */
30
31#ifndef _BOOTROM_H_
32#define _BOOTROM_H_
33
34#include <stdbool.h>
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2015 Neel Natu <neel@freebsd.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 18 unchanged lines hidden (view full) ---

27 *
28 * $FreeBSD$
29 */
30
31#ifndef _BOOTROM_H_
32#define _BOOTROM_H_
33
34#include <stdbool.h>
35#include <stddef.h>
36#include <stdint.h>
37#include <limits.h>
35
36struct vmctx;
37
38
39struct vmctx;
40
38int bootrom_init(struct vmctx *ctx, const char *romfile);
41void init_bootrom(struct vmctx *ctx);
42enum {
43 BOOTROM_ALLOC_TOP = 0x80,
44 _FORCE_INT = INT_MIN,
45};
46int bootrom_alloc(struct vmctx *ctx, size_t len, int prot, int flags,
47 char **region_out, uint64_t *gpa_out);
48int bootrom_loadrom(struct vmctx *ctx, const char *romfile);
39
40#endif
49
50#endif