]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
fbsd-device: Make extended configuration space available.
authorImre Vadász <imrevdsz@gmail.com>
Fri, 14 Jul 2017 21:13:35 +0000 (23:13 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 17 Nov 2017 12:56:18 +0000 (13:56 +0100)
Signed-off-by: Imre Vadász <imrevdsz@gmail.com>
lib/fbsd-device.c

index 398fe680aacd60c82b41aa77080b9347f14bf296..7cebb0dbf8f5b56e7c878b13ef496f6a4cb3616e 100644 (file)
@@ -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__)