aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2016-05-14 11:31:59 +0200
committerMartin Mares <mj@ucw.cz>2016-05-14 11:31:59 +0200
commit42502a496786c94c6f8c246eab08f3f0c8f7db49 (patch)
tree154ca755a66f50cc269953ae9baa9b7c0375ffb7
parent3d0a6d881571712f234a8b5733eaa194c50d7885 (diff)
downloadpciutils-42502a496786c94c6f8c246eab08f3f0c8f7db49.tar.gz
NetBSD: Make extended configuration space available
Patch by Masanobu SAITOH <msaitoh@execsw.org>.
-rw-r--r--lib/nbsd-libpci.c2
1 files changed, 1 insertions, 1 deletions
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);