From 42502a496786c94c6f8c246eab08f3f0c8f7db49 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 14 May 2016 11:31:59 +0200 Subject: [PATCH] NetBSD: Make extended configuration space available Patch by Masanobu SAITOH . --- lib/nbsd-libpci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2