STRUCT SDMA_CONTEXT_DATA(9)
๐ struct sdma_context_data(9)
okay so bestie, welcome to the Kernel API Manual โจ โ this is the page for struct sdma_context_data, and yes we're gonna get through it together, no cap ๐ซถ
๐ธ NAME ๐ธ
struct sdma_context_data โ the sdma context that's specific to one channel ๐ (like, one channel's whole lil personality, locked in a struct)
โจ SYNOPSIS โจ
struct sdma_context_data {
struct sdma_state_registers channel_state;
u32 gReg[8];
u32 mda;
u32 msa;
u32 ms;
u32 md;
u32 pda;
u32 psa;
u32 ps;
u32 pd;
u32 ca;
u32 cs;
u32 dda;
u32 dsa;
u32 ds;
u32 dd;
u32 scratch0;
u32 scratch1;
u32 scratch2;
u32 scratch3;
u32 scratch4;
u32 scratch5;
u32 scratch6;
u32 scratch7;
};
๐ฆ Members ๐ฆ
okay this is the part where we meet the whole cast, main character energy only ๐
๐ the state bit
channel_stateโ the channel state bits ๐ซ the vibe check of the whole channel, fr
๐ the general registers
gRegโ general registers, a whole array of8of them, they're the general-purpose besties
๐ฅ burst dma crew
mdaโ burst dma destination address register ๐ where it's goingmsaโ burst dma source address register ๐ where it came frommsโ burst dma status register ๐ฉบ the current moodmdโ burst dma data register ๐ฆ the actual goodies
๐ peripheral dma crew
pdaโ peripheral dma destination address register ๐psaโ peripheral dma source address register ๐psโ peripheral dma status register ๐ฉบpdโ peripheral dma data register ๐ฆ
โญ the crc girlies
caโ CRC polynomial register ๐งฎ the recipecsโ CRC accumulator register ๐งฎ the running total
๐ dedicated core crew
ddaโ dedicated core destination address register ๐dsaโ dedicated core source address register ๐dsโ dedicated core status register ๐ฉบddโ dedicated core data register ๐ฆ
๐ง scratch time (dedicated ram, for context switch)
scratch0โ 1st word of dedicated ram for context switch ๐scratch1โ 2nd word of dedicated ram for context switch ๐scratch2โ 3rd word of dedicated ram for context switch ๐scratch3โ 4th word of dedicated ram for context switch ๐scratch4โ 5th word of dedicated ram for context switch ๐scratch5โ 6th word of dedicated ram for context switch ๐scratch6โ 7th word of dedicated ram for context switch ๐scratch7โ 8th word of dedicated ram for context switch ๐
not a single scratch word skipped, we ate that ๐
๐ SEE ALSO ๐
go read these next, bestie, they're all in the kernel file ./drivers/dma/imx-sdma.c ๐
struct sdma_channel_control(9)struct sdma_state_registers(9)struct sdma_desc(9)struct sdma_channel(9)struct sdma_firmware_header(9)
and that's the page!! ๐ this lil gem lives under ./drivers/dma and it's dated October 2026 โ so like, future iconic ๐ mwah, go forth and dma responsibly ๐งโจ
๐ฆ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms