OSDN Git Service

libdrm: Add get_sysctl_pci_bus_info for FreeBSD
authorEmmanuel Vadot <manu@FreeBSD.Org>
Tue, 21 Jan 2020 17:49:11 +0000 (18:49 +0100)
committerEmmanuel Vadot <manu@FreeBSD.org>
Tue, 21 Apr 2020 17:26:54 +0000 (19:26 +0200)
commit379113724f9860aea174674865d1d188b5c10f4c
tree467e7ce2f3e6df46be182a4961f2abcd8eac41bf
parentbb584b8fd24e956d68b8f040a5c6cc0190980903
libdrm: Add get_sysctl_pci_bus_info for FreeBSD

The FreeBSD drm driver expose a sysctl hw.dri.%d.busid which contain
the busid.
Use this sysctl to parse the busid information based on the major/minor
that allow us to implement FreeBSD support for drmParsePciBusInfo.

Signed-off-by: Emmanuel Vadot <manu@FreeBSD.org>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
xf86drm.c