libpciaccess: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 10 18:59:59 UTC 2019


 configure.ac            |    8 
 src/common_init.c       |    4 
 src/freebsd_pci.c       |  432 ++++++++++++++++++------------------------------
 src/pciaccess_private.h |    1 
 4 files changed, 169 insertions(+), 276 deletions(-)

New commits:
commit 6e3837284372d70a9427918f622bf1dc7e2a3db6
Author: Niclas Zeising <zeising at daemonic.se>
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 at daemonic.se>

commit e8c7e461e43e96f7cf8b121d20d83dc6d8997f91
Author: Niclas Zeising <zeising at daemonic.se>
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 at daemonic.se>

commit b40f387048a5c7b280d0c83d3af9d34ceca7f4f8
Author: Niclas Zeising <zeising at daemonic.se>
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 at daemonic.se>

commit baa4084474665e34a8d6a9bba0e97d9aa5dcd88a
Author: Niclas Zeising <zeising at daemonic.se>
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 at daemonic.se>

commit 976e661ee193941f9928353db365f14654a934db
Author: Niclas Zeising <zeising at daemonic.se>
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 at daemonic.se>
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 at daemonic.se>
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 at daemonic.se>

commit 735c8a5f6649d1b13fdc932f1b0b1e9e94512949
Author: Niclas Zeising <zeising at daemonic.se>
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 at daemonic.se>

commit 4fef4d2978619e9f198a17176afc88ba27ff6ab7
Author: Niclas Zeising <zeising at daemonic.se>
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 at daemonic.se>



More information about the xorg-commit mailing list