STRUCT HTC_EGPIO_PLATFORM_DATA(9)
πΈ htc_egpio_platform_data β struct htc_egpio_platform_data(9) πΈ
okay bestie, welcome to the Kernel API Manual β¨ this one's a little struct that's just, like, totally described by the arch. no cap β the NAME literally says "description provided by the arch," which is giving "the arch knows, not me" π
β¨ NAME β¨
struct htc_egpio_platform_data β description provided by the arch π«Ά
π¦ SYNOPSIS π¦
struct htc_egpio_platform_data {
int bus_width;
int reg_width;
int irq_base;
int num_irqs;
int invert_acks;
int ack_register;
struct htc_egpio_chip *chip;
int num_chips;
};
π Members π
okay so this is the part where we meet every single field, and yes there are eight of them, we're not skipping a single one π€
bus_widthβ the alignment of the registers, either16or32bit. pick one, bestie, those are the options.reg_widthβ the number of bits per register, either8or16bit. again: two choices, that's it.irq_baseβ the beginning of the available IRQs (eg,IRQ_BOARD_START) β like where the IRQ party starts.num_irqsβ the number of irqs π₯invert_acksβ set this if the chip requires writing'0'to ack an irq, instead of'1'. so it's the "flip the ack" switch, basically the icon of doing things backwards πack_registerβ the location of the irq/ack register πchipβ pointer to an array ofhtc_egpio_chipdescriptors. like, a whole squad of descriptors πnum_chipsβ the number of egpio chip descriptors. count your chips, bestie π
π SEE ALSO π
- Kernel file
./include/linux/platform_data/gpio-htc-egpio.hπ struct htc_egpio_chip(9)β go read about the chip struct next, iykyk π
fr fr, that's the whole struct. no hidden fields, no plot twists. just vibes and register widths β¨
and that's a wrap, bestie!! this page came from source ./include/linux/platform_data and it's dated October 2026 ποΈ slay, go build some kernels π
π«Ά
π¦ 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