Added VFS read and started UEFI SFS driver

This commit is contained in:
Jozef Nagy 2025-01-26 18:05:21 +01:00
parent b4289c429e
commit 758d681005
Signed by untrusted user who does not match committer: crz
GPG key ID: 459A4811CEAC7068
6 changed files with 145 additions and 9 deletions

View file

@ -26,12 +26,17 @@
struct vfs_drive;
struct vfs_filesystem {
int (*read_file)(struct vfs_drive *drive, char *filename, char *buf, size_t len);
int (*write_file)(struct vfs_drive *drive, char *filename, char *buf, size_t len);
char *fsname;
uint8_t (*read)(char *, char *, struct vfs_drive *, void *);
uint8_t (*write)(char *, char *, size_t, struct vfs_drive *, void *);
uint8_t (*mount)(struct vfs_drive *, void *);
uint8_t *fs_data;
};
struct vfs_mount {
char *mountpoint;
char *mnt;
struct vfs_drive *drive;
};