ENUM RZG3S_PCIE_CONTROLLER_ID(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 line
  • RZG3S_PCIE_CONTROLLER_ID_1 β€” PCIe controller 1 🌈 the second one, also valid, also slaying
  • RZG3S_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