summaryrefslogtreecommitdiffstats
path: root/drivers/staging/westbridge/astoria/arch/arm/plat-omap/include/mach/westbridge/westbridge-omap3-pnand-hal/cyasomapdev_kernel.h
blob: 5a64bb6bb053a48904279171f1468cb6f5e2254a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* Cypress Antioch OMAP KERNEL file (cyanomapdev_kernel.h)
## ===========================
## Copyright (C) 2010  Cypress Semiconductor
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License
## as published by the Free Software Foundation; either version 2
## of the License, or (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 51 Franklin Street, Fifth Floor,
## Boston, MA  02110-1301, USA.
## ===========================
*/

#ifndef __CY_AS_OMAP_DEV_KERNEL_H__
#define __CY_AS_OMAP_DEV_KERNEL_H__


#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/completion.h>

/* include does not seem to work
 * moving for patch submission
#include <mach/gpmc.h>
*/
#include <linux/../../arch/arm/plat-omap/include/plat/gpmc.h>

/*
 * Constants
 */
#define CY_AS_OMAP_KERNEL_HAL_SIG		(0x1441)


/*
 * Data structures
 */
typedef struct cy_as_omap_dev_kernel {
	/* This is the signature for this data structure */
	unsigned int m_sig;

	/* Address base of Antioch Device */
	void *m_addr_base;

	/* This is a pointer to the next Antioch device in the system */
	struct cy_as_omap_dev_kernel *m_next_p;

	/* This is for thread sync */
	struct completion thread_complete;

	/* This is for thread to wait for interrupts */
	cy_as_hal_sleep_channel thread_sc;

	/* This is for thread to exit upon StopOmapKernel */
	int thread_flag; /* set 1 to exit */

	int dma_ch;

	/* This is for dma sync */
	struct completion dma_complete;
} cy_as_omap_dev_kernel;

#endif

/*[]*/
OpenPOWER on IntegriCloud