summaryrefslogtreecommitdiffstats
path: root/include/firmware.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/firmware.h')
-rw-r--r--include/firmware.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/firmware.h b/include/firmware.h
index f6f78c840c..284e0f9705 100644
--- a/include/firmware.h
+++ b/include/firmware.h
@@ -39,4 +39,12 @@ void firmwaremgr_list_handlers(void);
int firmwaremgr_load_file(struct firmware_mgr *, const char *path);
+#define get_builtin_firmware(name, start, size) \
+ { \
+ extern char _fw_##name##_start[]; \
+ extern char _fw_##name##_end[]; \
+ *start = (typeof(*start)) _fw_##name##_start; \
+ *size = _fw_##name##_end - _fw_##name##_start; \
+ }
+
#endif /* FIRMWARE_H */