drm: Implement parts of the Linux irq subsystem

Operating Systems / DragonFlyBSD - François Tigeot [wolfpond.org] - 25 April 2018 10:18 EDT

- Allowing to reuse more drm drivers code as-is from Linux

- Also allowing Linux irq functions to return expected status codes, increasing general driver robustness

Tested-with: many i915 devices, Radeon HD6450

183e237389 drm: Implement parts of the Linux irq subsystem
sys/conf/files | 1 +
sys/dev/drm/drm/Makefile | 1 +
sys/dev/drm/drm_dragonfly.c | 13 ++++
sys/dev/drm/drm_drv.c | 29 --------
sys/dev/drm/drm_fops.c | 9 ---
sys/dev/drm/drm_irq.c | 16 +++--
sys/dev/drm/i915/i915_irq.c | 60 +++++++++++++---
sys/dev/drm/include/drm/drmP.h | 7 +-
sys/dev/drm/include/linux/interrupt.h | 11 ++-
sys/dev/drm/include/linux/irqreturn.h | 8 ++-
sys/dev/drm/include/linux/pci.h | 5 ++
sys/dev/drm/linux_irq.c | 127 ++++++++++++++++++++++++++++++++++
sys/dev/drm/radeon/radeon_irq_kms.c | 12 ++--
sys/dev/drm/radeon/radeon_irq_kms.h | 2 +-
14 files changed, 229 insertions(+), 72 deletions(-)

Upstream: gitweb.dragonflybsd.org


  • Share