From: Martin Mares Date: Sat, 14 May 2016 09:31:59 +0000 (+0200) Subject: NetBSD: Make extended configuration space available X-Git-Tag: v3.5.0~7 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=42502a496786c94c6f8c246eab08f3f0c8f7db49;p=pciutils.git NetBSD: Make extended configuration space available Patch by Masanobu SAITOH . --- diff --git a/lib/nbsd-libpci.c b/lib/nbsd-libpci.c index 20d7616..f57d133 100644 --- a/lib/nbsd-libpci.c +++ b/lib/nbsd-libpci.c @@ -71,7 +71,7 @@ nbsd_read(struct pci_dev *d, int pos, byte *buf, int len) if (!(len == 1 || len == 2 || len == 4)) return pci_generic_block_read(d, pos, buf, len); - if (pos >= 256) + if (pos >= 4096) return 0; shift = 8*(pos % 4);