]> git.karo-electronics.de Git - karo-tx-linux.git/blob - drivers/mxc/gpu-viv/hal/kernel/archvg/gc_hal_kernel_hardware_vg.h
gpu: vivante: Update driver from Freescale 3.10.53-1.1-ga BSP
[karo-tx-linux.git] / drivers / mxc / gpu-viv / hal / kernel / archvg / gc_hal_kernel_hardware_vg.h
1 /****************************************************************************
2 *
3 *    Copyright (C) 2005 - 2014 by Vivante Corp.
4 *
5 *    This program is free software; you can redistribute it and/or modify
6 *    it under the terms of the GNU General Public License as published by
7 *    the Free Software Foundation; either version 2 of the license, or
8 *    (at your option) any later version.
9 *
10 *    This program is distributed in the hope that it will be useful,
11 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 *    GNU General Public License for more details.
14 *
15 *    You should have received a copy of the GNU General Public License
16 *    along with this program; if not write to the Free Software
17 *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 *
19 *****************************************************************************/
20
21
22 #ifndef __gc_hal_kernel_hardware_vg_h_
23 #define __gc_hal_kernel_hardware_vg_h_
24
25 /* gckHARDWARE object. */
26 struct _gckVGHARDWARE
27 {
28     /* Object. */
29     gcsOBJECT                   object;
30
31     /* Pointer to gckKERNEL object. */
32     gckVGKERNEL                 kernel;
33
34     /* Pointer to gckOS object. */
35     gckOS                       os;
36
37     /* Chip characteristics. */
38     gceCHIPMODEL                chipModel;
39     gctUINT32                   chipRevision;
40     gctUINT32                   chipFeatures;
41     gctUINT32                   chipMinorFeatures;
42     gctUINT32                   chipMinorFeatures2;
43     gctBOOL                     allowFastClear;
44
45     /* Features. */
46     gctBOOL                     fe20;
47     gctBOOL                     vg20;
48     gctBOOL                     vg21;
49
50     /* Event mask. */
51     gctUINT32                   eventMask;
52
53     gctBOOL                     clockState;
54     gctBOOL                     powerState;
55     gctPOINTER                  powerMutex;
56     gctUINT32                   powerProcess;
57     gctUINT32                   powerThread;
58     gceCHIPPOWERSTATE           chipPowerState;
59     gceCHIPPOWERSTATE           chipPowerStateGlobal;
60     gctISRMANAGERFUNC           startIsr;
61     gctISRMANAGERFUNC           stopIsr;
62     gctPOINTER                  isrContext;
63     gctPOINTER                  pageTableDirty;
64 #if gcdPOWEROFF_TIMEOUT
65     gctUINT32                   powerOffTime;
66     gctUINT32                   powerOffTimeout;
67     gctPOINTER                  powerOffTimer;
68 #endif
69
70     gctBOOL                     powerManagement;
71 };
72
73 #endif /* __gc_hal_kernel_hardware_h_ */
74