Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bee-dma.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026, Realtek Semiconductor Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_DMA_BEE_DMA_H_
8#define ZEPHYR_INCLUDE_DT_BINDINGS_DMA_BEE_DMA_H_
9
41
42/* Direction, bits [1:0] */
43#define BEE_DMA_M2M 0
44#define BEE_DMA_M2P 1
45#define BEE_DMA_P2M 2
46
47/* Source address adjustment, bits [3:2] */
48#define BEE_DMA_SRC_INC (0 << 2)
49#define BEE_DMA_SRC_DEC (1 << 2)
50#define BEE_DMA_SRC_FIXED (2 << 2)
51
52/* Destination address adjustment, bits [5:4] */
53#define BEE_DMA_DST_INC (0 << 4)
54#define BEE_DMA_DST_DEC (1 << 4)
55#define BEE_DMA_DST_FIXED (2 << 4)
56
57/* Source data width, bits [7:6] */
58#define BEE_DMA_SRC_WIDTH_8BIT (0 << 6)
59#define BEE_DMA_SRC_WIDTH_16BIT (1 << 6)
60#define BEE_DMA_SRC_WIDTH_32BIT (2 << 6)
61
62/* Destination data width, bits [9:8] */
63#define BEE_DMA_DST_WIDTH_8BIT (0 << 8)
64#define BEE_DMA_DST_WIDTH_16BIT (1 << 8)
65#define BEE_DMA_DST_WIDTH_32BIT (2 << 8)
66
67/* Source burst size (msize), bits [12:10] */
68#define BEE_DMA_SRC_MSIZE(n) ((n) << 10)
69/* Destination burst size (msize), bits [15:13] */
70#define BEE_DMA_DST_MSIZE(n) ((n) << 13)
71
72/* Named burst-size values for use with BEE_DMA_SRC_MSIZE / BEE_DMA_DST_MSIZE */
73#define BEE_DMA_MSIZE_1 0
74#define BEE_DMA_MSIZE_4 1
75#define BEE_DMA_MSIZE_8 2
76#define BEE_DMA_MSIZE_16 3
77#define BEE_DMA_MSIZE_32 4
78#define BEE_DMA_MSIZE_64 5
79#define BEE_DMA_MSIZE_128 6
80#define BEE_DMA_MSIZE_256 7
81
82/* Channel priority, bits [20:16]. Bee supports 0 to 9. */
83#define BEE_DMA_PRIORITY(n) ((n) << 16)
84
85#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_DMA_BEE_DMA_H_ */