SprinkleOS/ramfs.h
2021-04-09 18:24:56 +09:00

15 lines
355 B
C
Executable File

#include <Protocol/SimpleFileSystem.h>
typedef struct {
int Start;
int Size;
char name[256];
} FILE_DESC;
typedef struct {
FILE_DESC descriptor[256];
char data[];
} RAMFS_DATA;
void ramfsinit(EFI_SYSTEM_TABLE *SystemTable);
void getfilesize(char *filename, UINTN *size);
void readfile(char *filename, UINTN buffersize, void *buffer);