Home | History | Annotate | only in /src/lib/libpci
History log of /src/lib/libpci
RevisionDateAuthorComments
 1.6 29-Jun-2021  pgoyette Rework the xxxVERBOSE option to share the common module-hook-based
verbose mechanism with MIIVERBOSE. This reduces some duplicated code
and allows us to once again permit auto-unload of MIIVERBOSE.

Change details:
* Update dev/devlist2h.awk to accomodate miidevs, including generation
of MII_STR_oui_model definitions and use of oui and model rather than
vendor and product. This also changes the compressed data in the
xxxdevs_data.h files to uint32_t (since mii oui's are up to 6 hex
digits long)
* Update a couple of phy drivers to use new calls to get verbose data
* Regen all of the xxxdevs{,_data}.h files (separate commit, coming
very soon)
* Update mii/mii_verbose.[ch] and mii/mii_physubr.c to use the various
DEV_VERBOSE_xxx macros
* Update the pci, usb, and hdaudio code as needed, to #include the
xxxdevs.h files (in order to get the proper printf format strings)
* Since dev/dev_verbose.c now uses non-literal printf format strings,
(to deal with the vendor/product vs oui/model issue), we need to
make sure it gets compiled with -Wno-error=format-nonliteral, even
in userland's libpci and librumpdev!
* Bump kernel version for the change in module interfaces

Welcome to 9.99.86!

XXX It might be useful in the future to extend the MII_STR_oui_model
XXX definitions to PCI as well (and perhaps USB and HDAUDIO). This
XXX would allow for a single centralized location for the products'
XXX descriptions, rather than being dispersed among individual
XXX drivers' xxx_match tables.
 1.5 21-Sep-2014  christos Adjust to kernel changes
 1.4 25-Jul-2014  mrg 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.
 1.3 24-May-2010  pgoyette branches: 1.3.12; 1.3.22;
Adapt libpci build to include new pci_verbose.c
 1.2 19-Aug-2002  lukem Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc).
(Reduces make output by ~ 20%)
 1.1 13-Sep-2001  thorpej Add a library to access PCI devices.
 1.3.22.1 10-Aug-2014  tls Rebase.
 1.3.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1 03-Apr-2013  agc branches: 1.1.2;
file Version.map was initially added on branch agc-symver.
 1.1.2.1 03-Apr-2013  agc Add symbol versioning information for the following libraries:

libbluetooth
libbsdmalloc
libexecinfo
libform
libintl
libipsec
libkvm
liblwres
libnpf
libp2k
libpci
libperfuse
libppath
libprop
libpuffs
librefuse
librpcsvc
librt
librumpclient
librumphijack
librumpuser
libukfs
libusbhid
libwrap
 1.14 22-Oct-2017  abhinav Add function names to the NAME section
 1.13 24-Sep-2016  mrg introduce a better pci_drvname() and PCI_IOC_DRVNAME as pciio_drvnameonbus()
and PCI_IOC_DRVNAMEONBUS. the new ones also take a (autoconf) PCI bus
number, which allows lookups for any device on any pci bus node. use this
in pcictl which current reports the wrong values sometimes.

up next: use these in libpciaccess.
 1.12 23-Jan-2016  wiz branches: 1.12.2;
unsigned -> unsigned int
 1.11 23-Jan-2016  dholland Update synopses to match u_int/u_long/etc. changes. Do not bump date as
it's not a substantive change.
 1.10 16-Dec-2014  msaitoh Add "int showclass" argument to pci_devinfo(). The API was changed 10 years
ago.
 1.9 25-Jul-2014  wiz branches: 1.9.2;
Serial comma, more markup, remove trailing whitespace.
 1.8 25-Jul-2014  mrg 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.
 1.7 23-Oct-2009  cegger branches: 1.7.12; 1.7.22;
fix typo: rag -> reg
 1.6 09-Mar-2009  joerg Fix preamble to match order set out by mdoc(7). Discussed with wiz.
 1.5 24-Apr-2004  kleink branches: 1.5.34;
