1 /**********************************************************************
3 * Copyright(c) 2008 Imagination Technologies Ltd. All rights reserved.
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.
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.
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.
18 * The full GNU General Public License is included in this distribution in
19 * the file called "COPYING".
21 * Contact Information:
22 * Imagination Technologies Ltd. <gpl-support@imgtec.com>
23 * Home Park Estate, Kings Langley, Herts, WD4 8LZ, UK
25 ******************************************************************************/
30 #if defined(__cplusplus)
34 #define UPDATE_QUEUE_ROFF(psQueue, ui32Size) \
35 psQueue->ui32ReadOffset = (psQueue->ui32ReadOffset + ui32Size) \
36 & (psQueue->ui32QueueSize - 1);
38 typedef struct _COMMAND_COMPLETE_DATA_ {
41 IMG_UINT32 ui32DstSyncCount;
42 IMG_UINT32 ui32SrcSyncCount;
43 PVRSRV_SYNC_OBJECT *psDstSync;
44 PVRSRV_SYNC_OBJECT *psSrcSync;
45 } COMMAND_COMPLETE_DATA, *PCOMMAND_COMPLETE_DATA;
47 #if !defined(USE_CODE)
50 PVRSRV_ERROR PVRSRVProcessQueues(IMG_UINT32 ui32CallerID,
53 #if defined(__linux__) && defined(__KERNEL__)
54 #include <linux/types.h>
55 off_t QueuePrintQueues(char *buffer, size_t size, off_t off);
59 PVRSRV_ERROR IMG_CALLCONV PVRSRVCreateCommandQueueKM(IMG_UINT32
64 IMG_IMPORT PVRSRV_ERROR IMG_CALLCONV
65 PVRSRVDestroyCommandQueueKM(PVRSRV_QUEUE_INFO * psQueueInfo);
68 PVRSRV_ERROR IMG_CALLCONV PVRSRVInsertCommandKM(PVRSRV_QUEUE_INFO *
78 PVRSRV_KERNEL_SYNC_INFO
82 PVRSRV_KERNEL_SYNC_INFO
88 PVRSRV_ERROR IMG_CALLCONV PVRSRVGetQueueSpaceKM(PVRSRV_QUEUE_INFO *
96 PVRSRV_ERROR IMG_CALLCONV PVRSRVSubmitCommandKM(PVRSRV_QUEUE_INFO *
102 IMG_VOID PVRSRVCommandCompleteKM(IMG_HANDLE hCmdCookie,
103 IMG_BOOL bScheduleMISR);
105 IMG_VOID PVRSRVCommandCompleteCallbacks(IMG_VOID);
108 PVRSRV_ERROR PVRSRVRegisterCmdProcListKM(IMG_UINT32 ui32DevIndex,
112 ui32MaxSyncsPerCmd[][2],
113 IMG_UINT32 ui32CmdCount);
114 IMG_IMPORT PVRSRV_ERROR PVRSRVRemoveCmdProcListKM(IMG_UINT32
121 #if defined (__cplusplus)