diff options
author | Thierry Reding <treding@nvidia.com> | 2013-09-24 07:59:01 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2013-10-31 04:20:10 -0400 |
commit | e1e906448d2fc6f5a69e1967e00868f0cbfbb566 (patch) | |
tree | 7b28d7de7569a338f6d219b62edc9b14007411f4 | |
parent | 3be8274341499cfc258eddda29f626d7be10dde5 (diff) |
gpu: host1x: Make host1x header file public
In preparation to support host1x clients other than DRM, move this
header into a public location.
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | MAINTAINERS | 1 | ||||
-rw-r--r-- | drivers/gpu/host1x/drm/drm.h | 6 | ||||
-rw-r--r-- | drivers/gpu/host1x/drm/gr2d.c | 1 | ||||
-rw-r--r-- | drivers/gpu/host1x/hw/channel_hw.c | 3 | ||||
-rw-r--r-- | include/linux/host1x.h (renamed from drivers/gpu/host1x/host1x.h) | 8 |
5 files changed, 9 insertions, 10 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 284969fa2896..89f347ae077f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -2817,6 +2817,7 @@ L: linux-tegra@vger.kernel.org | |||
2817 | T: git git://anongit.freedesktop.org/tegra/linux.git | 2817 | T: git git://anongit.freedesktop.org/tegra/linux.git |
2818 | S: Maintained | 2818 | S: Maintained |
2819 | F: drivers/gpu/host1x/ | 2819 | F: drivers/gpu/host1x/ |
2820 | F: include/linux/host1x.h | ||
2820 | F: include/uapi/drm/tegra_drm.h | 2821 | F: include/uapi/drm/tegra_drm.h |
2821 | F: Documentation/devicetree/bindings/gpu/nvidia,tegra20-host1x.txt | 2822 | F: Documentation/devicetree/bindings/gpu/nvidia,tegra20-host1x.txt |
2822 | 2823 | ||
diff --git a/drivers/gpu/host1x/drm/drm.h b/drivers/gpu/host1x/drm/drm.h index dd6b98b18640..78754f6a9153 100644 --- a/drivers/gpu/host1x/drm/drm.h +++ b/drivers/gpu/host1x/drm/drm.h | |||
@@ -10,14 +10,14 @@ | |||
10 | #ifndef HOST1X_DRM_H | 10 | #ifndef HOST1X_DRM_H |
11 | #define HOST1X_DRM_H 1 | 11 | #define HOST1X_DRM_H 1 |
12 | 12 | ||
13 | #include <uapi/drm/tegra_drm.h> | ||
14 | #include <linux/host1x.h> | ||
15 | |||
13 | #include <drm/drmP.h> | 16 | #include <drm/drmP.h> |
14 | #include <drm/drm_crtc_helper.h> | 17 | #include <drm/drm_crtc_helper.h> |
15 | #include <drm/drm_edid.h> | 18 | #include <drm/drm_edid.h> |
16 | #include <drm/drm_fb_helper.h> | 19 | #include <drm/drm_fb_helper.h> |
17 | #include <drm/drm_fixed.h> | 20 | #include <drm/drm_fixed.h> |
18 | #include <uapi/drm/tegra_drm.h> | ||
19 | |||
20 | #include "host1x.h" | ||
21 | 21 | ||
22 | struct tegra_fb { | 22 | struct tegra_fb { |
23 | struct drm_framebuffer base; | 23 | struct drm_framebuffer base; |
diff --git a/drivers/gpu/host1x/drm/gr2d.c b/drivers/gpu/host1x/drm/gr2d.c index f045f7c0a91c..2691e333e0e2 100644 --- a/drivers/gpu/host1x/drm/gr2d.c +++ b/drivers/gpu/host1x/drm/gr2d.c | |||
@@ -20,7 +20,6 @@ | |||
20 | #include "drm.h" | 20 | #include "drm.h" |
21 | #include "gem.h" | 21 | #include "gem.h" |
22 | #include "job.h" | 22 | #include "job.h" |
23 | #include "host1x.h" | ||
24 | #include "host1x_bo.h" | 23 | #include "host1x_bo.h" |
25 | #include "host1x_client.h" | 24 | #include "host1x_client.h" |
26 | #include "syncpt.h" | 25 | #include "syncpt.h" |
diff --git a/drivers/gpu/host1x/hw/channel_hw.c b/drivers/gpu/host1x/hw/channel_hw.c index ee199623e365..c950bc655ade 100644 --- a/drivers/gpu/host1x/hw/channel_hw.c +++ b/drivers/gpu/host1x/hw/channel_hw.c | |||
@@ -16,10 +16,11 @@ | |||
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <linux/host1x.h> | ||
19 | #include <linux/slab.h> | 20 | #include <linux/slab.h> |
21 | |||
20 | #include <trace/events/host1x.h> | 22 | #include <trace/events/host1x.h> |
21 | 23 | ||
22 | #include "host1x.h" | ||
23 | #include "host1x_bo.h" | 24 | #include "host1x_bo.h" |
24 | #include "channel.h" | 25 | #include "channel.h" |
25 | #include "dev.h" | 26 | #include "dev.h" |
diff --git a/drivers/gpu/host1x/host1x.h b/include/linux/host1x.h index a2bc1e65e972..fe09939800bc 100644 --- a/drivers/gpu/host1x/host1x.h +++ b/include/linux/host1x.h | |||
@@ -1,6 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Tegra host1x driver | ||
3 | * | ||
4 | * Copyright (c) 2009-2013, NVIDIA Corporation. All rights reserved. | 2 | * Copyright (c) 2009-2013, NVIDIA Corporation. All rights reserved. |
5 | * | 3 | * |
6 | * This program is free software; you can redistribute it and/or modify | 4 | * This program is free software; you can redistribute it and/or modify |
@@ -22,9 +20,9 @@ | |||
22 | #define __LINUX_HOST1X_H | 20 | #define __LINUX_HOST1X_H |
23 | 21 | ||
24 | enum host1x_class { | 22 | enum host1x_class { |
25 | HOST1X_CLASS_HOST1X = 0x1, | 23 | HOST1X_CLASS_HOST1X = 0x1, |
26 | HOST1X_CLASS_GR2D = 0x51, | 24 | HOST1X_CLASS_GR2D = 0x51, |
27 | HOST1X_CLASS_GR2D_SB = 0x52 | 25 | HOST1X_CLASS_GR2D_SB = 0x52, |
28 | }; | 26 | }; |
29 | 27 | ||
30 | #endif | 28 | #endif |