STRUCT IPROC_PCIE_IB_MAP(9)
β¨ struct iproc_pcie_ib_map(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's all about struct iproc_pcie_ib_map β and yes, that's the whole NAME section, it's literally just: the inbound mapping controller-specific parameters for iProc PCIe π no cap, that's the entire vibe of this struct.
It's giving "little config blob that tells the driver how your hardware's inbound windows actually work" β and honestly? iconic. π¦
πΈ SYNOPSIS πΈ
struct iproc_pcie_ib_map {
enum iproc_pcie_ib_map_type type;
unsigned int size_unit;
resource_size_t region_sizes[MAX_NUM_IB_REGION_SIZES];
unsigned int nr_sizes;
unsigned int nr_windows;
u16 imap_addr_offset;
u16 imap_window_offset;
};
like, that's the whole struct, copy-paste exact, do not touch a single character bestie π
π Members π
typeβ the inbound mapping region type π (spoiler: it's anenum iproc_pcie_ib_map_type)size_unitβ the size unit used for inbound mapping regions. could beSZ_1K,SZ_1M, orSZ_1Gβ pick your fighter βregion_sizesβ a whole lil list of the supported inbound mapping region sizes, expressed in KB, MB, or GB β which one depends on the size unit, iykyk πnr_sizesβ how many supported inbound mapping region sizes there are, i.e. the count forregion_sizesπ’nr_windowsβ how many inbound mapping windows the region supports πͺimap_addr_offsetβ the register offset between the upper and lower 32-bit IMAP address registers π§ (yes, u16, yes, it's fine)imap_window_offsetβ the register offset between each IMAP window πΈ
ngl the two offset fields are the ones people forget β they're u16, they're about IMAP registers, and one is "between upper and lower 32-bit address registers" while the other is "between each window." different things, bestie, don't mix them up π
π¦ SEE ALSO π¦
- Kernel file
./drivers/pci/controller/pcie-iproc.c struct iproc_pcie_ob_map(9)β the outbound sibling, go say hi πenum iproc_pcie_ib_map_type(9)β wheretypegets its whole personality from β¨
and that's the page, periodt π shoutout to ./drivers/pci/controller for holding it down β this one's dated October 2026, so mark your calendar 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