aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/pvr/kernelbuffer.h
diff options
context:
space:
mode:
authorHemant Hariyani <hemanthariyani@ti.com>2011-08-25 02:57:15 -0400
committerPaolo Pisati <paolo.pisati@canonical.com>2012-08-17 04:18:33 -0400
commit6e90775f610ab87bd86a79f189aca993e44b3bdf (patch)
tree3b44756d6a8e69dea6c0dbeb2244482b31d32ffc /drivers/gpu/pvr/kernelbuffer.h
parent1d63da95fb8e073f94c3c63d82f91c49bb2bd08a (diff)
SGX-KM Initial SGX driver integration for 2.6.35 kernel.
This is the first version of SGX driver integration to ensure UI boot-up. Power management and hwmod modifications will be added as patches. Change-Id: If71e6cd651a53f4809e7b978b693cb7d1a89178d Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
Diffstat (limited to 'drivers/gpu/pvr/kernelbuffer.h')
-rw-r--r--drivers/gpu/pvr/kernelbuffer.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/drivers/gpu/pvr/kernelbuffer.h b/drivers/gpu/pvr/kernelbuffer.h
new file mode 100644
index 00000000000..5243aaf4a92
--- /dev/null
+++ b/drivers/gpu/pvr/kernelbuffer.h
@@ -0,0 +1,72 @@
1/**********************************************************************
2 *
3 * Copyright(c) 2008 Imagination Technologies Ltd. All rights reserved.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope it will be useful but, except
10 * as otherwise stated in writing, without any warranty; without even the
11 * implied warranty of merchantability or fitness for a particular purpose.
12 * See the GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
17 *
18 * The full GNU General Public License is included in this distribution in
19 * the file called "COPYING".
20 *
21 * Contact Information:
22 * Imagination Technologies Ltd. <gpl-support@imgtec.com>
23 * Home Park Estate, Kings Langley, Herts, WD4 8LZ, UK
24 *
25 ******************************************************************************/
26
27#if !defined (__KERNELBUFFER_H__)
28#define __KERNELBUFFER_H__
29
30#if defined (__cplusplus)
31extern "C" {
32#endif
33
34typedef PVRSRV_ERROR (*PFN_OPEN_BC_DEVICE)(IMG_UINT32, IMG_HANDLE*);
35typedef PVRSRV_ERROR (*PFN_CLOSE_BC_DEVICE)(IMG_UINT32, IMG_HANDLE);
36typedef PVRSRV_ERROR (*PFN_GET_BC_INFO)(IMG_HANDLE, BUFFER_INFO*);
37typedef PVRSRV_ERROR (*PFN_GET_BC_BUFFER)(IMG_HANDLE, IMG_UINT32, PVRSRV_SYNC_DATA*, IMG_HANDLE*);
38
39typedef struct PVRSRV_BC_SRV2BUFFER_KMJTABLE_TAG
40{
41 IMG_UINT32 ui32TableSize;
42 PFN_OPEN_BC_DEVICE pfnOpenBCDevice;
43 PFN_CLOSE_BC_DEVICE pfnCloseBCDevice;
44 PFN_GET_BC_INFO pfnGetBCInfo;
45 PFN_GET_BC_BUFFER pfnGetBCBuffer;
46 PFN_GET_BUFFER_ADDR pfnGetBufferAddr;
47
48} PVRSRV_BC_SRV2BUFFER_KMJTABLE;
49
50
51typedef PVRSRV_ERROR (*PFN_BC_REGISTER_BUFFER_DEV)(PVRSRV_BC_SRV2BUFFER_KMJTABLE*, IMG_UINT32*);
52typedef IMG_VOID (*PFN_BC_SCHEDULE_DEVICES)(IMG_VOID);
53typedef PVRSRV_ERROR (*PFN_BC_REMOVE_BUFFER_DEV)(IMG_UINT32);
54
55typedef struct PVRSRV_BC_BUFFER2SRV_KMJTABLE_TAG
56{
57 IMG_UINT32 ui32TableSize;
58 PFN_BC_REGISTER_BUFFER_DEV pfnPVRSRVRegisterBCDevice;
59 PFN_BC_SCHEDULE_DEVICES pfnPVRSRVScheduleDevices;
60 PFN_BC_REMOVE_BUFFER_DEV pfnPVRSRVRemoveBCDevice;
61
62} PVRSRV_BC_BUFFER2SRV_KMJTABLE, *PPVRSRV_BC_BUFFER2SRV_KMJTABLE;
63
64typedef IMG_BOOL (*PFN_BC_GET_PVRJTABLE) (PPVRSRV_BC_BUFFER2SRV_KMJTABLE);
65
66IMG_IMPORT IMG_BOOL PVRGetBufferClassJTable(PVRSRV_BC_BUFFER2SRV_KMJTABLE *psJTable);
67
68#if defined (__cplusplus)
69}
70#endif
71
72#endif