Skip to content

dma api improvement #108153

@liuhangtao-linkedsemi

Description

@liuhangtao-linkedsemi

Is your feature request related to a problem? Please describe.

zephyr/include/zephyr/drivers/dma.h

typedef int (*dma_api_get_attribute)(const struct device *dev, uint32_t type, uint32_t *value);

This API requires the channel parameter because not all channels support the same maximum number of blocks.

Describe the solution you'd like

change to

typedef int (*dma_api_get_attribute)(const struct device *dev, uint32_t channel, uint32_t type, uint32_t *value);

Describe alternatives you've considered

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions