Terje Bergstrom | 6579324 | 2013-03-22 16:34:03 +0200 | [diff] [blame] | 1 | /* |
Terje Bergstrom | 6579324 | 2013-03-22 16:34:03 +0200 | [diff] [blame] | 2 | * 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 | |
| 22 | enum host1x_class { |
Thierry Reding | e1e9064 | 2013-09-24 13:59:01 +0200 | [diff] [blame] | 23 | HOST1X_CLASS_HOST1X = 0x1, |
| 24 | HOST1X_CLASS_GR2D = 0x51, |
| 25 | HOST1X_CLASS_GR2D_SB = 0x52, |
Terje Bergstrom | 6579324 | 2013-03-22 16:34:03 +0200 | [diff] [blame] | 26 | }; |
| 27 | |
Thierry Reding | 53fa7f7 | 2013-09-24 15:35:40 +0200 | [diff] [blame^] | 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 | |
Terje Bergstrom | 6579324 | 2013-03-22 16:34:03 +0200 | [diff] [blame] | 48 | #endif |