diff options
author | Marvin Borner | 2021-07-12 18:14:44 +0200 |
---|---|---|
committer | Marvin Borner | 2021-07-12 18:15:29 +0200 |
commit | 1b429c0fc28e5cd8b474ad5a1de1fa6f3d7c2e2a (patch) | |
tree | 593af3e3ec78795bb47553f492db07fb7e87e373 /src/loader/inc/dev.h | |
parent | d414d2f6f46bd425d727af5baae3e2658d6e1384 (diff) |
Renamed files to match presentation
Diffstat (limited to 'src/loader/inc/dev.h')
-rw-r--r-- | src/loader/inc/dev.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/loader/inc/dev.h b/src/loader/inc/dev.h deleted file mode 100644 index cbefe99..0000000 --- a/src/loader/inc/dev.h +++ /dev/null @@ -1,41 +0,0 @@ -// MIT License, Copyright (c) 2021 Marvin Borner - -#ifndef DEV_H -#define DEV_H - -#include <def.h> -#include <dsk.h> - -enum dev_type { - DEV_NONE, - DEV_DISK, - DEV_FB, -}; - -struct dev { - u8 id; - enum dev_type type; - char name[16]; - - s32 (*read)(void *, u32, u32, struct dev *); - s32 (*write)(const void *, u32, u32, struct dev *); - - union { - struct { - struct fs fs; - } disk; - // TODO: Other (framebuffer?) - } p; // Prototype union - - u32 data; // Optional (device-specific) data/information -}; - -struct dev *dev_get_by_id(u8 id); -struct dev *dev_get_by_name(const char *name, u32 len); -void dev_foreach(enum dev_type type, u8 (*cb)(struct dev *)); // cb=1 => break -u8 dev_register(enum dev_type type, char *name, u32 data, - s32 (*read)(void *, u32, u32, struct dev *), - s32 (*write)(const void *, u32, u32, struct dev *)); -void dev_print(void); - -#endif |