]> Git Repo - u-boot.git/blobdiff - include/spl.h
include/configs: Numerous typo fixes: "controler" -> "controller".
[u-boot.git] / include / spl.h
index c62887af0eddf29b9c4f17fdd93eef327f59c4f9..de4f70a377313bec73e9cee638d67a1ce09b61e4 100644 (file)
@@ -29,6 +29,24 @@ struct spl_image_info {
        u32 flags;
 };
 
+/*
+ * Information required to load data from a device
+ *
+ * @dev: Pointer to the device, e.g. struct mmc *
+ * @priv: Private data for the device
+ * @bl_len: Block length for reading in bytes
+ * @read: Function to call to read from the device
+ */
+struct spl_load_info {
+       void *dev;
+       void *priv;
+       int bl_len;
+       ulong (*read)(struct spl_load_info *load, ulong sector, ulong count,
+                     void *buf);
+};
+
+int spl_load_simple_fit(struct spl_load_info *info, ulong sector, void *fdt);
+
 #define SPL_COPY_PAYLOAD_ONLY  1
 
 extern struct spl_image_info spl_image;
This page took 0.02556 seconds and 4 git commands to generate.