• David Daney's avatar
    PCI: thunder: Add driver for ThunderX-pass{1,2} on-chip devices · 7b6e7ba8
    David Daney authored
    The cavium,pci-thunder-ecam devices are exactly ECAM-based PCI root
    complexes.  These root complexes (loosely referred to as ECAM units in the
    hardware manuals) are used to access the Thunder on-chip devices.  They
    are special in that all the BARs on devices behind these root complexes are
    at fixed addresses.
    
    Add a driver for these devices that synthesizes Enhanced Allocation (EA)
    capability entries for each BAR.
    
    Since this EA synthesis is needed for exactly two chip models, we can hard-
    code some assumptions about the device topology and the layout of the
    config space of specific DEVFNs in the driver.
    
    [bhelgaas: changelog, whitespace]
    Signed-off-by: default avatarDavid Daney <david.daney@cavium.com>
    Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
    Acked-by: default avatarRob Herring <robh@kernel.org>
    7b6e7ba8
pci-thunder-ecam.c 10.2 KB