working on exposing vga to userspace

This commit is contained in:
2026-07-16 14:44:08 -05:00
parent 37aa46c847
commit b588634253
16 changed files with 251 additions and 139 deletions

View File

@@ -15,6 +15,9 @@ struct vfs_node;
typedef uint32_t (*read_type_t)(struct vfs_node* node, uint32_t offset, uint32_t size, uint8_t* buffer);
typedef uint32_t (*write_type_t)(struct vfs_node* node, uint32_t offset, uint32_t size, uint8_t* buffer);
typedef uint32_t (*seek_type_t)(struct vfs_node* node, uint32_t offset, int whence);
typedef uint32_t (*mmap_type_t)(struct vfs_node* node, uint32_t address);
typedef uint32_t (*ioctl_type_t)(struct vfs_node* node, uint32_t request, void* arg);
typedef struct vfs_node* (*finddir_type_t)(struct vfs_node* node, const char* name);
typedef struct vfs_node* (*mkdir_type_t)(struct vfs_node* node, const char* name);
typedef struct vfs_node* (*create_type_t)(struct vfs_node* node, const char* name);
@@ -33,6 +36,8 @@ typedef struct vfs_node {
mkdir_type_t mkdir;
create_type_t create;
seek_type_t seek;
mmap_type_t mmap;
ioctl_type_t ioctl;
struct vfs_node* mnt;
void* data;