kernel: firmware loading

This commit is contained in:
Matheus
2026-09-09 16:37:15 -03:00
parent de0d5cb8f9
commit 2328f889ef
6 changed files with 160 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#ifndef _FIRMWARE_H
#define _FIRMWARE_H
#include <stddef.h>
typedef void (*firmware_callback_t)(void *ctx, void *data, size_t size);
// firmware data is only valid only for the duration of the callback
int firmware_load(const char *name, firmware_callback_t callback, void *ctx);
#endif