]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/proc.c
pciids, not ids.
[pciutils.git] / lib / proc.c
index d4d427a38a6f9ba584f8707bd6432bceeb98bd96..6bcf44b0b830cf2792b2de285b9183ad6f0d6e71 100644 (file)
@@ -1,9 +1,9 @@
 /*
 /*
- *     $Id: proc.c,v 1.8 2000/04/21 11:58:00 mj Exp $
+ *     $Id: proc.c,v 1.10 2002/12/26 20:24:08 mj Exp $
  *
  *     The PCI Library -- Configuration Access via /proc/bus/pci
  *
  *
  *     The PCI Library -- Configuration Access via /proc/bus/pci
  *
- *     Copyright (c) 1997--1999 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
+ *     Copyright (c) 1997--1999 Martin Mares <mj@ucw.cz>
  *
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
  *
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
@@ -160,6 +160,7 @@ proc_scan(struct pci_access *a)
       d->func = PCI_FUNC(dfn & 0xff);
       d->vendor_id = vend >> 16U;
       d->device_id = vend & 0xffff;
       d->func = PCI_FUNC(dfn & 0xff);
       d->vendor_id = vend >> 16U;
       d->device_id = vend & 0xffff;
+      d->hdrtype = pci_read_byte(d, PCI_HEADER_TYPE);
       known = PCI_FILL_IDENT;
       if (!a->buscentric)
        {
       known = PCI_FILL_IDENT;
       if (!a->buscentric)
        {