aboutsummaryrefslogtreecommitdiff
path: root/htc.h
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2025-04-21 22:30:22 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2025-04-21 22:30:22 +0000
commit47517ebce7b8d1dc0ee900f13404f2e90ce33be9 (patch)
tree4c44a2ef65a5bd5726893e26aca9e4790eec0766 /htc.h
parente05a7642395e7a6cbf1876350e96bd80e6292cd4 (diff)
Diffstat (limited to 'htc.h')
-rw-r--r--htc.h20
1 files changed, 3 insertions, 17 deletions
diff --git a/htc.h b/htc.h
index 0d180faf3b77..7ff665020015 100644
--- a/htc.h
+++ b/htc.h
@@ -246,26 +246,12 @@ struct ath10k_htc_lookahead_bundle {
struct ath10k_htc_record {
struct ath10k_ath10k_htc_record_hdr hdr;
union {
- struct ath10k_htc_credit_report credit_report[0];
- struct ath10k_htc_lookahead_report lookahead_report[0];
- struct ath10k_htc_lookahead_bundle lookahead_bundle[0];
- u8 pauload[0];
+ DECLARE_FLEX_ARRAY(struct ath10k_htc_credit_report, credit_report);
+ DECLARE_FLEX_ARRAY(struct ath10k_htc_lookahead_report, lookahead_report);
+ DECLARE_FLEX_ARRAY(struct ath10k_htc_lookahead_bundle, lookahead_bundle);
};
} __packed __aligned(4);
-/*
- * note: the trailer offset is dynamic depending
- * on payload length. this is only a struct layout draft
- */
-struct ath10k_htc_frame {
- struct ath10k_htc_hdr hdr;
- union {
- struct ath10k_htc_msg msg;
- u8 payload[0];
- };
- struct ath10k_htc_record trailer[0];
-} __packed __aligned(4);
-
/*******************/
/* Host-side stuff */
/*******************/