xref: /openbsd-src/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.h (revision f005ef32267c16bdb134f0e9fa4477dbe07c263a)
1fb4d8502Sjsg /* amdgpu_drv.h -- Private header for amdgpu driver -*- linux-c -*-
2fb4d8502Sjsg  *
3fb4d8502Sjsg  * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
4fb4d8502Sjsg  * Copyright 2000 VA Linux Systems, Inc., Fremont, California.
5fb4d8502Sjsg  * All rights reserved.
6fb4d8502Sjsg  *
7fb4d8502Sjsg  * Permission is hereby granted, free of charge, to any person obtaining a
8fb4d8502Sjsg  * copy of this software and associated documentation files (the "Software"),
9fb4d8502Sjsg  * to deal in the Software without restriction, including without limitation
10fb4d8502Sjsg  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11fb4d8502Sjsg  * and/or sell copies of the Software, and to permit persons to whom the
12fb4d8502Sjsg  * Software is furnished to do so, subject to the following conditions:
13fb4d8502Sjsg  *
14fb4d8502Sjsg  * The above copyright notice and this permission notice (including the next
15fb4d8502Sjsg  * paragraph) shall be included in all copies or substantial portions of the
16fb4d8502Sjsg  * Software.
17fb4d8502Sjsg  *
18fb4d8502Sjsg  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19fb4d8502Sjsg  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20fb4d8502Sjsg  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
21fb4d8502Sjsg  * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
22fb4d8502Sjsg  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
23fb4d8502Sjsg  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24fb4d8502Sjsg  * DEALINGS IN THE SOFTWARE.
25fb4d8502Sjsg  *
26fb4d8502Sjsg  */
27fb4d8502Sjsg 
28fb4d8502Sjsg #ifndef __AMDGPU_DRV_H__
29fb4d8502Sjsg #define __AMDGPU_DRV_H__
30fb4d8502Sjsg 
31fb4d8502Sjsg #include <linux/firmware.h>
32fb4d8502Sjsg #include <linux/platform_device.h>
33fb4d8502Sjsg 
34fb4d8502Sjsg #include "amd_shared.h"
35fb4d8502Sjsg 
36fb4d8502Sjsg /* General customization:
37fb4d8502Sjsg  */
38fb4d8502Sjsg 
39fb4d8502Sjsg #define DRIVER_AUTHOR		"AMD linux driver team"
40fb4d8502Sjsg 
41fb4d8502Sjsg #define DRIVER_NAME		"amdgpu"
42fb4d8502Sjsg #define DRIVER_DESC		"AMD GPU"
43fb4d8502Sjsg #define DRIVER_DATE		"20150101"
44fb4d8502Sjsg 
45*f005ef32Sjsg extern const struct drm_driver amdgpu_partition_driver;
46*f005ef32Sjsg 
47fb4d8502Sjsg long amdgpu_drm_ioctl(struct file *filp,
48fb4d8502Sjsg 		      unsigned int cmd, unsigned long arg);
49fb4d8502Sjsg 
501bb76ff1Sjsg long amdgpu_kms_compat_ioctl(struct file *filp,
511bb76ff1Sjsg 			     unsigned int cmd, unsigned long arg);
521bb76ff1Sjsg 
53fb4d8502Sjsg #endif
54