STRUCT ZYNQ_QSPI(9)
π struct zynq_qspi(9) β bestie edition
okay so this is a page straight out of the Kernel API Manual, and it's literally the blueprint for a QSPI driver instance. no cap, it's just the struct definition, but it's iconic.
β¨ NAME β¨
struct zynq_qspi β defines the qspi driver instance. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
here's the shape of it, copied exactly so you don't have to squint at a screenshot:
struct zynq_qspi {
struct device *dev;
void __iomem *regs;
struct clk *refclk;
struct clk *pclk;
int irq;
u8 *txbuf;
u8 *rxbuf;
int tx_bytes;
int rx_bytes;
struct completion data_completion;
};
π¦ Members π¦
okay bestie, field-by-field tour, let's go π
devβ pointer to this device's information. like, whose device is this even? this pointer knows πregsβ the virtual address of the QSPI controller registers. virtual, not physical, don't get it twisted β¨refclkβ pointer to the peripheral clock. it's giving timing, it's giving rhythm πΊpclkβ pointer to the APB clock. yes, there are two clocks, and yes, they're both important π«Άirqβ the IRQ number. interrupts said hi πtxbufβ pointer to the TX buffer. where the outgoing gossip lives π€rxbufβ pointer to the RX buffer. where the incoming gossip lands π₯tx_bytesβ number of bytes left to transfer. left, as in still pending, not total, okay? important πrx_bytesβ number of bytes left to receive. same deal, still-on-the-way energy βdata_completionβ a completion structure. it's literally there to tell you when the data situation is handled π
π₯ SEE ALSO π₯
- Kernel file
./drivers/spi/spi-zynq-qspi.c zynq_qspi_init_hw(9)zynq_qspi_rxfifo_op(9)zynq_qspi_txfifo_op(9)zynq_qspi_chipselect(9)zynq_qspi_config_op(9)zynq_qspi_setup_op(9)zynq_qspi_write_op(9)zynq_qspi_read_op(9)zynq_qspi_irq(9)zynq_qspi_exec_mem_op(9)zynq_qspi_probe(9)zynq_qspi_remove(9)
lowkey the whole friend group is in that list β go read them next, iykyk π
and that's the page, bestie!! π§ this one came from ./drivers/spi, dated October 2026, filed under struct zynq_qspi(9) in the Kernel API Manual β go off and write something slay with it π
β¨π
π¦ 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