aboutsummaryrefslogtreecommitdiff
path: root/include/spl.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-03-12 15:57:20 -0500
committerTom Rini <trini@konsulko.com>2021-03-12 15:57:20 -0500
commitc57ec2c2bab00c02a457ca70624c1333c60c2ec0 (patch)
tree8b8b53585fd9bc655f32eba141f3c2d25d21d882 /include/spl.h
parent668866aa24a87244e64be42f296959297ddc5014 (diff)
parentfc3283314539d6c3fb577359f6cb364c19c13726 (diff)
Merge branch '2021-03-12-test-improvements' into next
- Assorted improvements to the pytest framework
Diffstat (limited to 'include/spl.h')
-rw-r--r--include/spl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index 0d134587de..4f6e0e53f5 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -222,6 +222,15 @@ struct spl_load_info {
void *priv;
int bl_len;
const char *filename;
+ /**
+ * read() - Read from device
+ *
+ * @load: Information about the load state
+ * @sector: Sector number to read from (each @load->bl_len bytes)
+ * @count: Number of sectors to read
+ * @buf: Buffer to read into
+ * @return number of sectors read, 0 on error
+ */
ulong (*read)(struct spl_load_info *load, ulong sector, ulong count,
void *buf);
};