STRUCT MTK_PCIE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct mtk_pcie(9) β€” PCIe host information πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ this one's a struct, and she's literally the whole PCIe host situation for MediaTek, no cap 🫢


🌸 SYNOPSIS 🌸

struct mtk_pcie {
    struct device *dev;
    void __iomem *base;
    struct regmap *cfg;
    struct clk *free_ck;
    struct list_head ports;
    const struct mtk_pcie_soc *soc;
 };

like, that's the whole vibe right there πŸ‘‘ six fields, zero fluff, main character energy fr fr πŸ’…


πŸŽ€ Members πŸŽ€

  • dev β€” pointer to PCIe device πŸ¦‹ the device herself, iconic
  • base β€” IO mapped register base ✨ your IO-mapped register base, the literal foundation of the whole thing
  • cfg β€” IO mapped register map for PCIe config 🌸 IO-mapped register map for PCIe config β€” yes, that's a register map, not a base, don't mix them up bestie
  • free_ck β€” free-run reference clock πŸ’œ the free-run reference clock, just vibing and keeping time
  • ports β€” pointer to PCIe port information 🌈 pointer to the PCIe port info, lowkey where all the port lore lives
  • soc β€” pointer to SoC-dependent operations ⭐ pointer to the SoC-dependent ops, because every SoC wants to do its own thing, periodt

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/pci/controller/pcie-mediatek.c
  • enum mtk_pcie_quirks(9)
  • struct mtk_pcie_soc(9)
  • struct mtk_pcie_port(9)
  • mtk_pcie_retrain(9)
go read the source, iykyk πŸ™ˆ the file is right there and she ate

that's the whole page bestie, mwah πŸ’‹ source/version lives at ./drivers/pci/controller and this one's stamped October 2026 β€” struct mtk_pcie(9), signing off πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from