diff options
Diffstat (limited to 'drivers/gpu/drm/gma500')
-rw-r--r-- | drivers/gpu/drm/gma500/cdv_device.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/gem.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/intel_bios.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/mid_bios.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/oaktrail_device.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/psb_device.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/psb_drm.h | 91 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/psb_drv.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/psb_drv.h | 2 |
9 files changed, 8 insertions, 99 deletions
diff --git a/drivers/gpu/drm/gma500/cdv_device.c b/drivers/gpu/drm/gma500/cdv_device.c index 87614e0d396a..c0583dfc6d72 100644 --- a/drivers/gpu/drm/gma500/cdv_device.c +++ b/drivers/gpu/drm/gma500/cdv_device.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/backlight.h> | 20 | #include <linux/backlight.h> |
21 | #include <drm/drmP.h> | 21 | #include <drm/drmP.h> |
22 | #include <drm/drm.h> | 22 | #include <drm/drm.h> |
23 | #include "psb_drm.h" | 23 | #include "gma_drm.h" |
24 | #include "psb_drv.h" | 24 | #include "psb_drv.h" |
25 | #include "psb_reg.h" | 25 | #include "psb_reg.h" |
26 | #include "psb_intel_reg.h" | 26 | #include "psb_intel_reg.h" |
diff --git a/drivers/gpu/drm/gma500/gem.c b/drivers/gpu/drm/gma500/gem.c index d74367993989..fdc8b5dee720 100644 --- a/drivers/gpu/drm/gma500/gem.c +++ b/drivers/gpu/drm/gma500/gem.c | |||
@@ -25,7 +25,7 @@ | |||
25 | 25 | ||
26 | #include <drm/drmP.h> | 26 | #include <drm/drmP.h> |
27 | #include <drm/drm.h> | 27 | #include <drm/drm.h> |
28 | #include "psb_drm.h" | 28 | #include "gma_drm.h" |
29 | #include "psb_drv.h" | 29 | #include "psb_drv.h" |
30 | 30 | ||
31 | int psb_gem_init_object(struct drm_gem_object *obj) | 31 | int psb_gem_init_object(struct drm_gem_object *obj) |
diff --git a/drivers/gpu/drm/gma500/intel_bios.c b/drivers/gpu/drm/gma500/intel_bios.c index 096757f9bc89..d4d0c5b8bf91 100644 --- a/drivers/gpu/drm/gma500/intel_bios.c +++ b/drivers/gpu/drm/gma500/intel_bios.c | |||
@@ -20,7 +20,7 @@ | |||
20 | */ | 20 | */ |
21 | #include <drm/drmP.h> | 21 | #include <drm/drmP.h> |
22 | #include <drm/drm.h> | 22 | #include <drm/drm.h> |
23 | #include "psb_drm.h" | 23 | #include "gma_drm.h" |
24 | #include "psb_drv.h" | 24 | #include "psb_drv.h" |
25 | #include "psb_intel_drv.h" | 25 | #include "psb_intel_drv.h" |
26 | #include "psb_intel_reg.h" | 26 | #include "psb_intel_reg.h" |
diff --git a/drivers/gpu/drm/gma500/mid_bios.c b/drivers/gpu/drm/gma500/mid_bios.c index 7115d1a7408f..018ab469772e 100644 --- a/drivers/gpu/drm/gma500/mid_bios.c +++ b/drivers/gpu/drm/gma500/mid_bios.c | |||
@@ -25,7 +25,7 @@ | |||
25 | 25 | ||
26 | #include <drm/drmP.h> | 26 | #include <drm/drmP.h> |
27 | #include <drm/drm.h> | 27 | #include <drm/drm.h> |
28 | #include "psb_drm.h" | 28 | #include "gma_drm.h" |
29 | #include "psb_drv.h" | 29 | #include "psb_drv.h" |
30 | #include "mid_bios.h" | 30 | #include "mid_bios.h" |
31 | 31 | ||
diff --git a/drivers/gpu/drm/gma500/oaktrail_device.c b/drivers/gpu/drm/gma500/oaktrail_device.c index 41c418fa9aee..57ad3ea62be2 100644 --- a/drivers/gpu/drm/gma500/oaktrail_device.c +++ b/drivers/gpu/drm/gma500/oaktrail_device.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include <linux/dmi.h> | 22 | #include <linux/dmi.h> |
23 | #include <drm/drmP.h> | 23 | #include <drm/drmP.h> |
24 | #include <drm/drm.h> | 24 | #include <drm/drm.h> |
25 | #include "psb_drm.h" | 25 | #include "gma_drm.h" |
26 | #include "psb_drv.h" | 26 | #include "psb_drv.h" |
27 | #include "psb_reg.h" | 27 | #include "psb_reg.h" |
28 | #include "psb_intel_reg.h" | 28 | #include "psb_intel_reg.h" |
diff --git a/drivers/gpu/drm/gma500/psb_device.c b/drivers/gpu/drm/gma500/psb_device.c index 46591323595a..9d6959aa8555 100644 --- a/drivers/gpu/drm/gma500/psb_device.c +++ b/drivers/gpu/drm/gma500/psb_device.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/backlight.h> | 20 | #include <linux/backlight.h> |
21 | #include <drm/drmP.h> | 21 | #include <drm/drmP.h> |
22 | #include <drm/drm.h> | 22 | #include <drm/drm.h> |
23 | #include "psb_drm.h" | 23 | #include "gma_drm.h" |
24 | #include "psb_drv.h" | 24 | #include "psb_drv.h" |
25 | #include "psb_reg.h" | 25 | #include "psb_reg.h" |
26 | #include "psb_intel_reg.h" | 26 | #include "psb_intel_reg.h" |
diff --git a/drivers/gpu/drm/gma500/psb_drm.h b/drivers/gpu/drm/gma500/psb_drm.h deleted file mode 100644 index 113686785717..000000000000 --- a/drivers/gpu/drm/gma500/psb_drm.h +++ /dev/null | |||
@@ -1,91 +0,0 @@ | |||
1 | /************************************************************************** | ||
2 | * Copyright (c) 2007-2011, Intel Corporation. | ||
3 | * All Rights Reserved. | ||
4 | * Copyright (c) 2008, Tungsten Graphics Inc. Cedar Park, TX., USA. | ||
5 | * All Rights Reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms and conditions of the GNU General Public License, | ||
9 | * version 2, as published by the Free Software Foundation. | ||
10 | * | ||
11 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
14 | * more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License along with | ||
17 | * this program; if not, write to the Free Software Foundation, Inc., | ||
18 | * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
19 | * | ||
20 | **************************************************************************/ | ||
21 | |||
22 | #ifndef _PSB_DRM_H_ | ||
23 | #define _PSB_DRM_H_ | ||
24 | |||
25 | /* | ||
26 | * Manage the LUT for an output | ||
27 | */ | ||
28 | struct drm_psb_dpst_lut_arg { | ||
29 | uint8_t lut[256]; | ||
30 | int output_id; | ||
31 | }; | ||
32 | |||
33 | /* | ||
34 | * Validate modes | ||
35 | */ | ||
36 | struct drm_psb_mode_operation_arg { | ||
37 | u32 obj_id; | ||
38 | u16 operation; | ||
39 | struct drm_mode_modeinfo mode; | ||
40 | u64 data; | ||
41 | }; | ||
42 | |||
43 | /* | ||
44 | * Query the stolen memory for smarter management of | ||
45 | * memory by the server | ||
46 | */ | ||
47 | struct drm_psb_stolen_memory_arg { | ||
48 | u32 base; | ||
49 | u32 size; | ||
50 | }; | ||
51 | |||
52 | struct drm_psb_get_pipe_from_crtc_id_arg { | ||
53 | /** ID of CRTC being requested **/ | ||
54 | u32 crtc_id; | ||
55 | /** pipe of requested CRTC **/ | ||
56 | u32 pipe; | ||
57 | }; | ||
58 | |||
59 | struct drm_psb_gem_create { | ||
60 | __u64 size; | ||
61 | __u32 handle; | ||
62 | __u32 flags; | ||
63 | #define GMA_GEM_CREATE_STOLEN 1 /* Stolen memory can be used */ | ||
64 | }; | ||
65 | |||
66 | struct drm_psb_gem_mmap { | ||
67 | __u32 handle; | ||
68 | __u32 pad; | ||
69 | /** | ||
70 | * Fake offset to use for subsequent mmap call | ||
71 | * | ||
72 | * This is a fixed-size type for 32/64 compatibility. | ||
73 | */ | ||
74 | __u64 offset; | ||
75 | }; | ||
76 | |||
77 | /* Controlling the kernel modesetting buffers */ | ||
78 | |||
79 | #define DRM_GMA_GEM_CREATE 0x00 /* Create a GEM object */ | ||
80 | #define DRM_GMA_GEM_MMAP 0x01 /* Map GEM memory */ | ||
81 | #define DRM_GMA_STOLEN_MEMORY 0x02 /* Report stolen memory */ | ||
82 | #define DRM_GMA_2D_OP 0x03 /* Will be merged later */ | ||
83 | #define DRM_GMA_GAMMA 0x04 /* Set gamma table */ | ||
84 | #define DRM_GMA_ADB 0x05 /* Get backlight */ | ||
85 | #define DRM_GMA_DPST_BL 0x06 /* Set backlight */ | ||
86 | #define DRM_GMA_GET_PIPE_FROM_CRTC_ID 0x1 /* CRTC to physical pipe# */ | ||
87 | #define DRM_GMA_MODE_OPERATION 0x07 /* Mode validation/DC set */ | ||
88 | #define PSB_MODE_OPERATION_MODE_VALID 0x01 | ||
89 | |||
90 | |||
91 | #endif | ||
diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c index 062df075a717..4a72747e8602 100644 --- a/drivers/gpu/drm/gma500/psb_drv.c +++ b/drivers/gpu/drm/gma500/psb_drv.c | |||
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | #include <drm/drmP.h> | 22 | #include <drm/drmP.h> |
23 | #include <drm/drm.h> | 23 | #include <drm/drm.h> |
24 | #include "psb_drm.h" | 24 | #include "gma_drm.h" |
25 | #include "psb_drv.h" | 25 | #include "psb_drv.h" |
26 | #include "framebuffer.h" | 26 | #include "framebuffer.h" |
27 | #include "psb_reg.h" | 27 | #include "psb_reg.h" |
diff --git a/drivers/gpu/drm/gma500/psb_drv.h b/drivers/gpu/drm/gma500/psb_drv.h index ffb05f2c79e1..5e6171ab8824 100644 --- a/drivers/gpu/drm/gma500/psb_drv.h +++ b/drivers/gpu/drm/gma500/psb_drv.h | |||
@@ -25,7 +25,7 @@ | |||
25 | #include <drm/drmP.h> | 25 | #include <drm/drmP.h> |
26 | #include "drm_global.h" | 26 | #include "drm_global.h" |
27 | #include "gem_glue.h" | 27 | #include "gem_glue.h" |
28 | #include "psb_drm.h" | 28 | #include "gma_drm.h" |
29 | #include "psb_reg.h" | 29 | #include "psb_reg.h" |
30 | #include "psb_intel_drv.h" | 30 | #include "psb_intel_drv.h" |
31 | #include "gtt.h" | 31 | #include "gtt.h" |