STRUCT STEDMA40_CHAN_CFG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct stedma40_chan_cfg πŸ’–

okay bestie, welcome to the Kernel API Manual entry for struct stedma40_chan_cfg β€” yes that's the whole name, it's a mouthful, we cope 🫢


🌸 NAME 🌸

struct stedma40_chan_cfg β€” literally the Structure to be filled by client drivers. that's it, that's the vibe ✨


πŸŽ€ SYNOPSIS πŸŽ€

here's the whole struct, copy it exactly, no freestyling:

struct stedma40_chan_cfg {
    enum dma_transfer_direction              dir;
    bool high_priority;
    bool realtime;
    enum stedma40_mode                       mode;
    enum stedma40_mode_opt                   mode_opt;
    int dev_type;
    struct stedma40_half_channel_info        src_info;
    struct stedma40_half_channel_info        dst_info;
    bool use_fixed_channel;
    int phy_channel;
 };

look at her. main character struct energy πŸ‘‘


πŸ¦‹ Members πŸ¦‹

let's do a member-by-member vibe check, no cap πŸ’…

  • dir β€” the direction, and your options are: MEM 2 MEM, PERIPH 2 MEM, MEM 2 PERIPH, PERIPH 2 PERIPH. pick your fighter 🌈
  • high_priority β€” true if high-priority. simple as that, icon behavior ⭐
  • realtime β€” true if realtime mode is to be enabled. but listen β€” it's only available on DMA40 version 3+, i.e DB8500v2+. don't come for her if you're on older silicon 😭
  • mode β€” channel mode: physical, logical, or operation. choose wisely πŸŽ€
  • mode_opt β€” options for the chosen channel mode. the little add-ons, the accessories πŸ’œ
  • dev_type β€” src/dst device type (driver uses dir to figure out which). she multitasking fr fr πŸ”₯
  • src_info β€” Parameters for dst half channel. yes. that's what it says. we don't question the docs, we just report them πŸ™ˆ
  • dst_info β€” Parameters for dst half channel. this one's also the dst half channel info. iconic consistency πŸ’€
  • use_fixed_channel β€” if true, use physical channel specified by phy_channel. you're hand-picking, bestie πŸ‘‘
  • phy_channel β€” physical channel to use, only if use_fixed_channel is true. otherwise she's irrelevant, no shade 🌸

✨ Description ✨

so here's the tea: this structure has to be filled by the client drivers. it's not optional, it's not a suggestion, it's the assignment πŸ“

and the recommendation? do all dma configurations for clients in the machine. all of it. get it done in one place, keep it tidy, slay 🧚


πŸ”₯ SEE ALSO πŸ”₯

go read these next, iykyk:

  • Kernel file ./drivers/dma/ste_dma40.h struct
  • stedma40_half_channel_info(9)

fr fr read the header file before you touch anything, bestie. the struct definition is right there waiting for you 🫢

and that's the whole page! source/version lives at ./drivers/dma, dated October 2026, and the page itself is struct stedma40_chan_cfg(9) β€” bye babes, go fill your structs responsibly πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from