summaryrefslogtreecommitdiff
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2025-07-21 15:39:07 +0100
committerMark Brown <broonie@kernel.org>2025-07-21 15:39:07 +0100
commit69e536c93242425fc65580b02d3f781a96403660 (patch)
tree5fac4c392ac1de8a885bcb2c6908ef2cfbfbc4ae /include/linux/mtd
parent951a6d8d41289b86a564ee5563ededa702b62b1b (diff)
parentd60f7cab7c04944a79af16caa43c141e780a59c6 (diff)
spidev: introduce trivial abb sensor device
Merge series from Heiko Schocher <hs@denx.de>: This series introduces the changes needed for trivial spi based sensors from ABB, currently operated from userspace.
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/nand-qpic-common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mtd/nand-qpic-common.h b/include/linux/mtd/nand-qpic-common.h
index 0d944db363cd..4e694b1aabbd 100644
--- a/include/linux/mtd/nand-qpic-common.h
+++ b/include/linux/mtd/nand-qpic-common.h
@@ -239,6 +239,9 @@
* @last_data_desc - last DMA desc in data channel (tx/rx).
* @last_cmd_desc - last DMA desc in command channel.
* @txn_done - completion for NAND transfer.
+ * @bam_ce_nitems - the number of elements in the @bam_ce array
+ * @cmd_sgl_nitems - the number of elements in the @cmd_sgl array
+ * @data_sgl_nitems - the number of elements in the @data_sgl array
* @bam_ce_pos - the index in bam_ce which is available for next sgl
* @bam_ce_start - the index in bam_ce which marks the start position ce
* for current sgl. It will be used for size calculation
@@ -257,6 +260,11 @@ struct bam_transaction {
struct dma_async_tx_descriptor *last_data_desc;
struct dma_async_tx_descriptor *last_cmd_desc;
struct completion txn_done;
+
+ unsigned int bam_ce_nitems;
+ unsigned int cmd_sgl_nitems;
+ unsigned int data_sgl_nitems;
+
struct_group(bam_positions,
u32 bam_ce_pos;
u32 bam_ce_start;