Catch up with the kernel: new buffer length argument to pci_devinfo().
 1.4 16-Apr-2003  wiz Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
 1.3 07-Feb-2002  ross Generate <>& symbolically.
 1.2 15-Sep-2001  wiz Fix typo.
 1.1 13-Sep-2001  thorpej Add a library to access PCI devices.
 1.5.34.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.7.22.1 10-Aug-2014  tls Rebase.
 1.7.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.2.1 21-Dec-2014  snj Pull up following revision(s) (requested by msaitoh in ticket #337):
lib/libpci/pci.3: revision 1.10
Add "int showclass" argument to pci_devinfo(). The API was changed 10 years
ago.
 1.12.2.1 04-Nov-2016  pgoyette Sync with HEAD
 1.1 21-Nov-2024  riastradh branches: 1.1.4;
libpci: Add expected symbols list.

NOTE: libpci exports dev_findproduct and dev_findvendor. Is this
intended? Seems wrong! We also didn't bump the minor for those --
or the major when we deleted pci_findvendor_real and
pci_findproduct_real!

PR lib/58838: shared libraries in base should all have expsym lists
 1.1.4.2 02-Aug-2025  perseant Sync with HEAD
 1.1.4.1 21-Nov-2024  perseant file pci.expsym was added on branch perseant-exfatfs on 2025-08-02 05:54:54 +0000
 1.9 24-Sep-2016  mrg introduce a better pci_drvname() and PCI_IOC_DRVNAME as pciio_drvnameonbus()
and PCI_IOC_DRVNAMEONBUS. the new ones also take a (autoconf) PCI bus
number, which allows lookups for any device on any pci bus node. use this
in pcictl which current reports the wrong values sometimes.

up next: use these in libpciaccess.
 1.8 23-Jan-2016  dholland branches: 1.8.2;
Apparently a recent round of vandalism by the C++ standards committee
includes disallowing the standard and historic type name "unsigned". Add
a gratuitous "int" to recent changes.

C++ is really a blight on the world.
 1.7 22-Jan-2016  dholland u_int -> unsigned; also requires stddef.h and stdint.h to be compilable.
 1.6 21-Sep-2014  christos Adjust to kernel changes
 1.5 25-Jul-2014  mrg 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.
 1.4 25-May-2010  pgoyette branches: 1.4.12; 1.4.22;
Update libpci for change in pci_find{vendor,product} entrypoint names.
 1.3 03-Aug-2004  mycroft Modify prototype for pci_findvendor() and add pci_findproduct().
 1.2 24-Apr-2004  kleink Catch up with the kernel: new buffer length argument to pci_devinfo().
 1.1 13-Sep-2001  thorpej Add a library to access PCI devices.
 1.4.22.1 10-Aug-2014  tls Rebase.
 1.4.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.8.2.1 04-Nov-2016  pgoyette Sync with HEAD
 1.2 08-Mar-2003  lukem add __RCSID()
 1.1 13-Sep-2001  thorpej Add a library to access PCI devices.
 1.2 08-Mar-2003  lukem add __RCSID()
 1.1 13-Sep-2001  thorpej Add a library to access PCI devices.
 1.3 11-Dec-2021  mrg remove clause 3 from all my licenses that aren't conflicting with
another copyright claim line. again. (i did this in 2008 and then
did not update all of my personal templates.)
 1.2 24-Sep-2016  mrg introduce a better pci_drvname() and PCI_IOC_DRVNAME as pciio_drvnameonbus()
and PCI_IOC_DRVNAMEONBUS. the new ones also take a (autoconf) PCI bus
number, which allows lookups for any device on any pci bus node. use this
in pcictl which current reports the wrong values sometimes.

up next: use these in libpciaccess.
 1.1 25-Jul-2014  mrg branches: 1.1.2; 1.1.6; 1.1.10;
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.
 1.1.10.1 04-Nov-2016  pgoyette Sync with HEAD
 1.1.6.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.6.1 25-Jul-2014  tls file pci_drvname.c was added on branch tls-maxphys on 2014-08-20 00:02:19 +0000
 1.1.2.2 10-Aug-2014  tls Rebase.
 1.1.2.1 25-Jul-2014  tls file pci_drvname.c was added on branch tls-earlyentropy on 2014-08-10 06:52:09 +0000
 1.5 24-Sep-2016  mrg introduce a better pci_drvname() and PCI_IOC_DRVNAME as pciio_drvnameonbus()
and PCI_IOC_DRVNAMEONBUS. the new ones also take a (autoconf) PCI bus
number, which allows lookups for any device on any pci bus node. use this
in pcictl which current reports the wrong values sometimes.

up next: use these in libpciaccess.
 1.4 25-Jul-2014  mrg branches: 1.4.6;
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.
 1.3 11-Jan-2009  christos branches: 1.3.14; 1.3.24;
bump shared libraries.
 1.2 24-Apr-2004  kleink Bump to 1.0: incompatible pci_devinfo() argument change.
 1.1 13-Sep-2001  thorpej Add a library to access PCI devices.
 1.3.24.1 10-Aug-2014  tls Rebase.
 1.3.14.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.6.1 04-Nov-2016  pgoyette Sync with HEAD

RSS XML Feed