STRUCT SPRD_MCDT_CHAN(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 type
  • cb β€” 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 not
  • int_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