boot: Add vendor defined TLV ranges
This patch adds comments to reserve off a portion of the available TLV range
for use by vendors for proprietary TLV types.
Signed-off-by: Andy Gross <andy.gross@juul.com>
diff --git a/boot/bootutil/include/bootutil/image.h b/boot/bootutil/include/bootutil/image.h
index 5de8192..90543b7 100644
--- a/boot/bootutil/include/bootutil/image.h
+++ b/boot/bootutil/include/bootutil/image.h
@@ -89,6 +89,16 @@
#define IMAGE_TLV_DEPENDENCY 0x40 /* Image depends on other image */
#define IMAGE_TLV_SEC_CNT 0x50 /* security counter */
#define IMAGE_TLV_BOOT_RECORD 0x60 /* measured boot record */
+ /*
+ * vendor reserved TLVs at xxA0-xxFF,
+ * where xx denotes the upper byte
+ * range. Examples:
+ * 0x00a0 - 0x00ff
+ * 0x01a0 - 0x01ff
+ * 0x02a0 - 0x02ff
+ * ...
+ * 0xffa0 - 0xfffe
+ */
#define IMAGE_TLV_ANY 0xffff /* Used to iterate over all TLV */
struct image_version {