STRUCT PLX_DMA_DESC(9)
π struct plx_dma_desc(9) π
okay so bestie, welcome to the plx_dma_desc glow-up β¨ this is a page from the Kernel API Manual, and honestly? it's giving "small struct, big responsibilities" π
πΈ NAME πΈ
struct plx_dma_desc β the DMA descriptor format for the PLX PCI 9080, no cap π
π¦ SYNOPSIS π¦
struct plx_dma_desc {
__le32 pci_start_addr;
__le32 local_start_addr;
__le32 transfer_size;
__le32 next;
};
like, that's the whole struct and it's literally iconic π
β¨ Members β¨
pci_start_addrβ the PCI Bus address for the transfer (that'sDMAPADRfor you register girlies) πlocal_start_addrβ the Local Bus address for the transfer (akaDMALADR) πtransfer_sizeβ the transfer size in bytes, and heads up: the max is 8 MiB (this one'sDMASIZ) π₯nextβ the address of the next descriptor plus the flags (yep,DMADPR) π
π Description π
so this bad boy describes the format of a scatter-gather DMA descriptor for the PLX PCI 9080 π«Ά all of its members are raw, little-endian register values β and the DMA engine literally transfers them from local or PCI memory into the corresponding registers for the DMA channel. main character energy fr fr β¨
also!! the DMA descriptors must be aligned on a 16-byte boundary π don't skip that, it's not a vibe to mess up π
and bits 3:0 of next are where the flags live β they describe the address space of the next descriptor (local or PCI), an "end of chain" marker, an "interrupt on terminal count" bit, and a data transfer direction π« that's four whole moods packed into four little bits, iykyk π
π SEE ALSO π
- Kernel file
./drivers/comedi/drivers/plx9080.h plx9080_abort_dma(9)
π real talk: all those members are raw little-endian register values and the 16-byte alignment is mandatory β treat it like the group chat rules, bestie, no exceptions π
and that's the page!! found in ./drivers/comedi/drivers, this cutie is dated October 2026 and it's page struct plx_dma_desc(9) of the Kernel API Manual ππ slay, you're now educated, go forth and DMA responsibly π§ββοΈβ¨
π¦ 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