STRUCT SPMI_PMIC_ARB(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct spmi_pmic_arb(9) πŸ¦‹

okay bestie, welcome to the Kernel API Manual β€” this is the page for struct spmi_pmic_arb, literally the SPMI PMIC Arbiter object ✨ she's the main character of the arbiter world, no cap.


🌸 NAME 🌸

struct spmi_pmic_arb β€” the SPMI PMIC Arbiter object πŸ’… that's it, that's the name, she's iconic


✨ SYNOPSIS ✨

struct spmi_pmic_arb {
    void __iomem            *rd_base;
    void __iomem            *wr_base;
    void __iomem            *core;
    resource_size_t core_size;
    void __iomem            *apid_map;
    u8 channel;
    u8 ee;
    const struct pmic_arb_ver_ops *ver_ops;
    int max_periphs;
    struct spmi_pmic_arb_bus *buses[PMIC_ARB_MAX_BUSES];
    int buses_available;
 };

like, look at her. she's got range 🫢


πŸŽ€ Members πŸŽ€

  • rd_base β€” the read register base, and where it lives is giving version dependent ngl: on v1 it's the "core" register base, on v2 it's the "observer" register base off DT 🌈
  • wr_base β€” the write register base, same situation fr: on v1 it's the "core" register base, on v2 it's the "chnls" register base off DT πŸ’œ
  • core β€” the core register base, but like… for v2 and above only (see above, bestie, I literally just told you πŸ‘€)
  • core_size β€” the size of that core register base ⭐
  • apid_map β€” on v8, the APID mapping table register base πŸ”₯
  • channel β€” the execution environment channel to use for accesses, iykyk
  • ee β€” the current Execution Environment πŸ’«
  • ver_ops β€” the version dependent operations, so she knows how to act depending on what version she's dealing with 🧚
  • max_periphs β€” Number of elements in apid_data[] πŸ“
  • buses β€” per arbiter buses instances, like one for each, okay πŸ’–
  • buses_available β€” number of buses registered πŸ‘‘

πŸ”₯ SEE ALSO πŸ”₯

go read those too, bestie, they're all part of the same little friend group 🫢


πŸ’€ real talk: this page is from ./drivers/spmi and it's dated October 2026 β€” so like, from the future?? slay. anyway that's the whole struct, you ate that, periodt πŸ’…βœ¨
πŸ“¦ where this page comes from