STRUCT MTK_HSDMA_RING(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, you opened the <pink>struct mtk_hsdma_ring(9)</pink> page from the <purple>Kernel API Manual</purple> β€” and it's literally the struct that holds info describing the underlying ring space πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

the whole struct, no cap:

       struct mtk_hsdma_ring {
           struct mtk_hsdma_pdesc *txd;
           struct mtk_hsdma_pdesc *rxd;
           struct mtk_hsdma_cb *cb;
           dma_addr_t tphys;
           dma_addr_t rphys;
           u16 cur_tptr;
           u16 cur_rptr;
        };

πŸ‘‘ Members πŸ‘‘

  • txd β€” the descriptor TX ring, and it describes DMA source information ✨
  • rxd β€” the descriptor RX ring, and it describes DMA destination information πŸ’–
  • cb β€” the extra information pointed at by the RX ring πŸŽ€
  • tphys β€” the physical addr of the TX ring πŸ¦‹
  • rphys β€” the physical addr of the RX ring 🌸
  • cur_tptr β€” pointer to the next free descriptor used by the host πŸ‘‘
  • cur_rptr β€” pointer to the last done descriptor by the device πŸ’…

🌈 SEE ALSO 🌈

fr fr, go peek at these too, iykyk:

  • Kernel file ./drivers/dma/mediatek/mtk-hsdma.c
  • struct mtk_hsdma_pdesc(9)
  • struct mtk_hsdma_vdesc(9)
  • struct mtk_hsdma_cb(9)
  • struct mtk_hsdma_pchan(9)
  • struct mtk_hsdma_vchan(9)
  • struct mtk_hsdma_soc(9)
  • struct mtk_hsdma_device(9)

mwah πŸ’‹ β€” source/version: ./drivers/dma/mediatek, date: October 2026, page: struct mtk_hsdma_ring(9). byeee 🫢

πŸ“¦ where this page comes from