• Anton Vorontsov's avatar
    ahci: Get rid of host->iomap usage · d8993349
    Anton Vorontsov authored
    Currently the driver uses host->iomap to store all the iomapped BARs
    of a PCI device (while AHCI devices actually use just a single memory
    window).
    
    We're going to teach AHCI to work with non-PCI buses, so there are two
    options to make this work:
    
    1. "fake" host->iomap array for non-PCI devices, and place the needed
       address at iomap[AHCI_PCI_BAR];
    2. Get rid of host->iomap usage, instead introduce a private mmio
       field.
    
    This patch implements the second option.
    Signed-off-by: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
    Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
    d8993349
ahci.c 96.9 KB