summaryrefslogtreecommitdiff
path: root/sysutils/pciutils
diff options
context:
space:
mode:
authormsaitoh <msaitoh>2015-11-12 08:54:52 +0000
committermsaitoh <msaitoh>2015-11-12 08:54:52 +0000
commit5a3d313552bfc489e996473c12e9b59795c93ace (patch)
treefbfdcfe7cadb72a5a8043348fe081f024712fe96 /sysutils/pciutils
parent4677fd8aa2fbf67d72c90d6d0ef228a9eda0e21f (diff)
downloadpkgsrc-5a3d313552bfc489e996473c12e9b59795c93ace.tar.gz
Allow accessing the extended configuration space. Tested on amd64-current
(support the extended configuration space) and i386 netbsd-7(not support).
Diffstat (limited to 'sysutils/pciutils')
-rw-r--r--sysutils/pciutils/distinfo3
-rw-r--r--sysutils/pciutils/patches/patch-lib_nbsd_libpci.c11
2 files changed, 13 insertions, 1 deletions
diff --git a/sysutils/pciutils/distinfo b/sysutils/pciutils/distinfo
index c2a7e7c316e..1d35ec22342 100644
--- a/sysutils/pciutils/distinfo
+++ b/sysutils/pciutils/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2015/11/04 01:32:25 agc Exp $
+$NetBSD: distinfo,v 1.18 2015/11/12 08:54:52 msaitoh Exp $
SHA1 (pciutils-3.3.0.tar.gz) = cb1ad848c3a4384a43b5e516fb72e0aa6eb3d380
RMD160 (pciutils-3.3.0.tar.gz) = 0a48d5327279a8eb1ba7e85740b6d9da01dc5525
@@ -8,3 +8,4 @@ SHA1 (patch-aa) = 7be11cd0eff91f6fe51d795fa7b9e05fdefb038d
SHA1 (patch-ab) = 8837e3a6e6c87802614b50ac511d1c1b7375b908
SHA1 (patch-ac) = 4b90e99c051391b9cd3a6c1f5781f41b4a855c29
SHA1 (patch-ad) = bfe9069e96fd46798afec73c93ad71db3a0e0e37
+SHA1 (patch-lib_nbsd_libpci.c) = 76e00bf7fe0e9e3319603ed55aaff3cf6ff6464a
diff --git a/sysutils/pciutils/patches/patch-lib_nbsd_libpci.c b/sysutils/pciutils/patches/patch-lib_nbsd_libpci.c
new file mode 100644
index 00000000000..896103068e9
--- /dev/null
+++ b/sysutils/pciutils/patches/patch-lib_nbsd_libpci.c
@@ -0,0 +1,11 @@
+--- lib/nbsd-libpci.c.orig 2011-01-08 06:04:28.000000000 +0900
++++ lib/nbsd-libpci.c 2015-11-12 17:45:08.000000000 +0900
+@@ -71,7 +71,7 @@ nbsd_read(struct pci_dev *d, int pos, by
+ 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);