From ea08eeccae9297f7aabd2ef7f0c2517ac4549acc Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Tue, 20 Feb 2024 01:18:26 +0000
Subject: [PATCH] write in 30M
---
u-boot/include/android_avb/avb_ops_user.h | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/u-boot/include/android_avb/avb_ops_user.h b/u-boot/include/android_avb/avb_ops_user.h
index 36a98da..28e807b 100755
--- a/u-boot/include/android_avb/avb_ops_user.h
+++ b/u-boot/include/android_avb/avb_ops_user.h
@@ -63,6 +63,22 @@
/* Frees an AvbOps instance previously allocated with avb_ops_device_new(). */
void avb_ops_user_free(AvbOps* ops);
+struct preloaded_partition {
+ uint8_t *addr;
+ size_t size; // 0 means the partition hasn't yet been preloaded
+};
+
+struct AvbOpsData {
+ struct AvbOps *ops;
+ const char *iface;
+ const char *devnum;
+ const char *slot_suffix;
+ struct preloaded_partition boot;
+ struct preloaded_partition vendor_boot;
+ struct preloaded_partition init_boot;
+ struct preloaded_partition resource;
+};
+
#ifdef __cplusplus
}
#endif
--
Gitblit v1.6.2