STRUCT MT7621_PCIE_PORT(9)
β¨ 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 astruct list_head, so this port is one node in a linked list. iconic behavior.pcieβ pointer to PCIe host info π₯ points back at thestruct mt7621_pciethat 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 au32and it's the port's slot number.enabledβ indicates if port is enabled π abool, 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms