diff options
author | Benji Dial <benji3.141@gmail.com> | 2020-05-24 11:02:43 -0400 |
---|---|---|
committer | Benji Dial <benji3.141@gmail.com> | 2020-05-24 11:02:43 -0400 |
commit | 02f14113cbf14c6f842fb43ecbc68d0c851ef3b0 (patch) | |
tree | 75d2d943d9822b3f945fd947e9b91eec1d68e900 /src/kernel/fs.h | |
parent | 31d8ae388a7ded576abd3e3d99c3d9193ea6d704 (diff) | |
download | portland-os-02f14113cbf14c6f842fb43ecbc68d0c851ef3b0.tar.gz |
very basic vga, ata, serial drivers. start of fat and fs drivers
Diffstat (limited to 'src/kernel/fs.h')
-rw-r--r-- | src/kernel/fs.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/kernel/fs.h b/src/kernel/fs.h new file mode 100644 index 0000000..821d810 --- /dev/null +++ b/src/kernel/fs.h @@ -0,0 +1,10 @@ +#include <stdint.h> + +void clear_fs_handles(); + +typedef uint8_t fs_handle; +fs_handle fs_open(uint8_t *path); +int16_t fs_seek(fs_handle handle, int16_t by); +uint16_t fs_read(fs_handle handle, uint16_t max, void *buffer); +uint16_t fs_write(fs_handle handle, uint16_t max, void *buffer); +void fs_close(fs_handle handle);
\ No newline at end of file |