STRUCT IT87_GPIO(9)
π 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 underlyinggpio_chipstructure. 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 fromio_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
- 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