};
struct disk_private;
+struct initramfs;
struct firmware {
void (*init)(void);
int (*scan_memory)(scan_memory_callback_t, void *);
void (*adjust_screen)(void);
void (*cleanup)(void);
- struct disk *(*disk_init)(struct disk_private *);
+ struct disk *(*disk_init)(void *);
struct output_ops *o_ops;
struct input_ops *i_ops;
char *(*get_config_file_name)(void);
#include <com32.h>
#include <errno.h>
#include <syslinux/pmapi.h>
+#ifdef SYSLINUX_EFI
+#include <efi.h>
+#include <efilib.h>
+#include <efistdarg.h>
+#endif
extern char core_xfer_buf[65536];
extern char core_cache_buf[65536];
extern char *PATH;
+/* fs.c */
+void fs_init(const struct fs_ops **ops, struct disk_private *priv);
void pm_mangle_name(com32sys_t *);
void pm_searchdir(com32sys_t *);
void mangle_name(char *, const char *);
return -1;
}
-extern struct disk *efi_disk_init(com32sys_t *);
+extern struct disk *efi_disk_init(EFI_HANDLE);
extern void serialcfg(uint16_t *, uint16_t *, uint16_t *);
struct firmware efi_fw = {
{
EFI_LOADED_IMAGE *info;
EFI_STATUS status = EFI_SUCCESS;
- struct fs_ops *ops[] = { &vfat_fs_ops, NULL };
+ const struct fs_ops *ops[] = { &vfat_fs_ops, NULL };
unsigned long len = (unsigned long)__bss_end - (unsigned long)__bss_start;
static struct disk_private priv;