Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/libpciaccess/dist initial import of libpciacc...



details:   https://anonhg.NetBSD.org/xsrc/rev/0a634347d8c5
branches:  trunk
changeset: 10350:0a634347d8c5
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Jul 15 05:53:30 2019 +0000

description:
initial import of libpciaccess-0.15

diffstat:

 external/mit/libpciaccess/dist/ChangeLog               |   212 +
 external/mit/libpciaccess/dist/Makefile.am             |     2 +
 external/mit/libpciaccess/dist/Makefile.in             |    19 +-
 external/mit/libpciaccess/dist/README.md               |    28 +
 external/mit/libpciaccess/dist/aclocal.m4              |   253 +-
 external/mit/libpciaccess/dist/compile                 |     8 +-
 external/mit/libpciaccess/dist/config.guess            |   640 +-
 external/mit/libpciaccess/dist/config.h.in             |     3 -
 external/mit/libpciaccess/dist/config.sub              |  2752 +++++++--------
 external/mit/libpciaccess/dist/configure               |   374 +-
 external/mit/libpciaccess/dist/configure.ac            |    12 +-
 external/mit/libpciaccess/dist/depcomp                 |     8 +-
 external/mit/libpciaccess/dist/include/Makefile.in     |    13 +-
 external/mit/libpciaccess/dist/install-sh              |    45 +-
 external/mit/libpciaccess/dist/ltmain.sh               |     6 +-
 external/mit/libpciaccess/dist/man/Makefile.in         |    13 +-
 external/mit/libpciaccess/dist/missing                 |    14 +-
 external/mit/libpciaccess/dist/scanpci/Makefile.in     |    34 +-
 external/mit/libpciaccess/dist/src/Makefile.am         |     4 +-
 external/mit/libpciaccess/dist/src/Makefile.in         |   124 +-
 external/mit/libpciaccess/dist/src/common_init.c       |     8 +-
 external/mit/libpciaccess/dist/src/freebsd_pci.c       |   470 +-
 external/mit/libpciaccess/dist/src/hurd_pci.c          |   496 ++
 external/mit/libpciaccess/dist/src/linux_sysfs.c       |     1 +
 external/mit/libpciaccess/dist/src/pciaccess_private.h |    10 +
 external/mit/libpciaccess/dist/src/x86_pci.c           |   652 ++-
 external/mit/libpciaccess/dist/src/x86_pci.h           |    88 +
 27 files changed, 3645 insertions(+), 2644 deletions(-)

diffs (truncated from 8926 to 300 lines):

