ahci: add block operations

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-13 00:02:22 -04:00
commit fc0720b118
5 changed files with 60 additions and 9 deletions

View file

@ -4,7 +4,6 @@
#include <kernel/spinlock.h>
#include <kernel/slab.h>
#include <kernel/block.h>
#include <fs/inode.h>
#include <lib/rwlock.h>
@ -54,6 +53,8 @@
#define FS_RDONLY 0x00000001
struct block_device;
struct fs_driver {
char name[FILE_NAME_MAX_LEN + 1];
int (*init)(int flags, struct block_device *to_mount, fs_t **out);