• Bjorn Helgaas's avatar
    PCI: Expand Enhanced Allocation BAR output · 597becb4
    Bjorn Helgaas authored
    An Enhanced Allocation Capability entry with BEI 0 fills in
    dev->resource[0] just like a real BAR 0 would, but non-EA experts might not
    connect "EA - BEI 0" with BAR 0.
    
    Decode the EA jargon a little bit, e.g., change this:
    
      pci 0002:01:00.0: EA - BEI  0, Prop 0x00: [mem 0x84300000-0x84303fff]
    
    to this:
    
      pci 0002:01:00.0: BAR 0: [mem 0x84300000-0x84303fff] (from Enhanced Allocation, properties 0x00)
    Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
    597becb4
pci.c 124 KB