diff -r e738e9c6db9e -r 0a634347d8c5 external/mit/libpciaccess/dist/ChangeLog
--- a/external/mit/libpciaccess/dist/ChangeLog  Mon Jul 15 05:42:34 2019 +0000
+++ b/external/mit/libpciaccess/dist/ChangeLog  Mon Jul 15 05:53:30 2019 +0000
@@ -1,3 +1,215 @@
+commit 726e27bedf163597b5c948b66daeacf9b76f441a
+Author: Adam Jackson <ajax%redhat.com@localhost>
+Date:   Thu Jul 11 12:27:36 2019 -0400
+
+    libpciaccess 0.15
+
+commit 53e53b09eb80e4e2b3e1fad3f4886bf9290a61e0
+Author: Lichao Mu <mulichao%outlook.com@localhost>
+Date:   Thu Jul 11 12:19:34 2019 -0400
+
+    Fix pci_device_get_bridge_info() for multifunction bridges
+    
+    Fixes: xorg/lib/libpciaccess#9
+
+commit 640f114e3bf195f77a2151fc6cbdfed8ace8b6ae
+Author: Damien Zammit <damien%zamaudio.com@localhost>
+Date:   Sat Nov 10 06:48:42 2018 -0500
+
+    Use recursive scan bus
+    
+    Switch over to the new recursive scan bus routine for x86
+    
+    Signed-off-by: Damien Zammit <damien%zamaudio.com@localhost>
+
+commit 95fbfeeacfd054de1037d6a10dee03b2b2cbc290
+Author: Damien Zammit <damien%zamaudio.com@localhost>
+Date:   Sat Nov 10 06:23:40 2018 -0500
+
+    Add better probe cmds for non-VGA roms and regions on x86
+    
+    Also add a recursive scan-bus routine that uses the new probe cmds.
+    
+    Signed-off-by: Damien Zammit <damien%zamaudio.com@localhost>
+
+commit 048fe0613847e3a9b39bbc3ea3e6db0f54517191
+Author: Damien Zammit <damien%zamaudio.com@localhost>
+Date:   Sat Nov 10 06:11:19 2018 -0500
+
+    New module for the Hurd
+    
+    This new module uses Hurd's RPCs for accessing the PCI configuration space.
+    Direct access as in {read_write}_{8,16,32} functions is done by the old x86
+    module.
+    
+    Some x86 function prototypes are now declared in a new header for the Hurd
+    module to use them, in order to duplicate as little code as possible.
+    
+    Author:  Joan Lledó <joanlluislledo%gmail.com@localhost>
+    Also-by: Damien Zammit <damien%zamaudio.com@localhost>
+    Signed-off-by: Damien Zammit <damien%zamaudio.com@localhost>
+
+commit 6e3837284372d70a9427918f622bf1dc7e2a3db6
+Author: Niclas Zeising <zeising%daemonic.se@localhost>
+Date:   Sat Jun 15 11:12:51 2019 +0200
+
+    freebsd_pci: remove old probe method
+    
+    Remove the old probe method.  The PCIOCGETBAR ioctl has been in FreeBSD
+    since 8.0 release, if not earlier.  Remove the old way of doing it.
+    This is done using unifdef -DPCIOCGETBAR and cleaning up whitespace.
+    
+    Signed-off-by: Niclas Zeising <zeising%daemonic.se@localhost>
+
+commit e8c7e461e43e96f7cf8b121d20d83dc6d8997f91
+Author: Niclas Zeising <zeising%daemonic.se@localhost>
+Date:   Sat Jun 15 11:02:07 2019 +0200
+
+    freebsd_pci: format freebsd_pci_methods
+    
+    Format freebsd_pci_methods a bit, adding some whitespace and assigning
+    NULL to methods not implemented.  This makes it easier to see the names
+    of various methods, as well as which methods are not implemented.
+    Idea from src/linux_sysfs.c
+    
+    Signed-off-by: Niclas Zeising <zeising%daemonic.se@localhost>
+
+commit b40f387048a5c7b280d0c83d3af9d34ceca7f4f8
+Author: Niclas Zeising <zeising%daemonic.se@localhost>
+Date:   Sat Jun 15 10:59:00 2019 +0200
+
+    freebsd_pci: Add has_kernel_driver function
+    
+    Add a has_kernel_driver function to the FreeBSD libpciaccess functions.
+    This uses the PCIOCATTACHED ioctl to check if a driver is attached to a
+    specific PCI device.
+    Idea taken from the FreeBSD system utility pciconf.
+    
+    Signed-off-by: Niclas Zeising <zeising%daemonic.se@localhost>
+
+commit baa4084474665e34a8d6a9bba0e97d9aa5dcd88a
+Author: Niclas Zeising <zeising%daemonic.se@localhost>
+Date:   Sun Jun 16 10:42:08 2019 +0200
+
+    freebsd_pci: Remove unused variable
+    
+    Remove unused variable, it's written to, but never used.
+    
+    Signed-off-by: Niclas Zeising <zeising%daemonic.se@localhost>
+
+commit 976e661ee193941f9928353db365f14654a934db
+Author: Niclas Zeising <zeising%daemonic.se@localhost>
+Date:   Sun Jun 16 10:41:03 2019 +0200
+
+    freebsd_pci: Make this work on sparc64
+    
+    Make the FreeBSD libpciaccess routines work on FreeBSD.  The FreeBSD
+    sparc64 architecture needs special treatment, similar to the
+    PCI_MAGIC_IO_RANGE code.  However, PCI_MAGIC_IO_RANGE has been gone for
+    some time.  Give this a chance to work on sparc64 anyway.
+    
+    This code has been in the FreeBSD ports tree for some time.
+
+commit a1b528c4ae00972640d7a24f049c3fe9055ffe3b
+Author: Niclas Zeising <zeising%daemonic.se@localhost>
+Date:   Fri Jun 14 23:40:33 2019 +0200
+
+    freebsd_pci: update legacy I/O for new architectures
+    
+    Update FreeBSD legacy I/O routines for new architectures.  When we're
+    not on amd64 or i386, and PCI_MAGIC_IO_RANGE is not defined, use IOCTLs
+    to handle reads and writes through /dev/io.
+    This is accomplished by opening /dev/io and using IOCTLs from
+    dev/io/iodev.h, an interface that exists on most FreeBSD architectures.
+    
+    This change has been in the FreeBSD ports tree for quite some time.
+
+commit b6de3c42cdc8fdb3acdd0b0a119e8848f1339950
+Author: Niclas Zeising <zeising%daemonic.se@localhost>
+Date:   Sat Jun 15 00:06:54 2019 +0200
+
+    freebsd_pci: Fix types in write functions
+    
+    Fix the type used in write functions to match the size of the write.
+    
+    Signed-off-by: Niclas Zeising <zeising%daemonic.se@localhost>
+
+commit 735c8a5f6649d1b13fdc932f1b0b1e9e94512949
+Author: Niclas Zeising <zeising%daemonic.se@localhost>
+Date:   Thu Jun 13 17:36:35 2019 +0200
+
+    Don't check for struct pci_io.pi_sel.pc_domain
+    
+    Autoconf has a check that pci_io.pi_sel.pc_domain exists.  This is only
+    used on FreeBSD.  pc_domain was added to pci_io.pi_sel on FreeBSD many
+    many releases ago, and exists on all current FreeBSD releases.
+    
+    Remove the check, and the corresponding HAVE_PCI_IO_PC_DOMAIN, and
+    update the code to take into account that #ifdef HAVE_PCI_IO_PC_DOMAIN
+    is now always true.
+    
+    Signed-off-by: Niclas Zeising <zeising%daemonic.se@localhost>
+
+commit 4fef4d2978619e9f198a17176afc88ba27ff6ab7
+Author: Niclas Zeising <zeising%daemonic.se@localhost>
+Date:   Thu Jun 13 17:14:53 2019 +0200
+
+    freebsd_pci: Try to conform to uniform style
+    
+    Try to make freebsd_pci.c conform to a more uniform style.
+    This change is whitespace only, no functional change intended.
+    
+    Signed-off-by: Niclas Zeising <zeising%daemonic.se@localhost>
+
+commit 404f6aadaeeef03fedca52a822871675a652692f
+Author: Conrad Meyer <cem%FreeBSD.org@localhost>
+Date:   Sun Jun 16 02:30:41 2019 -0700
+
+    freebsd: Add !legacy open_device_io implementation
+    
+    Some drivers, such as QXL, rely on this method and do not check for errors
+    when it is unavailable.  FreeBSD's legacy method can enumerate any d/b/s/f
+    just fine, so it should be adequate for the !legacy API, as far as I can
+    tell.
+    
+    With this change, QXL doesn't crash on startup on FreeBSD.
+    
+    Signed-off-by: Conrad Meyer <cem%FreeBSD.org@localhost>
+
+commit fbed5d2b478cd33870c8eb6f0a12893193d7e32c
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Fri Dec 7 19:31:52 2018 -0800
+
+    Update configure.ac bug URL for gitlab migration
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit d30934ee6e0ee48cc10c141d5681be847e28e974
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Mon Nov 19 23:03:36 2018 -0800
+
+    Update README for gitlab migration
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 44f3dd08f99ba67e967980daaea2b800c68e2659
+Author: Olivier Fourdan <ofourdan%redhat.com@localhost>
+Date:   Wed Oct 24 10:11:49 2018 +0200
+
+    linux: Set number of devices to 0 in case of error
+    
+    pci_sys is a global variable which is populated on init, and in case of
+    error reading sysfs on Linux, the devices are NULL, but the number of
+    devices is left unchanged.
+    
+    As a result, we may crash in `pci_device_next()` which relies on the
+    number of devices.
+    
+    To fix the issue, simply reset the number of devices to zero in case of
+    error so we don't try to access indices of a NULL array later on.
+    
+    Signed-off-by: Olivier Fourdan <ofourdan%redhat.com@localhost>
+
 commit 13854f603f720c45caf51d785a874d3c7e8c5f58
 Author: Adam Jackson <ajax%redhat.com@localhost>
 Date:   Mon Oct 23 11:44:32 2017 -0400
