summaryrefslogtreecommitdiff
path: root/include/pxe_utils.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-11-15 16:19:19 -0700
committerTom Rini <trini@konsulko.com>2025-01-15 08:48:42 -0600
commit3ed218e2ff6386477c8575367dd67613b588750a (patch)
tree8d564a428e9cd19d51cc04741b087bb9d8a4445d /include/pxe_utils.h
parentea7f88f313270e2bfef5f4f91dfb34f86f90c675 (diff)
boot: Update extlinux pxe_getfile_func() to include type
Add a file-type parameter to this function and update all users. Add a proper comment to the function which we are here. This will allow tracking of the file types loaded by the extlinux bootmeth. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/pxe_utils.h')
-rw-r--r--include/pxe_utils.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/pxe_utils.h b/include/pxe_utils.h
index 68ac40b64ad..0378f2889f7 100644
--- a/include/pxe_utils.h
+++ b/include/pxe_utils.h
@@ -3,6 +3,7 @@
#ifndef __PXE_UTILS_H
#define __PXE_UTILS_H
+#include <bootflow.h>
#include <linux/list.h>
/*
@@ -82,8 +83,19 @@ struct pxe_menu {
};
struct pxe_context;
+
+/**
+ * Read a file
+ *
+ * @ctx: PXE context
+ * @file_path: Full path to filename to read
+ * @file_addr: String containing the to which to read the file
+ * @type: File type
+ * @fileszeip: Returns file size
+ */
typedef int (*pxe_getfile_func)(struct pxe_context *ctx, const char *file_path,
- char *file_addr, ulong *filesizep);
+ char *file_addr, enum bootflow_img_t type,
+ ulong *filesizep);
/**
* struct pxe_context - context information for PXE parsing