diff options
author | Krzysztof Wilczyński <[email protected]> | 2020-11-29 23:07:41 +0000 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2020-12-10 14:56:03 -0600 |
commit | 63eab4944e4f33f69a6a72427490c4d5f8d3f072 (patch) | |
tree | 03698bcd3430b3887d0da61a3b9a86267fb3e7ea /drivers/pci/controller/vmd.c | |
parent | 31a8cdb7ef8042a63fcb2ae3856df28af15abc8f (diff) |
PCI: iproc: Convert to use the new ECAM constants
Change interface of the function iproc_pcie_map_ep_cfg_reg() so that use
of PCI_SLOT() and PCI_FUNC() macros and most of the local ECAM-specific
constants can be dropped, and the new PCIE_ECAM_OFFSET() macro can be
used instead. Use the ALIGN_DOWN() macro to ensure that PCI Express
ECAM offset is always 32 bit aligned.
Suggested-by: Bjorn Helgaas <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'drivers/pci/controller/vmd.c')
0 files changed, 0 insertions, 0 deletions