diff -r e738e9c6db9e -r 0a634347d8c5 external/mit/libpciaccess/dist/Makefile.am
--- a/external/mit/libpciaccess/dist/Makefile.am        Mon Jul 15 05:42:34 2019 +0000
+++ b/external/mit/libpciaccess/dist/Makefile.am        Mon Jul 15 05:53:30 2019 +0000
@@ -41,3 +41,5 @@
        $(CHANGELOG_CMD)
 
 dist-hook: ChangeLog INSTALL
+
+EXTRA_DIST = README.md
diff -r e738e9c6db9e -r 0a634347d8c5 external/mit/libpciaccess/dist/Makefile.in
--- a/external/mit/libpciaccess/dist/Makefile.in        Mon Jul 15 05:42:34 2019 +0000
+++ b/external/mit/libpciaccess/dist/Makefile.in        Mon Jul 15 05:53:30 2019 +0000
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.15.1 from Makefile.am.
+# Makefile.in generated by automake 1.16.1 from Makefile.am.
 # @configure_input@
 
-# Copyright (C) 1994-2017 Free Software Foundation, Inc.
+# Copyright (C) 1994-2018 Free Software Foundation, Inc.
 
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -190,7 +190,7 @@
   $(RECURSIVE_CLEAN_TARGETS) \
   $(am__extra_recursive_targets)
 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
