blob: e5c5ef303c57d5ba915e17d6852c1ae48a438db8 [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/* 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
Lucille Sylvester808eca22011-11-03 10:26:29 -070022#define Z180_DEFAULT_PWRSCALE_POLICY NULL
23
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070024struct z180_ringbuffer {
25 unsigned int prevctx;
26 struct kgsl_memdesc cmdbufdesc;
27};
28
29struct z180_device {
30 struct kgsl_device dev; /* Must be first field in this struct */
31 int current_timestamp;
32 int timestamp;
33 struct z180_ringbuffer ringbuffer;
34 spinlock_t cmdwin_lock;
35};
36
37#endif /* __Z180_H */