diff options
author | Imre Vadász <imrevdsz@gmail.com> | 2017-07-14 23:13:35 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2017-11-17 13:56:18 +0100 |
commit | 7663958f7515a26d08ec6a5b22ce0de931d2c570 (patch) | |
tree | e7b92e5464d2a2c8e522401d7127291dc7ad6217 | |
parent | f4dbe10668fb96148b22dcb6ed533d385edaf7d7 (diff) | |
download | pciutils-7663958f7515a26d08ec6a5b22ce0de931d2c570.tar.gz |
fbsd-device: Make extended configuration space available.
Signed-off-by: Imre Vadász <imrevdsz@gmail.com>
-rw-r--r-- | lib/fbsd-device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fbsd-device.c b/lib/fbsd-device.c index 398fe68..7cebb0d 100644 --- a/lib/fbsd-device.c +++ b/lib/fbsd-device.c @@ -74,7 +74,7 @@ fbsd_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; #if __FreeBSD_version >= 700053 || defined(__DragonFly__) @@ -117,7 +117,7 @@ fbsd_write(struct pci_dev *d, int pos, byte *buf, int len) if (!(len == 1 || len == 2 || len == 4)) return pci_generic_block_write(d, pos, buf, len); - if (pos >= 256) + if (pos >= 4096) return 0; #if __FreeBSD_version >= 700053 || defined(__DragonFly__) |