Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src introduce a new pci_drvname(3) to libpci. implement it in t...
details: https://anonhg.NetBSD.org/src/rev/42a4ddb3a3e4
branches: trunk
changeset: 330895:42a4ddb3a3e4
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Jul 25 01:38:26 2014 +0000
description:
introduce a new pci_drvname(3) to libpci. implement it in the backend
via PCI_IOC_DRVNAME.
update manual and set lists (and remove a couple of doubled entries.)o
this will be used in libpciaccess() to implement the has_kernel_driver()
method.
diffstat:
distrib/sets/lists/base/ad.arm | 8 +--
distrib/sets/lists/base/ad.mips | 6 +-
distrib/sets/lists/base/ad.powerpc | 4 +-
distrib/sets/lists/base/md.amd64 | 4 +-
distrib/sets/lists/base/md.sparc64 | 4 +-
distrib/sets/lists/base/shl.mi | 4 +-
distrib/sets/lists/debug/ad.arm | 4 +-
distrib/sets/lists/debug/ad.mips | 6 +-
distrib/sets/lists/debug/ad.powerpc | 4 +-
distrib/sets/lists/debug/md.amd64 | 4 +-
distrib/sets/lists/debug/md.sparc64 | 4 +-
distrib/sets/lists/debug/shl.mi | 4 +-
lib/libpci/Makefile | 4 +-
lib/libpci/pci.3 | 26 +++++++++++++-
lib/libpci/pci.h | 5 ++-
lib/libpci/pci_drvname.c | 62 +++++++++++++++++++++++++++++++++++++
lib/libpci/shlib_version | 4 +-
sys/dev/pci/pci_usrreq.c | 17 ++++++++-
sys/dev/pci/pciio.h | 19 ++++++++++-
19 files changed, 153 insertions(+), 40 deletions(-)
diffs (truncated from 501 to 300 lines):
diff -r 9517fe38da0c -r 42a4ddb3a3e4 distrib/sets/lists/base/ad.arm
--- a/distrib/sets/lists/base/ad.arm Fri Jul 25 01:05:00 2014 +0000
+++ b/distrib/sets/lists/base/ad.arm Fri Jul 25 01:38:26 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ad.arm,v 1.49 2014/07/23 02:42:56 lneto Exp $
+# $NetBSD: ad.arm,v 1.50 2014/07/25 01:38:27 mrg Exp $
./lib/oabi base-compat-shlib compat
./lib/oabi/npf base-npf-shlib compat
./lib/oabi/npf/ext_log.so base-npf-shlib compat,pic
@@ -170,8 +170,8 @@
./usr/lib/oabi/libisccc.so.8 base-compat-shlib compat,pic
./usr/lib/oabi/libisccc.so.8.0 base-compat-shlib compat,pic
./usr/lib/oabi/libisccfg.so.8 base-compat-shlib compat,pic
+./usr/lib/oabi/libisccfg.so.8.0 base-compat-shlib obsolete
./usr/lib/oabi/libisccfg.so.8.1 base-compat-shlib compat,pic
-./usr/lib/oabi/libisccfg.so.8.0 base-compat-shlib obsolete
./usr/lib/oabi/libiscsi.so.2 base-compat-shlib compat,pic,iscsi
./usr/lib/oabi/libiscsi.so.2.0 base-compat-shlib compat,pic,iscsi
./usr/lib/oabi/libisns.so.0 base-compat-shlib compat,pic
@@ -241,9 +241,7 @@
./usr/lib/oabi/libpcap.so.5 base-compat-shlib compat,pic
./usr/lib/oabi/libpcap.so.5.0 base-compat-shlib compat,pic
./usr/lib/oabi/libpci.so.2 base-compat-shlib compat,pic
-./usr/lib/oabi/libpci.so.2 base-compat-shlib compat,pic
-./usr/lib/oabi/libpci.so.2.0 base-compat-shlib compat,pic
-./usr/lib/oabi/libpci.so.2.0 base-compat-shlib compat,pic
+./usr/lib/oabi/libpci.so.2.1 base-compat-shlib compat,pic
./usr/lib/oabi/libperfuse.so.0 base-compat-shlib compat,pic
./usr/lib/oabi/libperfuse.so.0.0 base-compat-shlib compat,pic
./usr/lib/oabi/libpmc.so.1 base-compat-shlib compat,pic
diff -r 9517fe38da0c -r 42a4ddb3a3e4 distrib/sets/lists/base/ad.mips
--- a/distrib/sets/lists/base/ad.mips Fri Jul 25 01:05:00 2014 +0000
+++ b/distrib/sets/lists/base/ad.mips Fri Jul 25 01:38:26 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ad.mips,v 1.45 2014/07/23 02:42:56 lneto Exp $
+# $NetBSD: ad.mips,v 1.46 2014/07/25 01:38:27 mrg Exp $
./lib/64 base-compat-shlib compat,arch64
./lib/64/npf base-npf-shlib compat,arch64
./lib/64/npf/ext_log.so base-npf-shlib compat,pic,arch64
@@ -241,7 +241,7 @@
./usr/lib/64/libpcap.so.5 base-compat-shlib compat,pic,arch64
./usr/lib/64/libpcap.so.5.0 base-compat-shlib compat,pic,arch64
./usr/lib/64/libpci.so.2 base-compat-shlib compat,pic,arch64
-./usr/lib/64/libpci.so.2.0 base-compat-shlib compat,pic,arch64
+./usr/lib/64/libpci.so.2.1 base-compat-shlib compat,pic,arch64
./usr/lib/64/libperfuse.so.0 base-compat-shlib compat,pic,arch64
./usr/lib/64/libperfuse.so.0.0 base-compat-shlib compat,pic,arch64
./usr/lib/64/libposix.so.0 base-compat-shlib compat,pic,arch64
@@ -580,7 +580,7 @@
./usr/lib/o32/libpcap.so.5 base-compat-shlib compat,pic,arch64
./usr/lib/o32/libpcap.so.5.0 base-compat-shlib compat,pic,arch64
./usr/lib/o32/libpci.so.2 base-compat-shlib compat,pic,arch64
-./usr/lib/o32/libpci.so.2.0 base-compat-shlib compat,pic,arch64
+./usr/lib/o32/libpci.so.2.1 base-compat-shlib compat,pic,arch64
./usr/lib/o32/libperfuse.so.0 base-compat-shlib compat,pic,arch64
./usr/lib/o32/libperfuse.so.0.0 base-compat-shlib compat,pic,arch64
./usr/lib/o32/libposix.so.0 base-compat-shlib compat,pic,arch64
diff -r 9517fe38da0c -r 42a4ddb3a3e4 distrib/sets/lists/base/ad.powerpc
--- a/distrib/sets/lists/base/ad.powerpc Fri Jul 25 01:05:00 2014 +0000
+++ b/distrib/sets/lists/base/ad.powerpc Fri Jul 25 01:38:26 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ad.powerpc,v 1.14 2014/07/23 02:42:56 lneto Exp $
+# $NetBSD: ad.powerpc,v 1.15 2014/07/25 01:38:27 mrg Exp $
./lib/powerpc base-npf-shlib compat,arch64
./lib/powerpc/npf base-npf-shlib compat,arch64
./lib/powerpc/npf/ext_log.so base-npf-shlib compat,arch64,pic
@@ -220,7 +220,7 @@
./usr/lib/powerpc/libpcap.so.5 base-compat-shlib compat,arch64,pic
./usr/lib/powerpc/libpcap.so.5.0 base-compat-shlib compat,arch64,pic
./usr/lib/powerpc/libpci.so.2 base-compat-shlib compat,arch64,pic
-./usr/lib/powerpc/libpci.so.2.0 base-compat-shlib compat,arch64,pic
+./usr/lib/powerpc/libpci.so.2.1 base-compat-shlib compat,arch64,pic
./usr/lib/powerpc/libperfuse.so base-compat-shlib compat,arch64,pic
./usr/lib/powerpc/libperfuse.so.0 base-compat-shlib compat,arch64,pic
./usr/lib/powerpc/libperfuse.so.0.0 base-compat-shlib compat,arch64,pic
diff -r 9517fe38da0c -r 42a4ddb3a3e4 distrib/sets/lists/base/md.amd64
--- a/distrib/sets/lists/base/md.amd64 Fri Jul 25 01:05:00 2014 +0000
+++ b/distrib/sets/lists/base/md.amd64 Fri Jul 25 01:38:26 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.239 2014/07/23 02:42:56 lneto Exp $
+# $NetBSD: md.amd64,v 1.240 2014/07/25 01:38:27 mrg Exp $
./dev/lms0 base-obsolete obsolete
./dev/mms0 base-obsolete obsolete
./lib/i386 base-compat-shlib compat
@@ -238,7 +238,7 @@
./usr/lib/i386/libpcap.so.5 base-compat-shlib compat,pic
./usr/lib/i386/libpcap.so.5.0 base-compat-shlib compat,pic
./usr/lib/i386/libpci.so.2 base-compat-shlib compat,pic
-./usr/lib/i386/libpci.so.2.0 base-compat-shlib compat,pic
+./usr/lib/i386/libpci.so.2.1 base-compat-shlib compat,pic
./usr/lib/i386/libperfuse.so base-compat-shlib compat,pic
./usr/lib/i386/libperfuse.so.0 base-compat-shlib compat,pic
./usr/lib/i386/libperfuse.so.0.0 base-compat-shlib compat,pic
diff -r 9517fe38da0c -r 42a4ddb3a3e4 distrib/sets/lists/base/md.sparc64
--- a/distrib/sets/lists/base/md.sparc64 Fri Jul 25 01:05:00 2014 +0000
+++ b/distrib/sets/lists/base/md.sparc64 Fri Jul 25 01:38:26 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.sparc64,v 1.226 2014/07/23 02:42:56 lneto Exp $
+# $NetBSD: md.sparc64,v 1.227 2014/07/25 01:38:27 mrg Exp $
./lib/sparc base-npf-shlib compat
./lib/sparc/npf base-npf-shlib compat
./lib/sparc/npf/ext_log.so base-npf-shlib compat,pic
@@ -233,7 +233,7 @@
./usr/lib/sparc/libpcap.so.5 base-compat-shlib compat,pic
./usr/lib/sparc/libpcap.so.5.0 base-compat-shlib compat,pic
./usr/lib/sparc/libpci.so.2 base-compat-shlib compat,pic
-./usr/lib/sparc/libpci.so.2.0 base-compat-shlib compat,pic
+./usr/lib/sparc/libpci.so.2.1 base-compat-shlib compat,pic
./usr/lib/sparc/libperfuse.so base-compat-shlib compat,pic
./usr/lib/sparc/libperfuse.so.0 base-compat-shlib compat,pic
./usr/lib/sparc/libperfuse.so.0.0 base-compat-shlib compat,pic
diff -r 9517fe38da0c -r 42a4ddb3a3e4 distrib/sets/lists/base/shl.mi
--- a/distrib/sets/lists/base/shl.mi Fri Jul 25 01:05:00 2014 +0000
+++ b/distrib/sets/lists/base/shl.mi Fri Jul 25 01:38:26 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: shl.mi,v 1.709 2014/07/23 02:42:56 lneto Exp $
+# $NetBSD: shl.mi,v 1.710 2014/07/25 01:38:27 mrg Exp $
#
# Note: Don't delete entries from here - mark them as "obsolete" instead,
# unless otherwise stated below.
@@ -421,7 +421,7 @@
./usr/lib/libpcap.so.5.0 base-net-shlib
./usr/lib/libpci.so base-sys-shlib
./usr/lib/libpci.so.2 base-sys-shlib
-./usr/lib/libpci.so.2.0 base-sys-shlib
+./usr/lib/libpci.so.2.1 base-sys-shlib
./usr/lib/libperfuse.so base-perfuse-shlib
./usr/lib/libperfuse.so.0 base-perfuse-shlib
./usr/lib/libperfuse.so.0.0 base-perfuse-shlib
diff -r 9517fe38da0c -r 42a4ddb3a3e4 distrib/sets/lists/debug/ad.arm
--- a/distrib/sets/lists/debug/ad.arm Fri Jul 25 01:05:00 2014 +0000
+++ b/distrib/sets/lists/debug/ad.arm Fri Jul 25 01:38:26 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ad.arm,v 1.39 2014/07/19 18:38:33 lneto Exp $
+# $NetBSD: ad.arm,v 1.40 2014/07/25 01:38:27 mrg Exp $
./usr/lib/libarm_g.a comp-c-debuglib debuglib
./usr/lib/libc_vfp_g.a comp-c-debuglib debuglib,softfloat
./usr/lib/libpmc_g.a comp-c-debuglib debuglib
@@ -155,7 +155,7 @@
./usr/libdata/debug/usr/lib/oabi/libp2k.so.2.0.debug comp-puffs-debug debug,compat,rump
./usr/libdata/debug/usr/lib/oabi/libpam.so.4.0.debug comp-sys-debug pam,debug,compat
./usr/libdata/debug/usr/lib/oabi/libpcap.so.5.0.debug comp-net-debug debug,compat
-./usr/libdata/debug/usr/lib/oabi/libpci.so.2.0.debug comp-sys-debug debug,compat
+./usr/libdata/debug/usr/lib/oabi/libpci.so.2.1.debug comp-sys-debug debug,compat
./usr/libdata/debug/usr/lib/oabi/libperfuse.so.0.0.debug comp-compat-shlib compat,pic,debug
./usr/libdata/debug/usr/lib/oabi/libpmc.so.1.0.debug comp-sys-debug debug,compat
./usr/libdata/debug/usr/lib/oabi/libposix.so.0.1.debug comp-sys-debug debug,compat
diff -r 9517fe38da0c -r 42a4ddb3a3e4 distrib/sets/lists/debug/ad.mips
--- a/distrib/sets/lists/debug/ad.mips Fri Jul 25 01:05:00 2014 +0000
+++ b/distrib/sets/lists/debug/ad.mips Fri Jul 25 01:38:26 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ad.mips,v 1.35 2014/07/19 18:38:33 lneto Exp $
+# $NetBSD: ad.mips,v 1.36 2014/07/25 01:38:27 mrg Exp $
./usr/lib/64/libcrypto_g.a comp-c-debuglib compat,crypto,debuglib,arch64
./usr/lib/64/libcrypto_idea_g.a comp-obsolete obsolete
./usr/lib/64/libcrypto_mdc2_g.a comp-obsolete obsolete
@@ -160,7 +160,7 @@
./usr/libdata/debug/usr/lib/64/libp2k.so.2.0.debug comp-puffs-debug debug,compat,rump,arch64
./usr/libdata/debug/usr/lib/64/libpam.so.4.0.debug comp-sys-debug pam,debug,compat,arch64
./usr/libdata/debug/usr/lib/64/libpcap.so.5.0.debug comp-net-debug debug,compat,arch64
-./usr/libdata/debug/usr/lib/64/libpci.so.2.0.debug comp-sys-debug debug,compat,arch64
+./usr/libdata/debug/usr/lib/64/libpci.so.2.1.debug comp-sys-debug debug,compat,arch64
./usr/libdata/debug/usr/lib/64/libperfuse.so.0.0.debug comp-compat-shlib compat,pic,debug,arch64
./usr/libdata/debug/usr/lib/64/libposix.so.0.1.debug comp-sys-debug debug,compat,arch64
./usr/libdata/debug/usr/lib/64/libppath.so.0.0.debug comp-sys-debug debug,compat,arch64
@@ -338,7 +338,7 @@
./usr/libdata/debug/usr/lib/o32/libp2k.so.2.0.debug comp-puffs-debug debug,compat,rump,arch64
./usr/libdata/debug/usr/lib/o32/libpam.so.4.0.debug comp-sys-debug pam,debug,compat,arch64
./usr/libdata/debug/usr/lib/o32/libpcap.so.5.0.debug comp-net-debug debug,compat,arch64
-./usr/libdata/debug/usr/lib/o32/libpci.so.2.0.debug comp-sys-debug debug,compat,arch64
+./usr/libdata/debug/usr/lib/o32/libpci.so.2.1.debug comp-sys-debug debug,compat,arch64
./usr/libdata/debug/usr/lib/o32/libperfuse.so.0.0.debug comp-compat-shlib compat,pic,debug,arch64
./usr/libdata/debug/usr/lib/o32/libposix.so.0.1.debug comp-sys-debug debug,compat,arch64
./usr/libdata/debug/usr/lib/o32/libppath.so.0.0.debug comp-sys-debug debug,compat,arch64
diff -r 9517fe38da0c -r 42a4ddb3a3e4 distrib/sets/lists/debug/ad.powerpc
--- a/distrib/sets/lists/debug/ad.powerpc Fri Jul 25 01:05:00 2014 +0000
+++ b/distrib/sets/lists/debug/ad.powerpc Fri Jul 25 01:38:26 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ad.powerpc,v 1.15 2014/07/19 18:38:33 lneto Exp $
+# $NetBSD: ad.powerpc,v 1.16 2014/07/25 01:38:27 mrg Exp $
./usr/lib/powerpc/libamu_g.a comp-c-debuglib compat,arch64,debuglib
./usr/lib/powerpc/libarchive_g.a comp-c-debuglib compat,arch64,debuglib
./usr/lib/powerpc/libasn1_g.a comp-c-debuglib compat,arch64,debuglib,kerberos
@@ -222,7 +222,7 @@
./usr/libdata/debug/usr/lib/powerpc/libp2k.so.2.0.debug comp-compat-shlib compat,arch64,debug,pic,rump
./usr/libdata/debug/usr/lib/powerpc/libpam.so.4.0.debug comp-compat-shlib compat,arch64,debug,pic
./usr/libdata/debug/usr/lib/powerpc/libpcap.so.5.0.debug comp-compat-shlib compat,arch64,debug,pic
-./usr/libdata/debug/usr/lib/powerpc/libpci.so.2.0.debug comp-compat-shlib compat,arch64,debug,pic
+./usr/libdata/debug/usr/lib/powerpc/libpci.so.2.1.debug comp-compat-shlib compat,arch64,debug,pic
./usr/libdata/debug/usr/lib/powerpc/libperfuse.so.0.0.debug comp-compat-shlib compat,arch64,debug,pic
./usr/libdata/debug/usr/lib/powerpc/libposix.so.0.1.debug comp-compat-shlib compat,arch64,debug,pic
./usr/libdata/debug/usr/lib/powerpc/libppath.so.0.0.debug comp-compat-shlib compat,arch64,debug,pic
diff -r 9517fe38da0c -r 42a4ddb3a3e4 distrib/sets/lists/debug/md.amd64
--- a/distrib/sets/lists/debug/md.amd64 Fri Jul 25 01:05:00 2014 +0000
+++ b/distrib/sets/lists/debug/md.amd64 Fri Jul 25 01:38:26 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.60 2014/07/19 18:38:33 lneto Exp $
+# $NetBSD: md.amd64,v 1.61 2014/07/25 01:38:27 mrg Exp $
./usr/lib/i386/i18n/libBIG5_g.a comp-c-debuglib compat,debuglib
./usr/lib/i386/i18n/libDECHanyu_g.a comp-c-debuglib compat,debuglib
./usr/lib/i386/i18n/libEUCTW_g.a comp-c-debuglib compat,debuglib
@@ -285,7 +285,7 @@
./usr/libdata/debug/usr/lib/i386/libp2k.so.2.0.debug comp-compat-shlib compat,pic,debug,rump
./usr/libdata/debug/usr/lib/i386/libpam.so.4.0.debug comp-compat-shlib compat,pic,pam,debug
./usr/libdata/debug/usr/lib/i386/libpcap.so.5.0.debug comp-compat-shlib compat,pic,debug
-./usr/libdata/debug/usr/lib/i386/libpci.so.2.0.debug comp-compat-shlib compat,pic,debug
+./usr/libdata/debug/usr/lib/i386/libpci.so.2.1.debug comp-compat-shlib compat,pic,debug
./usr/libdata/debug/usr/lib/i386/libperfuse.so.0.0.debug comp-compat-shlib compat,pic,debug
./usr/libdata/debug/usr/lib/i386/libposix.so.0.1.debug comp-compat-shlib compat,pic,debug
./usr/libdata/debug/usr/lib/i386/libppath.so.0.0.debug comp-compat-shlib compat,pic,debug
diff -r 9517fe38da0c -r 42a4ddb3a3e4 distrib/sets/lists/debug/md.sparc64
--- a/distrib/sets/lists/debug/md.sparc64 Fri Jul 25 01:05:00 2014 +0000
+++ b/distrib/sets/lists/debug/md.sparc64 Fri Jul 25 01:38:26 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.sparc64,v 1.58 2014/07/19 18:38:33 lneto Exp $
+# $NetBSD: md.sparc64,v 1.59 2014/07/25 01:38:27 mrg Exp $
./usr/lib/sparc/i18n/libBIG5_g.a comp-obsolete obsolete
./usr/lib/sparc/i18n/libDECHanyu_g.a comp-obsolete obsolete
./usr/lib/sparc/i18n/libEUCTW_g.a comp-obsolete obsolete
@@ -278,7 +278,7 @@
./usr/libdata/debug/usr/lib/sparc/libp2k.so.2.0.debug comp-compat-shlib compat,pic,debug,rump
./usr/libdata/debug/usr/lib/sparc/libpam.so.4.0.debug comp-compat-shlib compat,pic,debug
./usr/libdata/debug/usr/lib/sparc/libpcap.so.5.0.debug comp-compat-shlib compat,pic,debug
-./usr/libdata/debug/usr/lib/sparc/libpci.so.2.0.debug comp-compat-shlib compat,pic,debug
+./usr/libdata/debug/usr/lib/sparc/libpci.so.2.1.debug comp-compat-shlib compat,pic,debug
./usr/libdata/debug/usr/lib/sparc/libperfuse.so.0.0.debug comp-compat-shlib compat,pic,debug
./usr/libdata/debug/usr/lib/sparc/libposix.so.0.1.debug comp-compat-shlib compat,pic,debug
./usr/libdata/debug/usr/lib/sparc/libppath.so.0.0.debug comp-compat-shlib compat,pic,debug
diff -r 9517fe38da0c -r 42a4ddb3a3e4 distrib/sets/lists/debug/shl.mi
--- a/distrib/sets/lists/debug/shl.mi Fri Jul 25 01:05:00 2014 +0000
+++ b/distrib/sets/lists/debug/shl.mi Fri Jul 25 01:38:26 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: shl.mi,v 1.68 2014/07/19 18:38:33 lneto Exp $
+# $NetBSD: shl.mi,v 1.69 2014/07/25 01:38:27 mrg Exp $
./usr/libdata/debug/lib/libc.so.12.192.debug comp-sys-debug debug
./usr/libdata/debug/lib/libcrypt.so.1.0.debug comp-sys-debug debug
./usr/libdata/debug/lib/libcrypto.so.8.2.debug comp-sys-debug debug
@@ -146,7 +146,7 @@
./usr/libdata/debug/usr/lib/libp2k.so.2.0.debug comp-puffs-debug debug,rump
./usr/libdata/debug/usr/lib/libpam.so.4.0.debug comp-sys-debug pam,debug
./usr/libdata/debug/usr/lib/libpcap.so.5.0.debug comp-net-debug debug
-./usr/libdata/debug/usr/lib/libpci.so.2.0.debug comp-sys-debug debug
+./usr/libdata/debug/usr/lib/libpci.so.2.1.debug comp-sys-debug debug
./usr/libdata/debug/usr/lib/libperfuse.so.0.0.debug comp-perfuse-debug debug
./usr/libdata/debug/usr/lib/libposix.so.0.1.debug comp-sys-debug debug
./usr/libdata/debug/usr/lib/libppath.so.0.0.debug comp-sys-debug debug
diff -r 9517fe38da0c -r 42a4ddb3a3e4 lib/libpci/Makefile
--- a/lib/libpci/Makefile Fri Jul 25 01:05:00 2014 +0000
+++ b/lib/libpci/Makefile Fri Jul 25 01:38:26 2014 +0000
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.3 2010/05/24 20:31:17 pgoyette Exp $
+# $NetBSD: Makefile,v 1.4 2014/07/25 01:38:26 mrg Exp $
.include <bsd.own.mk>
LIB= pci
-SRCS= pci_bus.c pci_device.c pci_subr.c pci_verbose.c
+SRCS= pci_bus.c pci_device.c pci_drvname.c pci_subr.c pci_verbose.c
.PATH.c: ${NETBSDSRCDIR}/sys/dev/pci
diff -r 9517fe38da0c -r 42a4ddb3a3e4 lib/libpci/pci.3
--- a/lib/libpci/pci.3 Fri Jul 25 01:05:00 2014 +0000
+++ b/lib/libpci/pci.3 Fri Jul 25 01:38:26 2014 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: pci.3,v 1.7 2009/10/23 15:41:58 cegger Exp $
+.\" $NetBSD: pci.3,v 1.8 2014/07/25 01:38:26 mrg Exp $
.\"
.\" Copyright 2001 Wasabi Systems, Inc.
.\" All rights reserved.
@@ -33,7 +33,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd April 24, 2004
+.Dd July 24, 2014
.Dt PCI 3
.Os
.Sh NAME
@@ -59,6 +59,8 @@
.Fn pci_devinfo "pcireg_t id_reg" "pcireg_t class_reg" "char *devinfo" "size_t len"
.Ft void
.Fn pci_conf_print "int pcifd" "u_int bus" "u_int dev" "u_int func"
+.Ft int
+.Fn pci_drvname "int pcifd" "u_int dev" "u_int func" "char *drvname" "size_t len"
.Sh DESCRIPTION
The
.Nm
@@ -134,14 +136,28 @@
.Fa func .
.Fa pcifd
must be an open file descriptor to a PCI bus within the target PCI domain.
+.It Fn pci_drvname
+For the PCI bus opened on
+.Fa pcifd ,
+return the driver name for
+.Fa dev
+and
+.Fa func
Home |
Main Index |
Thread Index |
Old Index