summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-04-05 22:19:49 +0800
committerHarald Welte <laforge@gnumonks.org>2010-04-05 22:19:49 +0800
commit2bfeb17e06bb3449b76529d72671e3912130f75a (patch)
tree1caf7ed019321213a647fe3d71e3dcb24c0ed6f0 /include
parent1fa7930eea37f2ba949a1dad8354c133eb1903a0 (diff)
l1ctl protocol: Introduce multi-part message DONE flag
In case a single request from L2 triggers multiple response messages from L1, we need a way to signal via L1CTL if the response is the final or some intermediate response.
Diffstat (limited to 'include')
-rw-r--r--include/l1a_l23_interface.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/l1a_l23_interface.h b/include/l1a_l23_interface.h
index e9def59c..690a6baa 100644
--- a/include/l1a_l23_interface.h
+++ b/include/l1a_l23_interface.h
@@ -41,9 +41,12 @@
* that it will avoid some unaligned access.
*/
+/* there are no more messages in a sequence */
+#define L1CTL_F_DONE 0x01
+
struct l1ctl_hdr {
uint8_t msg_type;
- uint8_t padding;
+ uint8_t flags;
uint8_t data[0];
} __attribute__((packed));