Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame^] | 1 | /* Copyright (c) 2008-2011, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | * |
| 12 | */ |
| 13 | #ifndef __Z180_H |
| 14 | #define __Z180_H |
| 15 | |
| 16 | #include "kgsl_device.h" |
| 17 | |
| 18 | #define DEVICE_2D_NAME "kgsl-2d" |
| 19 | #define DEVICE_2D0_NAME "kgsl-2d0" |
| 20 | #define DEVICE_2D1_NAME "kgsl-2d1" |
| 21 | |
| 22 | struct z180_ringbuffer { |
| 23 | unsigned int prevctx; |
| 24 | struct kgsl_memdesc cmdbufdesc; |
| 25 | }; |
| 26 | |
| 27 | struct z180_device { |
| 28 | struct kgsl_device dev; /* Must be first field in this struct */ |
| 29 | int current_timestamp; |
| 30 | int timestamp; |
| 31 | struct z180_ringbuffer ringbuffer; |
| 32 | spinlock_t cmdwin_lock; |
| 33 | }; |
| 34 | |
| 35 | #endif /* __Z180_H */ |