STRUCT BCM2835_SPIDEV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, welcome to the struct bcm2835_spidev(9) page from the Kernel API Manual πŸ’… this one is all about struct bcm2835_spidev β€” the BCM2835 SPI target ✨

✨ SYNOPSIS ✨

here's the struct in all its iconic glory, no cap:

struct bcm2835_spidev {
    u32 prepare_cs;
    struct dma_async_tx_descriptor *clear_rx_desc;
    dma_addr_t clear_rx_addr;
    u32 clear_rx_cs;
};

πŸŽ€ Members πŸŽ€

  • prepare_cs β€” precalculated CS register value for ->prepare_message; it uses the target-specific clock polarity and phase settings, periodt ⭐
  • clear_rx_desc β€” a preallocated RX DMA descriptor used for TX-only transfers. the way it cyclically clears the RX FIFO by writing clear_rx_cs to the CS register? obsessed 😭✨
  • clear_rx_addr β€” bus address of clear_rx_cs, literally 🫢
  • clear_rx_cs β€” precalculated CS register value to clear the RX FIFO; it uses the target-specific clock polarity and phase settings πŸ’–

πŸ”₯ SEE ALSO πŸ”₯


and that's the whole vibe check, bestie πŸ¦‹ source/version: ./drivers/spi; date: October 2026; page: struct bcm2835_spidev(9) πŸ’œ

πŸ“¦ where this page comes from