ENUM RZG3S_PCIE_CONTROLLER_ID(9)
π enum rzg3s_pcie_controller_id π
okay so bestie, this page lives in the Kernel API Manual and it's giving "tiny header file that punches way above its weight" energy. It's literally just an enum β enum rzg3s_pcie_controller_id β and its whole personality is naming the RZ/G3S PCIe controller IDs so nobody has to write cursed magic numbers in the driver. no cap. β¨
πΈ SYNOPSIS πΈ
like, this is the whole thing, she's small but she's iconic:
enum rzg3s_pcie_controller_id {
RZG3S_PCIE_CONTROLLER_ID_0 ,
RZG3S_PCIE_CONTROLLER_ID_1 ,
RZG3S_PCIE_CONTROLLER_ID_MAX
};
yes the trailing spaces and the blank line before the closing brace are canon, we don't touch the source π
π Constants π
bestie these are the three members, that's the whole squad:
RZG3S_PCIE_CONTROLLER_ID_0β PCIe controller 0 π₯ the main character, first in lineRZG3S_PCIE_CONTROLLER_ID_1β PCIe controller 1 π the second one, also valid, also slayingRZG3S_PCIE_CONTROLLER_ID_MAXβ Max PCIe controllers π the sentinel bestie at the end, it's giving "this is how many we got", not an actual controller, ok? do not index with this one π
fr fr, RZG3S_PCIE_CONTROLLER_ID_MAX is the upper boundary vibe, not a real controller ID. treat it like the fence at the end of the garden, not a flowerbed.
π¦ SEE ALSO π¦
the whole friend group, all defined in the kernel file ./drivers/pci/controller/pcie-rzg3s-host.c as an enum:
rzg3s_sysc_link_mode(9)struct rzg3s_sysc_function(9)enum rzg3s_sysc_func_id(9)struct rzg3s_sysc_info(9)struct rzg3s_sysc(9)struct rzg3s_pcie_msi(9)struct rzg3s_pcie_soc_data(9)struct rzg3s_pcie_port(9)struct rzg3s_pcie_host(9)
go read them, iykyk π
okay that's the whole page, she's short and she ate π this came out of ./drivers/pci/controller, October 2026 era, filed under the Kernel API Manual β and you got the whole enum rzg3s_pcie_controller_id(9) tea in one sitting. mwah π π§ββοΈ
π¦ 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