15 lines
355 B
C
Executable File
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); |