STRUCT SPI_AVMM_BRIDGE(9)
π struct spi_avmm_bridge β SPI slave to AVMM bus master bridge
okay so picture this: you're in the Kernel API Manual (yes bestie, that's the manual name, we're fancy here), and this little struct is the whole main character. it's the bridge that lets an SPI slave talk to an AVMM bus master. slay.
β¨ SYNOPSIS β¨
struct spi_avmm_bridge {
struct spi_device *spi;
unsigned char word_len;
unsigned int trans_len;
unsigned int phy_len;
char trans_buf[TRANS_BUF_SIZE];
char phy_buf[PHY_BUF_SIZE];
void (*swap_words)(void *buf, unsigned int len);
};
that's the whole vibe right there π«Ά
π Members π
spiβ the spi slave that's lowkey partnered up with this bridge. they're a thing.word_lenβ how many bytes make up one word for the spi transfer. small but mighty.trans_lenβ the length of the valid data chillin' intrans_buf. like, how much of the buffer is actually real.phy_lenβ same energy, but forphy_buf: the length of the valid data in there.trans_bufβ the bridge buffer holding the transaction layer data. it's giving "the important stuff" energy.phy_bufβ the bridge buffer for the physical layer data. also iconic, different layer.swap_wordsβ the word swapping callback for the phy data. and heads up π it'sNULLif it's not needed. no callback, no problem.
π¦ Description π¦
so here's the tea β β when a device's registers live out there in AVMM bus address space, the driver can't just waltz in and grab them. nope. it's gotta send formatted requests to the SPI slave to AVMM bus master bridge, and that's how the register access actually happens. the bridge is the middleman and honestly? it ate. π
π SEE ALSO π
- Kernel file
./drivers/base/regmap/regmap-spi-avmm.cβ go read it, iykyk π
and that's the whole page, bestie! this lil gem comes from the fine folks over at ./drivers/base/regmap, dated October 2026, in the Kernel API Manual β periodt. πβ¨π
π¦ 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