libpciaccess: Changes to 'master'

Mark Kettenis kettenis at kemper.freedesktop.org
Fri Oct 3 13:09:40 PDT 2014


 src/openbsd_pci.c |   31 +++++++++++++++++++++++++------
 1 file changed, 25 insertions(+), 6 deletions(-)

New commits:
commit 9b1bf11c81881c9cc6e6145011cf229978f109f4
Author: Mark Kettenis <kettenis at openbsd.org>
Date:   Mon Sep 29 22:34:25 2014 +0200

    Use PCIOCREADMASK on OpenBSD.
    
    If the machdep.allowaperture sysctl(8) variable is set to 0, writing to PCI
    config space is not allowed.  So instead of writing 0xffffffff to the BARs
    in order to determine their size, use the PCIOCREADMASK ioctl(2) which
    returns the mask of changeable bits that was saved by the kernel when the
    devices was initially probed.
    
    Reviewed-by: Matthieu Herrb <matthieu at herbb.eu>
    Signed-off-by: Mark Kettenis <kettenis at openbsd.org>



More information about the xorg-commit mailing list