block: fix warning with calling smp_processor_id() in preemptible section
[pandora-kernel.git] / drivers / staging / westbridge / astoria / arch / arm / plat-omap / include / mach / westbridge / westbridge-omap3-pnand-hal / cyasomapdev_kernel.h
1 /* Cypress Antioch OMAP KERNEL file (cyanomapdev_kernel.h)
2 ## ===========================
3 ## Copyright (C) 2010  Cypress Semiconductor
4 ##
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.
9 ##
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.
14 ##
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 ## ===========================
20 */
21
22 #ifndef __CY_AS_OMAP_DEV_KERNEL_H__
23 #define __CY_AS_OMAP_DEV_KERNEL_H__
24
25
26 #include <linux/module.h>
27 #include <linux/kernel.h>
28 #include <linux/completion.h>
29
30 /* include does not seem to work
31  * moving for patch submission
32 #include <mach/gpmc.h>
33 */
34 #include <linux/../../arch/arm/plat-omap/include/plat/gpmc.h>
35
36 /*
37  * Constants
38  */
39 #define CY_AS_OMAP_KERNEL_HAL_SIG               (0x1441)
40
41
42 /*
43  * Data structures
44  */
45 typedef struct cy_as_omap_dev_kernel {
46         /* This is the signature for this data structure */
47         unsigned int m_sig;
48
49         /* Address base of Antioch Device */
50         void *m_addr_base;
51
52         /* This is a pointer to the next Antioch device in the system */
53         struct cy_as_omap_dev_kernel *m_next_p;
54
55         /* This is for thread sync */
56         struct completion thread_complete;
57
58         /* This is for thread to wait for interrupts */
59         cy_as_hal_sleep_channel thread_sc;
60
61         /* This is for thread to exit upon StopOmapKernel */
62         int thread_flag; /* set 1 to exit */
63
64         int dma_ch;
65
66         /* This is for dma sync */
67         struct completion dma_complete;
68 } cy_as_omap_dev_kernel;
69
70 #endif
71
72 /*[]*/