xf86drm: Add platform and host1x bus support

Graphics / Mesa 3D Graphics Library / libdrm - Thierry Reding [nvidia.com] - 20 January 2017 10:27 EST

ARM SoCs usually have their DRM/KMS devices on the platform bus, so add support for that to enable these devices to be used with the drmDevice infrastructure.

NVIDIA Tegra SoCs have an additional level in the hierarchy and DRM/KMS devices can also be on the host1x bus. This is mostly equivalent to the platform bus.

v4:- continue on error to process platform or host1x device

v3:- guard Linux-specific sysfs parsing code with #ifdef __linux__

v2:- be careful not to overflow the full name- read compatible strings into device info

7b1f37f xf86drm: Add platform and host1x bus support
xf86drm.c | 300 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
xf86drm.h | 30 ++++++-
2 files changed, 328 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org

  • Share