blob: d429a938ba133fcdde68f3688867bd3320396720 [file] [log] [blame]
Terje Bergstrom65793242013-03-22 16:34:03 +02001/*
Terje Bergstrom65793242013-03-22 16:34:03 +02002 * Copyright (c) 2009-2013, NVIDIA Corporation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19#ifndef __LINUX_HOST1X_H
20#define __LINUX_HOST1X_H
21
22enum host1x_class {
Thierry Redinge1e90642013-09-24 13:59:01 +020023 HOST1X_CLASS_HOST1X = 0x1,
24 HOST1X_CLASS_GR2D = 0x51,
25 HOST1X_CLASS_GR2D_SB = 0x52,
Terje Bergstrom65793242013-03-22 16:34:03 +020026};
27
Thierry Reding53fa7f72013-09-24 15:35:40 +020028struct host1x_client;
29
30struct host1x_client_ops {
31 int (*init)(struct host1x_client *client);
32 int (*exit)(struct host1x_client *client);
33};
34
35struct 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
Terje Bergstrom65793242013-03-22 16:34:03 +020048#endif