STRUCT WINBOND_GPIO_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct winbond_gpio_info(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ β€” this one's all about struct winbond_gpio_info, which is literally the whole info packet for one particular GPIO port (a device). yes. one struct, one port, one vibe. 🌸


πŸŽ€ NAME πŸŽ€

struct winbond_gpio_info β€” all the deets about a particular GPIO port (device). it's giving "knows everything about its one port" energy and honestly? iconic. πŸ‘‘


✨ SYNOPSIS ✨

struct winbond_gpio_info {
    u8 dev;
    u8 enablereg;
    u8 enablebit;
    u8 outputreg;
    u8 outputppbit;
    u8 ioreg;
    u8 invreg;
    u8 datareg;
    struct winbond_gpio_port_conflict conflict;
 };

like, look at it. so many u8s. so organized. we love a structured queen. πŸ’…


πŸ¦‹ Members πŸ¦‹

  • dev β€” the Super I/O logical device number for all the registers listed down below. like the address of the whole squad πŸ’œ
  • enablereg β€” the register number that holds the port enable bit
  • enablebit β€” and this is which bit in there actually turns the port on, index-style ✨
  • outputreg β€” register number for the output driver mode bit
  • outputppbit β€” index of the push-pull output driver mode bit, slay 🫢
  • ioreg β€” the data direction register number (in or out, bestie, gotta know)
  • invreg β€” the pin data inversion register number
  • datareg β€” the pin data register number, i.e. the actual data lives here πŸ”₯
  • conflict β€” a description of a device that possibly conflicts with this port. so like, the messy ex of this port πŸ’€ pay attention to this one fr fr

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/gpio/gpio-winbond.c
  • struct winbond_gpio_port_conflict(9)

lowkey a reminder bestie: conflict is only a possible conflict, not a guaranteed beef. no cap, read the other struct before you panic πŸ™ˆ

okay that's the whole page, mwah πŸ’‹ β€” this was the Kernel API Manual, from ./drivers/gpio, dated October 2026, and it was a whole moment. go forth and GPIO responsibly, bestie πŸ§šβ­πŸ“

πŸ“¦ where this page comes from