mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
kernel: firmware loading
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user