Thu Jan 20 11:08:32 2000 Martin Mares <mj@albireo.ucw.cz>
+ * lspci.c (scan_device): Fixed bug in reading of cardbus extensions.
+
* lib/proc.c: pread/pwrite fixed again, this time on libc5 :(
* lspci.c (format_agp_rate): Better formatting of AGP rates.
/*
- * $Id: lspci.c,v 1.33 2000/01/20 21:15:41 mj Exp $
+ * $Id: lspci.c,v 1.34 2000/01/20 21:23:14 mj Exp $
*
* Linux PCI Utilities -- List All PCI Devices
*
if (how_much < 128 && (d->config[PCI_HEADER_TYPE] & 0x7f) == PCI_HEADER_TYPE_CARDBUS)
{
/* For cardbus bridges, we need to fetch 64 bytes more to get the full standard header... */
- if (!pci_read_block(p, 0, d->config+64, 64))
+ if (!pci_read_block(p, 64, d->config+64, 64))
die("Unable to read cardbus bridge extension data.");
how_much = 128;
}