STRUCT GPI_SPI_CONFIG(9)
okay bestie, welcome to the struct gpi_spi_config(9) page from the Kernel API Manual π this one is literally the spi config for a peripheral struct, and it's giving kernel struct realness. we're walking every member like a fit check, no skips, periodt. π
π NAME π
struct gpi_spi_config β spi config for peripheral, no cap. π
β¨ SYNOPSIS β¨
here's the whole struct layout, copied exactly so you can trust it:
struct gpi_spi_config {
u8 set_config;
u8 loopback_en;
u8 clock_pol_high;
u8 data_pol_high;
u8 pack_en;
u8 word_len;
u8 fragmentation;
u8 cs;
u32 clk_div;
u32 clk_src;
enum spi_transfer_cmd cmd;
u32 rx_len;
};
π«Ά Members π«Ά
every field, in order, with zero skips:
set_configβ sets the peripheral config. β¨loopback_enβ spi loopback enable when it's set. πclock_pol_highβ clock polarity. π°οΈdata_pol_highβ data polarity. πpack_enβ processes tx/rx buffers as packed. π¦word_lenβ spi word length. π€fragmentationβ keeps CS asserted at the end of the sequence. πcsβ chip select toggle. πclk_divβ source clock divider. βclk_srcβ serial clock. β°cmdβ spi cmd. π«‘rx_lenβ receive length for buffer. π₯
π SEE ALSO π
Kernel file ./include/linux/dma/qcom-gpi-dma.h, enum spi_transfer_cmd(9), and struct gpi_i2c_config(9) β go read those too, bestie π«Ά
source/version line is ./include/linux/dma, the page is dated October 2026, and it's all struct gpi_spi_config(9) β bye bestie πβ¨
π¦ 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