mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-13 07:31:07 +00:00
PCI: Add defines for bridge window indexing
[ Upstream commite4934832c5] include/linux/pci.h provides PCI_BRIDGE_{IO,MEM,PREF_MEM}_WINDOW defines, however, they're based on the resource array indexing in the pci_dev struct. The struct pci_bus also has pointers to those same resources but they start from zeroth index. Add PCI_BUS_BRIDGE_{IO,MEM,PREF_MEM}_WINDOW defines to get rid of literal indexing. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Link: https://patch.msgid.link/20250829131113.36754-12-ilpo.jarvinen@linux.intel.com Stable-dep-of:9abf79c8d7("PCI/ACPI: Restrict program_hpx_type2() to AER bits") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
f68179cc3d
commit
7d168610e7
2 changed files with 11 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue