STRUCT AIROHA_GPIO_CTRL(9)
π 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 associatedgpio_generic_chipinstance. 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
- 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