1 /* Cypress Antioch OMAP KERNEL file (cyanomapdev_kernel.h)
2 ## ===========================
3 ## Copyright (C) 2010 Cypress Semiconductor
5 ## This program is free software; you can redistribute it and/or
6 ## modify it under the terms of the GNU General Public License
7 ## as published by the Free Software Foundation; either version 2
8 ## of the License, or (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., 51 Franklin Street, Fifth Floor,
18 ## Boston, MA 02110-1301, USA.
19 ## ===========================
22 #ifndef __CY_AS_OMAP_DEV_KERNEL_H__
23 #define __CY_AS_OMAP_DEV_KERNEL_H__
26 #include <linux/module.h>
27 #include <linux/kernel.h>
28 #include <linux/completion.h>
30 /* include does not seem to work
31 * moving for patch submission
32 #include <mach/gpmc.h>
34 #include <linux/../../arch/arm/plat-omap/include/plat/gpmc.h>
39 #define CY_AS_OMAP_KERNEL_HAL_SIG (0x1441)
45 typedef struct cy_as_omap_dev_kernel {
46 /* This is the signature for this data structure */
49 /* Address base of Antioch Device */
52 /* This is a pointer to the next Antioch device in the system */
53 struct cy_as_omap_dev_kernel *m_next_p;
55 /* This is for thread sync */
56 struct completion thread_complete;
58 /* This is for thread to wait for interrupts */
59 cy_as_hal_sleep_channel thread_sc;
61 /* This is for thread to exit upon StopOmapKernel */
62 int thread_flag; /* set 1 to exit */
66 /* This is for dma sync */
67 struct completion dma_complete;
68 } cy_as_omap_dev_kernel;