STRUCT SG204X_MSI_CHIPDATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct sg204x_msi_chipdata(9) πŸ’…

ok so bestie, welcome to the Kernel API Manual, section 9 β€” we're talking about struct sg204x_msi_chipdata, which is literally the chip data for the SG204x MSI IRQ controller. no cap, that's the whole vibe. πŸ¦‹


✨ NAME ✨

struct sg204x_msi_chipdata β€” chip data for the SG204x MSI IRQ controller. that's it, that's the queen. πŸ‘‘


🌸 SYNOPSIS 🌸

struct sg204x_msi_chipdata {
    void __iomem                            *reg_clr;
    phys_addr_t doorbell_addr;
    u32 irq_first;
    u32 num_irqs;
    unsigned int                            irq_type;
    unsigned long                           *msi_map;
    struct mutex                            msi_map_lock;
    const struct sg204x_msi_chip_info       *chip_info;
 };

like… look at her. every field accounted for, not one dropped. we love a complete struct. 🫢


πŸŽ€ Members πŸŽ€

  • reg_clr β€” the clear reg, ok? go look at the TRM, 10.1.33, GP_INTR0_CLR. iykyk πŸ“–
  • doorbell_addr β€” this one's the doorbell πŸ””, see the TRM, 10.1.32, GP_INTR0_SET.
  • irq_first β€” the first vectors number that MSIs starts. that's where the party begins ✨
  • num_irqs β€” number of vectors for MSIs. like, how many seats are at the table πŸ’Ί
  • irq_type β€” the IRQ type for MSIs. the whole personality of the interrupt, honestly πŸ’…
  • msi_map β€” the mapping for allocated MSI vectors. ur lil map of who got which vector πŸ—ΊοΈ
  • msi_map_lock β€” the lock for msi_map. yes bestie, we lock it, we do NOT rawdog shared state πŸ”’
  • chip_info β€” chip specific infomations. (that's the original spelling and i'm keeping it fr fr, no editing the source material πŸ™ˆ)

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./drivers/irqchip/irq-sg2042-msi.c β€” go read it, it's giving main character energy πŸ”₯

ok that's the whole page, nothing skipped, nothing invented. if u use this struct wrong that's on u, not me 😭

sign-off time πŸŽ€ β€” this was ./drivers/irqchip, dated October 2026, from the Kernel API Manual, and the page is literally called struct sg204x_msi_chipdata(9). slay, bye πŸ’–βœ¨

πŸ“¦ where this page comes from