-       cscope distdir dist dist-all distcheck
+       cscope distdir distdir-am dist dist-all distcheck
 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
        $(LISP)config.h.in
 # Read a list of newline-separated strings from the standard input,
@@ -215,8 +215,7 @@
 DIST_SUBDIRS = $(SUBDIRS)
 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
        $(srcdir)/pciaccess.pc.in AUTHORS COPYING ChangeLog INSTALL \
-       README compile config.guess config.sub install-sh ltmain.sh \
-       missing
+       compile config.guess config.sub install-sh ltmain.sh missing
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 distdir = $(PACKAGE)-$(VERSION)
 top_distdir = $(distdir)
@@ -408,6 +407,7 @@
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = pciaccess.pc
 MAINTAINERCLEANFILES = ChangeLog INSTALL
+EXTRA_DIST = README.md
 all: config.h
        $(MAKE) $(AM_MAKEFLAGS) all-recursive
 
@@ -433,8 +433,8 @@
            echo ' $(SHELL) ./config.status'; \
            $(SHELL) ./config.status;; \
          *) \
-           echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
-           cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
        esac;
 
 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
@@ -599,7 +599,10 @@
        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
        -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
 
-distdir: $(DISTFILES)
+distdir: $(BUILT_SOURCES)
+       $(MAKE) $(AM_MAKEFLAGS) distdir-am
+
+distdir-am: $(DISTFILES)
        $(am__remove_distdir)
        test -d "$(distdir)" || mkdir "$(distdir)"
        @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
diff -r e738e9c6db9e -r 0a634347d8c5 external/mit/libpciaccess/dist/README.md
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mit/libpciaccess/dist/README.md  Mon Jul 15 05:53:30 2019 +0000
@@ -0,0 +1,28 @@
+xorg/lib/libpciaccess - Generic PCI access library
+--------------------------------------------------
+
+Documentation of the libpciaccess API's can be generated from the
+sources via the doxygen command.    Information about porting Xorg



Home | Main Index | Thread Index | Old Index