STRUCT XILINX_CPM_VARIANT(9)
π struct xilinx_cpm_variant β CPM variant information π
okay so bestie, this is a page from the Kernel API Manual (section 9, the fun one) and it's all about struct xilinx_cpm_variant. it's giving "small struct, big responsibilities" and honestly? we stan. πΈ
β¨ SYNOPSIS β¨
struct xilinx_cpm_variant {
enum xilinx_cpm_version version;
u32 ir_status;
u32 ir_enable;
u32 ir_misc_value;
};
like, that's it. four fields. no cap. tiny little icon but she's doing the most for the Xilinx CPM PCIe controller. π
π¦ Members π¦
versionβ the CPM version, literally. it's anenum xilinx_cpm_version, so it knows what flavour of CPM it's dealing with πir_statusβ the offset for the error interrupt status register. it's au32, it's a register offset, it's that girl. π₯ir_enableβ the offset for the CPM5 local error interrupt enable register. yes specifically CPM5, yes specifically the local error interrupt enable one, don't get it twisted bestie πir_misc_valueβ a bitmask for the miscellaneous interrupt status. bitmask!! we love a bitmask π«Ά
π SEE ALSO π
the kernel file lives at ./drivers/pci/controller/pcie-xilinx-cpm.c β that's the main character energy right there, go read it.
and the whole squad, in no particular order (okay fine, this order):
struct xilinx_cpm_pcie(9)xilinx_cpm_pcie_intx_map(9)xilinx_cpm_pcie_init_irq_domain(9)xilinx_cpm_pcie_init_port(9)xilinx_cpm_pcie_parse_dt(9)xilinx_cpm_pcie_probe(9)
fr fr, if you're touching this struct you're gonna want all of those. it's a whole ecosystem π
ngl there are no options, no exit statuses, and literally zero signals on this page β it's a struct page, so the only vibe check here is "did you set your fields right". keep every offset exact or it will absolutely not slay. π
mwah, that's the whole page π β brought to you by ./drivers/pci/controller, dated October 2026, and signed off with a cheeky little struct xilinx_cpm_variant(9) in the corner. go be iconic with your PCIe controller, bestie πβ¨
π¦ 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