Skip to content

Commit e7bbb7a

Browse files
committed
dmaengine: add peripheral configuration
Some complex dmaengine controllers have capability to program the peripheral device, so pass on the peripheral configuration as part of dma_slave_config Link: https://lore.kernel.org/r/20201109085450.24843-3-vkoul@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 678198f commit e7bbb7a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/dmaengine.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,9 @@ enum dma_slave_buswidth {
418418
* @slave_id: Slave requester id. Only valid for slave channels. The dma
419419
* slave peripheral will have unique id as dma requester which need to be
420420
* pass as slave config.
421+
* @peripheral_config: peripheral configuration for programming peripheral
422+
* for dmaengine transfer
423+
* @peripheral_size: peripheral configuration buffer size
421424
*
422425
* This struct is passed in as configuration data to a DMA engine
423426
* in order to set up a certain channel for DMA transport at runtime.
@@ -443,6 +446,8 @@ struct dma_slave_config {
443446
u32 dst_port_window_size;
444447
bool device_fc;
445448
unsigned int slave_id;
449+
void *peripheral_config;
450+
size_t peripheral_size;
446451
};
447452

448453
/**

0 commit comments

Comments
 (0)