summaryrefslogtreecommitdiff
path: root/flashimg/cpu_main/flash_static.h
diff options
context:
space:
mode:
Diffstat (limited to 'flashimg/cpu_main/flash_static.h')
-rw-r--r--flashimg/cpu_main/flash_static.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/flashimg/cpu_main/flash_static.h b/flashimg/cpu_main/flash_static.h
new file mode 100644
index 0000000..b2eeaa9
--- /dev/null
+++ b/flashimg/cpu_main/flash_static.h
@@ -0,0 +1,21 @@
+/* flashimg/cpu_main/flash_static.h - Serve static files from flash over 9P
+ *
+ * Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com>
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+#ifndef _FLASHIMG_CPU_MAIN_FLASH_STATIC_H_
+#define _FLASHIMG_CPU_MAIN_FLASH_STATIC_H_
+
+#include <util9p/static.h>
+
+struct flash_static_file {
+ struct _util9p_static_common c;
+
+ struct flashio *io;
+ char *data_start; /* must not be NULL */
+ char *data_end; /* must not be NULL */
+};
+LO_IMPLEMENTATION_H(lib9p_srv_file, struct flash_static_file, flash_static_file);
+
+#endif /* _FLASHIMG_CPU_MAIN_FLASH_STATIC_H_ */