STRUCT OCELOT_DDATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct ocelot_ddata(9) πŸ¦‹

okay bestie, welcome to the Kernel API Manual πŸ’– this page is all about struct ocelot_ddata, aka the private data for an external Ocelot chip. it’s giving very specific little struct energy, and honestly? we’re obsessed ✨


πŸ’– NAME πŸ’–

struct ocelot_ddata β€” private data for an external Ocelot chip. that’s the whole name section, bestie, short and iconic πŸŽ€


✨ SYNOPSIS ✨

struct ocelot_ddata {
    struct regmap *gcb_regmap;
    struct regmap *cpuorg_regmap;
    int spi_padding_bytes;
    void *dummy_buf;
 };

πŸ‘‘ Members πŸ‘‘

  • gcb_regmap β€” this is the General Configuration Block regmap, bestie. it’s used for operations like chip reset. very main character of it πŸ’…
  • cpuorg_regmap β€” the CPU Device Origin Block regmap. used for operations like SPI bus configuration. slay πŸ”₯
  • spi_padding_bytes β€” the number of padding bytes that must be thrown out before read data gets returned. this is calculated during initialization based on bus speed, no cap 🌸
  • dummy_buf β€” a zero-filled buffer of spi_padding_bytes size. it’s literally the dummy bytes that will be sent out between the address and data of a SPI read operation 🫢

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/mfd/ocelot.h β€” go look, iykyk πŸ‘€

okay that’s the whole vibe πŸ’œ this page came from ./drivers/mfd, dated October 2026, and it’s the struct ocelot_ddata(9) manual. mwah, go forth and configure responsibly πŸ§šβ€β™€οΈπŸŽ€

πŸ“¦ where this page comes from