STRUCT HTC_EGPIO_PLATFORM_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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, either 16 or 32 bit. pick one, bestie, those are the options.
  • reg_width β€” the number of bits per register, either 8 or 16 bit. 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 of htc_egpio_chip descriptors. 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