#include <dev/biovar.h>
#include <stdlib.h>
extern int config;
extern int nowrite;
extern int stages;
extern int verbose;
extern char *root;
extern char *stage1;
extern char *stage2;
extern size_t dl16sz;
#ifdef BOOTSTRAP
void bootstrap(int, char *, char *);
#endif
int filecopy(const char *, const char *);
char *fileprefix(const char *, const char *);
int fileprintf(const char *, const char *, ...)
__attribute__((format(printf, 2, 3)));
u_int32_t crc32(const u_char *, const u_int32_t);
void md_init(void);
void md_loadboot(void);
void md_prepareboot(int, char *);
void md_installboot(int, char *);
#ifdef SOFTRAID
int sr_open_chunk(int, int, int, struct bioc_disk *, char **, char *);
void sr_prepareboot(int, char *);
void sr_installboot(int, char *);
void sr_install_bootblk(int, int, int);
void sr_install_bootldr(int, char *);
void sr_status(struct bio_status *);
#endif
#ifdef EFIBOOTMGR
struct gpt_partition;
void efi_bootmgr_setup(int, struct gpt_partition *, const char *);
#endif