STRUCT IT87_GPIO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct it87_gpio(9) β€” the it87-specific GPIO chip, explained

okay so bestie, welcome to the Kernel API Manual ✨ this page is literally about struct it87_gpio, which is β€” say it with me β€” the it87-specific GPIO chip. that's the whole NAME section, no cap 🫢


✨ SYNOPSIS ✨

here's the whole vibe, character for character, don't touch anything:

struct it87_gpio {
    struct gpio_chip chip;
    spinlock_t lock;
    u16 io_base;
    u16 io_size;
    u8 output_base;
    u8 simple_base;
    u8 simple_size;
 };

πŸŽ€ Members πŸŽ€

each field is kind of a main character in its own right, so let's do a little roll call πŸ’–

  • chip β€” the underlying gpio_chip structure. the foundation, the blueprint, the whole reason we're here πŸ‘‘
  • lock β€” a lock to avoid races between operations. she's the bouncer at the club, keeping concurrent stuff from bumping into each other πŸš«πŸ’€
  • io_base β€” base address for gpio ports. the starting point, the origin story 🌸
  • io_size β€” size of the port rage starting from io_base. (yes, the manpage says "rage" β€” iconic typo, we keep it, we love it 😭πŸ”₯ and yeah it means the port range.)
  • output_base β€” Super I/O register address for the Output Enable register. that's where the "can this line actually output??" info lives πŸ¦‹
  • simple_base β€” Super I/O 'Simple I/O' Enable register. lowercase simple, capital I/O, we stan a specific naming convention πŸ’…
  • simple_size β€” Super IO 'Simple I/O' Enable register size. and bestie, this one is required, fr fr: it's needed because IT87xx chips might only provide Simple I/O switches on a subset of lines, whereas the others keep the same status all time. so like, not every line gets a switch, and the ones that don't just stay the same forever. iykyk 🧚⭐

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/gpio/gpio-it87.c β€” go read it, it's giving source of truth πŸ“–βœ¨

and that's the page, bestie! this lil slice of the docs lives under ./drivers/gpio and it's dated October 2026 β€” so mark your calendar, stay hydrated, and go poke some GPIO pins responsibly πŸ’œπŸŽ€πŸ«Ά

πŸ“¦ where this page comes from