Source-Changes-HG archive

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

[xsrc/xorg]: xsrc/external/mit/libpciaccess/dist initial import of libpciacce...



details:   https://anonhg.NetBSD.org/xsrc/rev/765f4ba39df9
branches:  xorg
changeset: 7246:765f4ba39df9
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Nov 12 01:44:48 2022 +0000

description:
initial import of libpciaccess-0.17

diffstat:

 external/mit/libpciaccess/dist/ChangeLog               |    323 +-
 external/mit/libpciaccess/dist/Makefile.am             |      5 +-
 external/mit/libpciaccess/dist/Makefile.in             |     47 +-
 external/mit/libpciaccess/dist/README.md               |      2 +-
 external/mit/libpciaccess/dist/aclocal.m4              |   2327 +-
 external/mit/libpciaccess/dist/compile                 |      6 +-
 external/mit/libpciaccess/dist/config.guess            |   1432 +-
 external/mit/libpciaccess/dist/config.h.in             |    103 +-
 external/mit/libpciaccess/dist/config.sub              |    700 +-
 external/mit/libpciaccess/dist/configure               |  14700 ++++++++------
 external/mit/libpciaccess/dist/configure.ac            |     18 +-
 external/mit/libpciaccess/dist/depcomp                 |      2 +-
 external/mit/libpciaccess/dist/include/Makefile.in     |     15 +-
 external/mit/libpciaccess/dist/include/pciaccess.h     |      5 +-
 external/mit/libpciaccess/dist/install-sh              |    157 +-
 external/mit/libpciaccess/dist/ltmain.sh               |    875 +-
 external/mit/libpciaccess/dist/m4/libtool.m4           |    232 +-
 external/mit/libpciaccess/dist/m4/ltoptions.m4         |      4 +-
 external/mit/libpciaccess/dist/m4/ltsugar.m4           |      2 +-
 external/mit/libpciaccess/dist/m4/ltversion.m4         |     13 +-
 external/mit/libpciaccess/dist/m4/lt~obsolete.m4       |      4 +-
 external/mit/libpciaccess/dist/man/Makefile.am         |      5 +-
 external/mit/libpciaccess/dist/man/Makefile.in         |     18 +-
 external/mit/libpciaccess/dist/man/meson.build         |     32 +
 external/mit/libpciaccess/dist/meson.build             |    134 +
 external/mit/libpciaccess/dist/meson_options.txt       |     37 +
 external/mit/libpciaccess/dist/missing                 |      2 +-
 external/mit/libpciaccess/dist/pciaccess.pc.in         |      1 +
 external/mit/libpciaccess/dist/scanpci/Makefile.am     |      2 +
 external/mit/libpciaccess/dist/scanpci/Makefile.in     |     16 +-
 external/mit/libpciaccess/dist/scanpci/meson.build     |     25 +
 external/mit/libpciaccess/dist/src/Makefile.am         |      2 +
 external/mit/libpciaccess/dist/src/Makefile.in         |     16 +-
 external/mit/libpciaccess/dist/src/common_interface.c  |     28 +
 external/mit/libpciaccess/dist/src/common_io.c         |      2 +-
 external/mit/libpciaccess/dist/src/freebsd_pci.c       |      2 +
 external/mit/libpciaccess/dist/src/hurd_pci.c          |    392 +-
 external/mit/libpciaccess/dist/src/linux_devmem.h      |      5 +
 external/mit/libpciaccess/dist/src/linux_sysfs.c       |     23 +-
 external/mit/libpciaccess/dist/src/meson.build         |     68 +
 external/mit/libpciaccess/dist/src/netbsd_pci.c        |      1 +
 external/mit/libpciaccess/dist/src/pci_tools.h         |      6 +-
 external/mit/libpciaccess/dist/src/pciaccess_private.h |      1 +
 external/mit/libpciaccess/dist/src/x86_pci.c           |    184 +-
 external/mit/libpciaccess/dist/src/x86_pci.h           |     10 +-
 45 files changed, 12384 insertions(+), 9600 deletions(-)

diffs (truncated from 30548 to 300 lines):

