1 /****************************************************************************
3 * Copyright (C) 2005 - 2013 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 *****************************************************************************/
22 #ifndef __gc_hal_kernel_os_h_
23 #define __gc_hal_kernel_os_h_
25 typedef struct _LINUX_MDL_MAP
30 struct vm_area_struct * vma;
31 struct _LINUX_MDL_MAP * next;
35 typedef struct _LINUX_MDL_MAP * PLINUX_MDL_MAP;
37 typedef struct _LINUX_MDL
44 /* Pointer to a array of pages. */
45 struct page * contiguousPages;
46 /* Pointer to a array of pointers to page. */
47 struct page ** nonContiguousPages;
51 #ifdef NO_DMA_COHERENT
53 #endif /* NO_DMA_COHERENT */
58 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
63 struct _LINUX_MDL * prev;
64 struct _LINUX_MDL * next;
66 LINUX_MDL, *PLINUX_MDL;
74 typedef struct _DRIVER_ARGS
76 gctUINT64 InputBuffer;
77 gctUINT64 InputBufferSize;
78 gctUINT64 OutputBuffer;
79 gctUINT64 OutputBufferSize;
83 #endif /* __gc_hal_kernel_os_h_ */