diff options
author | Thierry Reding <treding@nvidia.com> | 2013-09-24 09:35:40 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2013-10-31 04:20:10 -0400 |
commit | 53fa7f7204c97dc0c86b99ff8365ad6a7b2ebd78 (patch) | |
tree | dbcbfc81863faa444f29de276f4a6a8e3303b42e /include/linux/host1x.h | |
parent | e1e906448d2fc6f5a69e1967e00868f0cbfbb566 (diff) |
drm/tegra: Introduce tegra_drm_client structure
This structure derives from host1x_client. DRM-specific fields are moved
from host1x_client to this structure, so that host1x_client can remain
agnostic of DRM.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/linux/host1x.h')
-rw-r--r-- | include/linux/host1x.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/host1x.h b/include/linux/host1x.h index fe09939800bc..d429a938ba13 100644 --- a/include/linux/host1x.h +++ b/include/linux/host1x.h | |||
@@ -25,4 +25,24 @@ enum host1x_class { | |||
25 | HOST1X_CLASS_GR2D_SB = 0x52, | 25 | HOST1X_CLASS_GR2D_SB = 0x52, |
26 | }; | 26 | }; |
27 | 27 | ||
28 | struct host1x_client; | ||
29 | |||
30 | struct host1x_client_ops { | ||
31 | int (*init)(struct host1x_client *client); | ||
32 | int (*exit)(struct host1x_client *client); | ||
33 | }; | ||
34 | |||
35 | struct host1x_client { | ||
36 | struct list_head list; | ||
37 | struct device *dev; | ||
38 | |||
39 | const struct host1x_client_ops *ops; | ||
40 | |||
41 | enum host1x_class class; | ||
42 | struct host1x_channel *channel; | ||
43 | |||
44 | struct host1x_syncpt **syncpts; | ||
45 | unsigned int num_syncpts; | ||
46 | }; | ||
47 | |||
28 | #endif | 48 | #endif |