summaryrefslogtreecommitdiffstats
path: root/sys/dev/sfxge/common/ef10_tlv_layout.h
diff options
context:
space:
mode:
authorarybchik <arybchik@FreeBSD.org>2016-01-20 08:18:43 +0000
committerarybchik <arybchik@FreeBSD.org>2016-01-20 08:18:43 +0000
commit85a4a8aa58b0dcb991878a64701fff9f3ae3a8f5 (patch)
tree7966300a1e70d9aa5a04a498911960d9edfcbf56 /sys/dev/sfxge/common/ef10_tlv_layout.h
parent9922da02620e8a042fa828d5704283f2e9c29aa9 (diff)
downloadFreeBSD-src-85a4a8aa58b0dcb991878a64701fff9f3ae3a8f5.zip
FreeBSD-src-85a4a8aa58b0dcb991878a64701fff9f3ae3a8f5.tar.gz
MFC r294254
sfxge: support RFID-selectable segments of dynamic configuration tlv_partition_header has field *preset* to support RFID-selectable segments of dynamic configuration Submitted by: Mateusz Wrzesinski <mwrzesinski at solarflare.com> Sponsored by: Solarflare Communications, Inc.
Diffstat (limited to 'sys/dev/sfxge/common/ef10_tlv_layout.h')
-rw-r--r--sys/dev/sfxge/common/ef10_tlv_layout.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/sfxge/common/ef10_tlv_layout.h b/sys/dev/sfxge/common/ef10_tlv_layout.h
index 4063165..841ae10 100644
--- a/sys/dev/sfxge/common/ef10_tlv_layout.h
+++ b/sys/dev/sfxge/common/ef10_tlv_layout.h
@@ -113,7 +113,11 @@ struct tlv_partition_header {
uint32_t tag;
uint32_t length;
uint16_t type_id;
- uint16_t reserved;
+/* 0 indicates the default segment (always located at offset 0), while other values
+ * are for RFID-selectable presets that should immediately follow the default segment.
+ * The default segment may also have preset > 0, which means that it is a preset
+ * selected through an RFID command and copied by FW to the location at offset 0. */
+ uint16_t preset;
uint32_t generation;
uint32_t total_length;
};
OpenPOWER on IntegriCloud