diff -r 084027a517bb -r 765f4ba39df9 external/mit/libpciaccess/dist/ChangeLog
--- a/external/mit/libpciaccess/dist/ChangeLog  Fri Nov 11 23:31:19 2022 +0000
+++ b/external/mit/libpciaccess/dist/ChangeLog  Sat Nov 12 01:44:48 2022 +0000
@@ -1,3 +1,324 @@
+commit 935f0b4d6983f77c4f35e6d492f9f2c2d1ed57f9
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Mon Oct 17 18:41:02 2022 -0700
+
+    libpciaccess 0.17
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit d193fa690415333420b435edb5782789a6f3ea57
+Author: Samuel Thibault <samuel.thibault%ens-lyon.org@localhost>
+Date:   Tue Aug 23 19:27:27 2022 +0200
+
+    hurd: Fix pci_device_hurd_map_legacy
+    
+    It was not passing a proper region number to pci_device_hurd_map_range,
+    and that would not make sense anyway since the rom is not a region for
+    instance, and the video memory, interrupt vector etc. aren't a region or
+    the rom.
+    
+    So this uses pci_device_hurd_map_range for the rom, and
+    pci_system_x86_map_dev_mem for non-rom. Unfortunately pci-arbiter
+    currently cannot get the rom_base from libpciaccess, so we can only
+    guess that we are trying to map a rom.
+
+commit 361356b08003f5e3c606e16eeb6a17fe02ff2726
+Author: Moritz Fischer <moritzf%google.com@localhost>
+Date:   Mon Mar 8 12:02:33 2021 -0800
+
+    Add pci_device_disable() function
+    
+    This implements a pci_device_disable() function, currently only for
+    the linux_sysfs() backend.
+    
+    This mirrors the implementation for pci_device_enable()
+    
+    Signed-off-by: Moritz Fischer <moritzf%google.com@localhost>
+
+commit a8abf913ad6b60492ef7b6ae512c4f879604a6a7
+Author: zhanghongtao <zhanghongtao22%huawei.com@localhost>
+Date:   Mon Aug 1 16:20:28 2022 +0800
+
+    Delete redundant symbols ';'
+    
+    Signed-off-by: zhanghongtao <zhanghongtao22%huawei.com@localhost>
+
+commit ab475c645ff9fc40e18af739eb4b81a5eb7f783c
+Author: zhanghongtao <zhanghongtao22%huawei.com@localhost>
+Date:   Mon Aug 1 16:13:40 2022 +0800
+
+    Add header protection macro in linux_devmem.h
+    
+    Signed-off-by: zhanghongtao <zhanghongtao22%huawei.com@localhost>
+
+commit b8de959615449fdf5b58ef08d881a77d397e86e2
+Author: zhanghongtao <zhanghongtao22%huawei.com@localhost>
+Date:   Mon Aug 1 15:53:57 2022 +0800
+
+    pci_sys set NULL after free
+    
+    Signed-off-by: zhanghongtao <zhanghongtao22%huawei.com@localhost>
+
+commit f93c0dae5a837404a48ea7f3609c6c5c30691a7b
+Author: zhanghongtao <zhanghongtao22%huawei.com@localhost>
+Date:   Mon Aug 1 15:28:14 2022 +0800
+
+    Add parentheses to the macro definition
+    
+    Signed-off-by: zhanghongtao <zhanghongtao22%huawei.com@localhost>
+
+commit 1fa5d4bdfcc6fea44f9abf353d25f3a5d013f5d7
+Author: Satadru Pramanik <satadru%umich.edu@localhost>
+Date:   Tue Jun 21 20:44:30 2022 +0000
+
+    Add support for building on macOS w/o X11, using endian code from "portable_endian.h"...
+
+commit 22a93f8b9b4a79eefbdd0b2c412526f6141ac7a8
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Wed Apr 6 11:46:45 2022 -0700
+
+    configure.ac: Use pkg-config to find zlib dependency info
+    
+    Matches what we already do in meson.build
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 0ae62706c34e4abc581d4c42ce9807e2898fac1d
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Wed Apr 6 16:30:51 2022 -0700
+
+    gitlab CI: stop requiring Signed-off-by in commits
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 831b467b2e3876c4e0c307d1e3eae2746ce805a7
+Author: Chester Gillon <chester.gillon%metronet.co.uk@localhost>
+Date:   Sun Sep 5 13:37:56 2021 +0100
+
+    Obtain correct value of is_64 and is_prefetchable PCI device fields
+    
+    Correct setting of the is_64 and is_prefetchable pci_device fields in
+    pci_device_linux_sysfs_probe().
+    The pci_device struct defines is_64 and is_prefetchable as single bits,
+    but the previous code was attempting to store the result of a bit-masked
+    field in a single bit which always resulted in is_64 and is_prefetchable
+    being zero regardless of the actual capabilities of the PCI device.
+    
+    Fixes: #15
+    
+    Signed-off-by: Chester Gillon <chester.gillon%metronet.co.uk@localhost>
+
+commit 28d6dd72e5d6fa907dbccd310cc516e7012a60bd
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Apr 2 16:00:56 2022 -0700
+
+    gitlab CI: add a basic build test for both autotools and meson
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 465aecdce47040a211fddc29186a4b1aa2ad5648
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Apr 2 15:27:10 2022 -0700
+
+    meson: install man page in mandir/man1/, not mandir/1/
+    
+    But don't install it by default, since neither meson nor autotools
+    installs the scanpci program by default
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 5cf85c28ad5f0811d53e5d70eac384dfe8e86cd6
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Apr 2 14:54:06 2022 -0700
+
+    Fix spelling/wording issues
+    
+    Found by using:
+        codespell --builtin clear,rare,usage,informal,code,names
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 9ad16d4da14905abfac50e41105dd1ceba877b07
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Apr 2 14:44:13 2022 -0700
+
+    Build xz tarballs instead of bzip2
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 21aa2bf6edda711cc4a883e89fd4d3c337c76d6b
+Author: Joan Lledó  <jlledom%member.fsf.org@localhost>
+Date:   Sat Mar 12 19:28:04 2022 +0100
+
+    Hurd: Fix initialization order
+    
+    This allows non-root programs to to rely on /servers/bus/pci
+    
+    Message-Id: <20220312182804.9318-2-jlledom%mailfence.com@localhost>
+    
+    Reviewed-by: Samuel Thibault <samuel.thibault%ens-lyon.org@localhost>
+
+commit 4ef1660667425c0f171949aacae9d07b10a40d7f
+Author: Damien Zammit <damien%zamaudio.com@localhost>
+Date:   Tue Feb 15 06:44:23 2022 +0000
+
+    hurd: Don't necessarily look up _SERVERS_BUS_PCI
+    
+    This allows the fallback mechanism in the hurd create method to be
+    used in the map range method by reusing the mach port that
+    corresponds to the root of the pci filesystem.
+    
+    Message-Id: <20220215064411.68671-1-damien%zamaudio.com@localhost>
+    
+    Reviewed-by: Samuel Thibault <samuel.thibault%ens-lyon.org@localhost>
+
+commit 740d2f29700af38b01ca68e3e834db164cc1b789
+Author: Samuel Thibault <samuel.thibault%ens-lyon.org@localhost>
+Date:   Sun Jan 9 01:09:04 2022 +0100
+
+    hurd: Restore initialization order
+    
+    3e0d1cde0187 ("hurd: Implement device memory mapping") was making
+    root-running processes insist on using the pci device, and never try the
+    fs-provided translator. This reverts back to trying the pci device
+    first, but completely, and then revert to the fs-provided translator.
+
+commit 3e0d1cde01872d605c267c61094e44315a3e7467
+Author: Joan Lledó  <jlledom%member.fsf.org@localhost>
+Date:   Wed Jan 5 13:08:01 2022 +0100
+
+    hurd: Implement device memory mapping
+    
+    * src/hurd_pci.c:
+            * Implement device memory mapping functions
+                    * pci_device_hurd_map_range
+                    * pci_device_hurd_unmap_range
+                    * pci_device_hurd_map_legacy
+                    * pci_device_hurd_unmap_legacy
+    * src/x86_pci.h:
+            * Remove unused declarations
+                    * pci_device_x86_map_range()
+                    * pci_device_x86_unmap_range()
+                    * pci_device_x86_map_legacy()
+                    * pci_device_x86_unmap_legacy()
+    * src/x86_pci.c:
+            * Fix port leaks
+            * Make mapping function static again
+            * map_dev_mem(): use device_map() support for offsets
+    Message-Id: <20220105120802.14008-2-jlledom%mailfence.com@localhost>
+    
+    Reviewed-by: Samuel Thibault <samuel.thibault%ens-lyon.org@localhost>
+
+commit 9c01fdd7c02d8b9b5003e659ebca0b3643bd47c4
+Author: Damien Zammit <damien%zamaudio.com@localhost>
+Date:   Wed Apr 7 18:29:13 2021 +1000
+
+    x86: Sort devices by B/D/F due to recursive scan
+
+commit 50e7de7a81be35bb4e5799cb5562d18683c05ade
+Author: Damien Zammit <damien%zamaudio.com@localhost>
+Date:   Sun Mar 7 10:32:33 2021 +1100
+
+    hurd: device_open(pci), /servers/bus/pci fallback
+    
+    Reviewed-by: Samuel Thibault <samuel.thibault%ens-lyon.org@localhost>
+
+commit b4bde8fe4e2872be8d0c527f5c9e155603f5d01f
+Author: Petr Ovtchenkov <ptr%void-ptr.info@localhost>
+Date:   Wed Dec 2 10:52:28 2020 +0300
+
+    missed library installation in meson
+    
+    Signed-off-by: Petr Ovtchenkov <ptr%void-ptr.info@localhost>
+    Reviewed-by: Dylan Baker <dylan%pnwbakers.com@localhost>
+
+commit f51e2f1e96db2acd426ac3f6bb066f314a7eee46
+Author: Dylan Baker <dylan%pnwbakers.com@localhost>
+Date:   Sun Oct 25 11:14:56 2020 -0700
+
+    autoconf: Add meson files to dist tarball
+    
+    Reviewed-by: Eric Anholt <eric%anholt.net@localhost>
+
+commit 89fcd717a60e7a6440b56ff7c82b5eeb80b92a2f
+Author: Dylan Baker <dylan%pnwbakers.com@localhost>
+Date:   Wed Sep 19 16:15:41 2018 -0700
+
+    Add a meson build system
+    
+    I believe this is correct and complete, but I could have missed
+    something on non-linux OSes.
+    
+    Reviewed-by: Eric Anholt <eric%anholt.net@localhost>
+
+commit 1ebcfe918a0da46a5b7ab44fc3ec0e6c65f98043
+Author: Samuel Thibault <samuel.thibault%ens-lyon.org@localhost>
+Date:   Thu Sep 10 00:20:33 2020 +0200
+
+    hurd: Fix map_dev_mem from non-zero address
+    
+    device_map needs to create a big-enough object so it can then be mapped.
+    
+    Signed-off-by: Samuel Thibault <samuel.thibault%ens-lyon.org@localhost>
+
+commit b82b779247b2adb164afed85a7e06cf3ca0d8ade
+Author: Samuel Thibault <samuel.thibault%ens-lyon.org@localhost>
+Date:   Thu Sep 10 00:19:41 2020 +0200
+
+    hurd: Fix letting map_dev_mem map anywhere
+    
+    Signed-off-by: Samuel Thibault <samuel.thibault%ens-lyon.org@localhost>
+
+commit 790ef9888a23fc257a66e742baf3b162b8c1f7c5
+Author: Samuel Thibault <samuel.thibault%ens-lyon.org@localhost>
+Date:   Thu Sep 10 00:18:12 2020 +0200
+
+    hurd: Add missing round up size in map_dev_mem
+    
+    Signed-off-by: Samuel Thibault <samuel.thibault%ens-lyon.org@localhost>
+
+commit 3e5ae795a265b8843c09cba310a5582c909f97a4
+Author: Damien Zammit <damien%zamaudio.com@localhost>
+Date:   Sat Aug 22 22:31:11 2020 +1000
+
+    x86: Remove probe during create, other backends don't do this
+
+commit 9effa77676207d547dc869ecb8c342869e14ef70
+Author: Damien Zammit <damien%zamaudio.com@localhost>
+Date:   Fri May 8 10:22:34 2020 +1000
+
+    x86: Remove mapping of regions during probe - otherwise remapping later fails
+
+commit b37ffbd94b4a270e62b752bdced882ce12b7610c
+Author: Damien Zammit <damien%zamaudio.com@localhost>
+Date:   Fri May 8 10:19:23 2020 +1000
+
+    x86: Use gnumach device instead of /dev/mem on GNU systems && factorise ifdefs



Home | Main Index | Thread Index | Old Index