STRUCT SPRD_MCDT_CHAN(9)
πΈ struct sprd_mcdt_chan(9) πΈ
okay so bestie, we're in the Kernel API Manual today and this page is literally about struct sprd_mcdt_chan β say it with me, it's giving "one single channel instance" energy β¨
β¨ NAME β¨
struct sprd_mcdt_chan β this struct represents a single channel instance π
π SYNOPSIS π
struct sprd_mcdt_chan {
struct sprd_mcdt_dev *mcdt;
u8 id;
unsigned long fifo_phys;
enum sprd_mcdt_channel_type type;
enum sprd_mcdt_dma_chan dma_chan;
struct sprd_mcdt_chan_callback *cb;
bool dma_enable;
bool int_enable;
struct list_head list;
};
like, there it is. the whole vibe. copy it exactly or don't touch it at all, bestie π«Ά
π MEMBERS π
mcdtβ the mcdt controller, i.e. the main character the channel belongs to πidβ channel id. that's it. that's the whole blurb.fifo_physβ the channel fifo physical address, and it's the one used for DMA transfer πtypeβ channel typecbβ the channel fifo interrupt's callback interface, there to notify you about fifo events πdma_enableβ says whether we're using DMA mode to transfer data or notint_enableβ says whether we're using interrupt mode to notify users to read or write data manually πlistβ used to link into the global list π
lowkey note: dma_chan is sitting right there in the struct, but this page has no blurb for it, and I'm not about to make one up. fr fr. no invented lore on my watch π
π¦ NOTE π¦
bestie, hear me: users should not modify any members of this structure. not one. not even a little one. it's not yours, keep your hands off π β¨
π SEE ALSO π
- Kernel file
./sound/soc/sprd/sprd-mcdt.h
and that's the whole page, slay π this was served up from ./sound/soc/sprd, dated October 2026, and the little name on the door is struct sprd_mcdt_chan(9) β go read your headers, ily, bye ππΈ
π¦ 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