STRUCT AIROHA_GPIO_CTRL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so bestie, welcome to the Kernel API Manual ✨ and to the single most lowkey iconic struct in the Airoha GPIO driver world β€” this one's literally the driver data. no cap. 🫢


🌸 NAME 🌸

struct airoha_gpio_ctrl β€” the Airoha GPIO driver data. that's it, that's the whole personality. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

here's the shape of it, copy-pasted straight from the source because we do not freestyle struct definitions in this house:

struct airoha_gpio_ctrl {
    struct gpio_generic_chip gen_gc;
    void __iomem *data;
    void __iomem *dir[2];
    void __iomem *output;
 };

yes the vibes are immaculate, yes the braces are aligned exactly like that, moving on. πŸ¦‹


🧚 Members 🧚

  • gen_gc β€” the associated gpio_generic_chip instance. like, the friend it brings everywhere. πŸ‘‘
  • data β€” the data register. main character register fr fr. ⭐
  • dir β€” the direction registers, and she's an array of two because the pins had to be split up:
    • [0] β€” the direction register for the lower 16 pins. πŸ’œ
    • [1] β€” the direction register for the higher 16 pins. πŸ’œ
  • output β€” the output enable register. the bouncer at the door, deciding who gets to output tonight. πŸ”₯

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/gpio/gpio-en7523.c β€” go read the source bestie, it's giving ✨ context ✨

kiss kiss, this page came to you from ./drivers/gpio, dated October 2026, and it's still titled struct airoha_gpio_ctrl(9) πŸ’• iykyk πŸŽ€

πŸ“¦ where this page comes from