A similar, more complete patch is already in the port of libpciaccess in the FreeBSD xorg development repo. That patch has also been more thoroughly tested. See https://wiki.freebsd.org/Xorg for details on how to obtain the xorg-dev repo. Regards! -- Niclas Zeising