ENGR00156850 gpu-viv: add gpu-viv driver source
[wandboard.git] / drivers / mxc / gpu-viv / hal / os / linux / kernel / gc_hal_kernel_os.h
blobf155f10cb7d573ae1b717ff39e0929cb162c4cff
1 /****************************************************************************
3 * Copyright (C) 2005 - 2011 by Vivante Corp.
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.
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.
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.
19 *****************************************************************************/
24 #ifndef __gc_hal_kernel_os_h_
25 #define __gc_hal_kernel_os_h_
27 typedef struct _LINUX_MDL_MAP
29 gctINT pid;
30 gctPOINTER vmaAddr;
31 struct vm_area_struct * vma;
32 struct _LINUX_MDL_MAP * next;
34 LINUX_MDL_MAP;
36 typedef struct _LINUX_MDL_MAP * PLINUX_MDL_MAP;
38 typedef struct _LINUX_MDL
40 gctINT pid;
41 char * addr;
43 #ifdef NO_DMA_COHERENT
44 gctPOINTER kaddr;
45 #endif /* NO_DMA_COHERENT */
47 gctINT numPages;
48 gctINT pagedMem;
49 gctBOOL contiguous;
50 dma_addr_t dmaHandle;
51 PLINUX_MDL_MAP maps;
52 struct _LINUX_MDL * prev;
53 struct _LINUX_MDL * next;
55 LINUX_MDL, *PLINUX_MDL;
57 extern PLINUX_MDL_MAP
58 FindMdlMap(
59 IN PLINUX_MDL Mdl,
60 IN gctINT PID
63 typedef struct _DRIVER_ARGS
65 gctPOINTER InputBuffer;
66 gctUINT32 InputBufferSize;
67 gctPOINTER OutputBuffer;
68 gctUINT32 OutputBufferSize;
70 DRIVER_ARGS;
72 /* Cleanup the signal table. */
73 gceSTATUS
74 gckOS_CleanProcessSignal(
75 gckOS Os,
76 gctHANDLE Process
79 #endif /* __gc_hal_kernel_os_h_ */