• A
    libata: bitmask based pci init functions for one or two ports · 47a86593
    Alan Cox 提交于
    This redoes the n_ports logic I proposed before as a bitmask.
    ata_pci_init_native_mode is now used with a mask allowing for mixed mode
    stuff later on. ata_pci_init_legacy_port is called with port number and
    does one port now not two. Instead it is called twice by the ata init
    logic which cleans both of them up.
    
    There are stil limits in the original code left over
    
    - IRQ/port mapping for legacy mode should be arch specific values
    - You can have one legacy mode IDE adapter per PCI root bridge on some systems
    - Doesn't handle mixed mode devices yet (but is now a lot closer to it)
    47a86593
libata.h 18.7 KB