summaryrefslogtreecommitdiffhomepage
path: root/src/loader/inc/dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/loader/inc/dev.h')
-rw-r--r--src/loader/inc/dev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/loader/inc/dev.h b/src/loader/inc/dev.h
index 6fcbf25..9d9913e 100644
--- a/src/loader/inc/dev.h
+++ b/src/loader/inc/dev.h
@@ -25,6 +25,7 @@ struct dev {
};
struct dev *dev_get(u8 id);
+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 *));