[PATCH libdrm v2 2/5] xf86drm: implement drmParseSubsystemType for OpenBSD

Jonathan Gray jsg at jsg.id.au
Thu Dec 1 04:18:40 UTC 2016

Implement drmParseSubsystemType for OpenBSD by always returning
DRM_BUS_PCI.  No non-pci drm drivers are in the kernel and this is
unlikely to change anytime soon as the existing ones aren't permissively

Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
 xf86drm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xf86drm.c b/xf86drm.c
index f93ebc0..35c1fc4 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -2887,6 +2887,8 @@ static int drmParseSubsystemType(int maj, int min)
         return DRM_BUS_PCI;
     return -EINVAL;
+#elif defined(__OpenBSD__)
+	return DRM_BUS_PCI;
 #warning "Missing implementation of drmParseSubsystemType"
     return -EINVAL;

More information about the dri-devel mailing list