1*c58db6daSriastradh /* $NetBSD: drm_irq.h,v 1.4 2021/12/19 10:32:47 riastradh Exp $ */ 24e390cabSriastradh 34e390cabSriastradh /* 44e390cabSriastradh * Copyright 2016 Intel Corp. 54e390cabSriastradh * 64e390cabSriastradh * Permission is hereby granted, free of charge, to any person obtaining a 74e390cabSriastradh * copy of this software and associated documentation files (the "Software"), 84e390cabSriastradh * to deal in the Software without restriction, including without limitation 94e390cabSriastradh * the rights to use, copy, modify, merge, publish, distribute, sublicense, 104e390cabSriastradh * and/or sell copies of the Software, and to permit persons to whom the 114e390cabSriastradh * Software is furnished to do so, subject to the following conditions: 124e390cabSriastradh * 134e390cabSriastradh * The above copyright notice and this permission notice (including the next 144e390cabSriastradh * paragraph) shall be included in all copies or substantial portions of the 154e390cabSriastradh * Software. 164e390cabSriastradh * 174e390cabSriastradh * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 184e390cabSriastradh * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 194e390cabSriastradh * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 204e390cabSriastradh * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 214e390cabSriastradh * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 224e390cabSriastradh * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 234e390cabSriastradh * OTHER DEALINGS IN THE SOFTWARE. 244e390cabSriastradh */ 254e390cabSriastradh 264e390cabSriastradh #ifndef _DRM_IRQ_H_ 274e390cabSriastradh #define _DRM_IRQ_H_ 284e390cabSriastradh 29*c58db6daSriastradh #ifdef __NetBSD__ 30*c58db6daSriastradh #include <drm/drm_irq_netbsd.h> 31*c58db6daSriastradh #endif 32*c58db6daSriastradh 334e390cabSriastradh struct drm_device; 344e390cabSriastradh 35b88f292dSriastradh #ifdef __NetBSD__ 36b88f292dSriastradh int drm_irq_install(struct drm_device *dev); 37b88f292dSriastradh #else 384e390cabSriastradh int drm_irq_install(struct drm_device *dev, int irq); 39b88f292dSriastradh #endif 40b88f292dSriastradh 414e390cabSriastradh int drm_irq_uninstall(struct drm_device *dev); 424e390cabSriastradh 434e390cabSriastradh #endif 44