xref: /netbsd-src/sys/external/bsd/drm2/dist/include/drm/drm_irq.h (revision c58db6da0a032dee0aaaa7fd27f9ee2294505f83)
1 /*	$NetBSD: drm_irq.h,v 1.4 2021/12/19 10:32:47 riastradh Exp $	*/
2 
3 /*
4  * Copyright 2016 Intel Corp.
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a
7  * copy of this software and associated documentation files (the "Software"),
8  * to deal in the Software without restriction, including without limitation
9  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  * and/or sell copies of the Software, and to permit persons to whom the
11  * Software is furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice (including the next
14  * paragraph) shall be included in all copies or substantial portions of the
15  * Software.
16  *
17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
20  * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
21  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23  * OTHER DEALINGS IN THE SOFTWARE.
24  */
25 
26 #ifndef _DRM_IRQ_H_
27 #define _DRM_IRQ_H_
28 
29 #ifdef __NetBSD__
30 #include <drm/drm_irq_netbsd.h>
31 #endif
32 
33 struct drm_device;
34 
35 #ifdef __NetBSD__
36 int drm_irq_install(struct drm_device *dev);
37 #else
38 int drm_irq_install(struct drm_device *dev, int irq);
39 #endif
40 
41 int drm_irq_uninstall(struct drm_device *dev);
42 
43 #endif
44