STRUCT XSPI_PLATFORM_DATA(9)
okay bestie, welcome to the Kernel API Manual, section 9 β the manual name is struct xspi_platform_data(9), and yes, that's our main character today π
β¨
π NAME π
struct xspi_platform_data β platform data of the Xilinx SPI driver, and that's the whole vibe. no cap.
β¨ SYNOPSIS β¨
okay so the struct looks like this, and every field is staying exactly as written:
struct xspi_platform_data {
struct spi_board_info *devices;
u8 num_devices;
u8 num_chipselect;
u8 bits_per_word;
bool force_irq;
};
π«Ά Members π«Ά
devicesβ devices to add when the driver is probed. that's the list, bestie π«Άnum_devicesβ number of devices in thedevicesarray. literally the count for that array.num_chipselectβ number of chip select by the IP. yep, that's the IP's chip-select count, periodt.bits_per_wordβ number of bits per word. the bits-per-word situation, iconic.force_irqβ if set, forces QSPI transaction requirements. so when it's set, that's what it does π₯
πΈ SEE ALSO πΈ
- Kernel file
./include/linux/spi/xilinx_spi.hβ that's the one to peek at, bestie π¦
mwah π this page's source/version is ./include/linux/spi, it's dated October 2026, and the name on the tin is struct xspi_platform_data(9) π«Άβ¨
π¦ 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