• Stefan Tauner's avatar
    Unify usbdev_status and pcidev_status into dev_entry · 4b24a2d7
    Stefan Tauner authored
    
    Once upon a time usbdev_status was created for the ft2232
    programmer. Its IDs are semantically different to pcidev_status
    because they indicate USB instead of PCI IDs, but apart from that
    both data structures are equal. This change makes life easier for
    everything involved in handling and printing the status of devices
    that is noted in those structures by combining them into dev_entry.
    
    It is still possible to distinguish between PCI and USB devices
    indirectly by using the struct programmer's type field.
    
    Also, add a programmer column to the PCI and USB devices lists.
    
    Corresponding to flashrom svn r1632.
    Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
    Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
    4b24a2d7
print.c 71.5 KB