STRUCT MT7621_PCIE_PORT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct mt7621_pcie_port(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’– today's main character is struct mt7621_pcie_port β€” it's literally the PCIe port information struct and it's giving "I hold everything together" energy πŸ‘‘


🌸 NAME 🌸

struct mt7621_pcie_port β€” PCIe port information πŸŽ€

like, all the deets about one port, in one struct. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

struct mt7621_pcie_port {
    void __iomem *base;
    struct list_head list;
    struct mt7621_pcie *pcie;
    struct clk *clk;
    struct phy *phy;
    struct reset_control *pcie_rst;
    struct gpio_desc *gpio_rst;
    u32 slot;
    bool enabled;
 };

(yeah there's a lil extra space before that closing brace in the original β€” we respect the canon πŸ’…)


🧚 MEMBERS 🧚

  • base β€” the I/O mapped register base ⭐ that's where the registers live, mapped in.
  • list β€” port list πŸ“‹ it's a struct list_head, so this port is one node in a linked list. iconic behavior.
  • pcie β€” pointer to PCIe host info πŸ”₯ points back at the struct mt7621_pcie that owns it.
  • clk β€” pointer to the port clock gate πŸ•°οΈ the clock, gated, as one does.
  • phy β€” pointer to PHY control block 🌈 the PHY stuff lives over here.
  • pcie_rst β€” pointer to port reset control πŸŽ€ reset control for the port, pointer style.
  • gpio_rst β€” gpio reset πŸ™ˆ a reset that comes from a GPIO, iykyk.
  • slot β€” port slot πŸ”’ it's a u32 and it's the port's slot number.
  • enabled β€” indicates if port is enabled πŸ’€ a bool, true/false, is the port on or not. vibe check for the port, basically.

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./drivers/pci/controller/pcie-mt7621.c
  • struct mt7621_pcie(9)

go read those next, bestie, they're the sequels 🫢


fr fr: every field above is exactly as written, and enabled is literally just "indicates if port is enabled" β€” that's the whole spec, don't come for me 😭

and that's the page! πŸŽ€ brought to you by the source path ./drivers/pci/controller and dated October 2026 β€” mwah, slay, periodt βœ¨πŸ‘‘πŸ’…

πŸ“¦ where this page comes from