STRUCT SDMA_STATE_REGISTERS(9)
β¨ struct sdma_state_registers β NAME β¨
okay so bestie, welcome to the Kernel API Manual π this page is literally all about struct sdma_state_registers β the SDMA context for a channel π that's it, that's the whole vibe. one struct, eleven members, all of them bitfields, she's compact and she knows it π
π¦ SYNOPSIS π¦
like, here's her whole lewk, no cap, copied exactly:
struct sdma_state_registers {
u32 pc :14;
u32 unused1: 1;
u32 t : 1;
u32 rpc :14;
u32 unused0: 1;
u32 sf : 1;
u32 spc :14;
u32 unused2: 1;
u32 df : 1;
u32 epc :14;
u32 lm : 2;
};
lowkey obsessed with how every field is a bitfield with a precise width β 14, 1, 14, 1, 1, 14, 1, 1, 14, 2 β the girl is engineered β¨
πΈ Members πΈ
time for the member-by-member vibe check, every single one, no skips π«Ά
pcβ the program counter. main character energy fr fr πunused1β unused. she's just there, taking up space, iconic honestly πtβ the test bit: it's the status of the arithmetic & test instruction βrpcβ the return program counter. like a little "brb" bookmark πunused0β unused. again. we love a placeholder πsfβ source fault while loading data. not the vibe, but important πspcβ the loop start program counter πunused2β unused (yes, a third one, she contains multitudes) πdfβ destination fault while storing data. the other fault, keep them straight bestie πepcβ the loop end program counter πlmβ the loop mode πΈ
ngl the numbering on those unused bits isunused1,unused0,unused2β that's the order in the struct, and we do not reorder her. copy it exactly, char for char π
π₯ SEE ALSO π₯
go look at these next, bestie, they're all in the family π§
- Kernel file
./drivers/dma/imx-sdma.c struct sdma_channel_control(9)struct sdma_context_data(9)struct sdma_desc(9)struct sdma_channel(9)struct sdma_firmware_header(9)
okay that's the whole page, you ate that π mwah π«Ά
sign-off szn: this lil number comes from the Kernel API Manual, lives in./drivers/dma, and is dated October 2026 β and the page itself isstruct sdma_state_registers(9). periodt. β¨π
π¦ 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