38 lines
893 B
C
38 lines
893 B
C
/*
|
|
* Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
|
|
*
|
|
* Under GPLv2
|
|
*/
|
|
|
|
#ifndef __BOOSTRAP_H__
|
|
#define __BOOSTRAP_H__
|
|
|
|
#include <common.h>
|
|
|
|
#define bootstrap_err(fmt, arg...) printf(fmt, ##arg)
|
|
|
|
typedef void (*kernel_entry_func)(int zero, int arch, void *params);
|
|
void bootstrap_boot(kernel_entry_func func, bool barebox);
|
|
|
|
#ifdef CONFIG_BOOTSTRAP_DEVFS
|
|
void* bootstrap_read_devfs(const char *devname, bool use_bb, int offset,
|
|
int default_size, int max_size);
|
|
#else
|
|
static inline void* bootstrap_read_devfs(const char *devname, bool use_bb, int offset,
|
|
int default_size, int max_size)
|
|
{
|
|
return NULL;
|
|
}
|
|
#endif
|
|
|
|
#ifdef CONFIG_BOOTSTRAP_DISK
|
|
void* bootstrap_read_disk(const char *devname, const char *fstype);
|
|
#else
|
|
static inline void* bootstrap_read_disk(const char *devname, const char *fstype)
|
|
{
|
|
return NULL;
|
|
}
|
|
#endif
|
|
|
|
#endif /* __BOOSTRAP_H__ */
|