aboutsummaryrefslogtreecommitdiff
path: root/include/apos/initrd.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-05-29 16:23:41 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-05-29 16:23:41 +0300
commitd7cb08134102b7a2410c48d2a1802193f9031e00 (patch)
tree711498836d6679ca2fc3b4ba9369b7fe53d7a3fa /include/apos/initrd.h
parente148f38dc937c34b222ba8df8612b3fa2b6bc349 (diff)
downloadkmi-d7cb08134102b7a2410c48d2a1802193f9031e00.tar.gz
kmi-d7cb08134102b7a2410c48d2a1802193f9031e00.zip
continue documentation efforts
Diffstat (limited to 'include/apos/initrd.h')
-rw-r--r--include/apos/initrd.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/apos/initrd.h b/include/apos/initrd.h
index 5644106..d38e669 100644
--- a/include/apos/initrd.h
+++ b/include/apos/initrd.h
@@ -10,10 +10,36 @@
#include <apos/pmem.h>
#include <apos/vmem.h>
+/**
+ * Get \c init program size in bytes.
+ *
+ * @param fdt Global FDT pointer.
+ * @return Size of \c init in bytes.
+ */
size_t get_init_size(const void *fdt);
+
+/**
+ * Get \c init program base address.
+ *
+ * @param fdt Global FDT pointer.
+ * @return Start of \c init.
+ */
vm_t get_init_base(const void *fdt);
+/**
+ * Get \c initrd top address.
+ *
+ * @param fdt Global FDT pointer.
+ * @return Top address of \c initrd.
+ */
pm_t get_initrdtop(const void *fdt);
+
+/**
+ * Get \c initrd base address.
+ *
+ * @param fdt Global FDT pointer.
+ * @return Base address of \c initrd.
+ */
pm_t get_initrdbase(const void *fdt);
#endif /* APOS_INITRD_H */