Merge branches 'x86-fixes-for-linus' and 'x86-uv-for-linus' of git://git.kernel.org...
[pandora-kernel.git] / drivers / staging / westbridge / astoria / include / linux / westbridge / cyashal.h
1 /* Cypress West Bridge API header file (cyashal.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
18 ## Fifth Floor, Boston, MA  02110-1301, USA.
19 ## ===========================
20 */
21
22 #ifndef _INCLUDED_CYASHAL_H_
23 #define _INCLUDED_CYASHAL_H_
24
25 #if !defined(__doxygen__)
26
27 /* The possible HAL layers defined and implemented by Cypress */
28
29 #ifdef __CY_ASTORIA_FPGA_HAL__
30 #ifdef CY_HAL_DEFINED
31 #error only one HAL layer can be defined
32 #endif
33
34 #define CY_HAL_DEFINED
35
36 #include "cyashalfpga.h"
37 #endif
38
39 /***** SCM User space HAL  ****/
40 #ifdef __CY_ASTORIA_SCM_HAL__
41 #ifdef CY_HAL_DEFINED
42 #error only one HAL layer can be defined
43 #endif
44
45 #define CY_HAL_DEFINEDŚŚ
46
47 #include "cyanhalscm.h"
48 #endif
49 /***** SCM User space HAL  ****/
50
51 /***** SCM Kernel HAL  ****/
52 #ifdef __CY_ASTORIA_SCM_KERNEL_HAL__
53 #ifdef CY_HAL_DEFINED
54 #error only one HAL layer can be defined
55 #endif
56
57 #define CY_HAL_DEFINEDŚ
58
59 #include "cyanhalscm_kernel.h"
60 #endif
61 /***** SCM Kernel HAL  ****/
62
63 /***** OMAP5912 Kernel HAL  ****/
64 #ifdef __CY_ASTORIA_OMAP_5912_KERNEL_HAL__
65  #ifdef CY_HAL_DEFINED
66   #error only one HAL layer can be defined
67  #endif
68
69  #define CY_HAL_DEFINED
70
71  #include "cyanhalomap_kernel.h"
72 #endif
73 /***** eof OMAP5912 Kernel HAL  ****/
74
75
76
77 /***** OMAP3430 Kernel HAL  ****/
78 #ifdef CONFIG_MACH_OMAP3_WESTBRIDGE_AST_PNAND_HAL
79
80  #ifdef CY_HAL_DEFINED
81   #error only one HAL layer can be defined
82  #endif
83
84  #define CY_HAL_DEFINED
85 /* moved to staging location, eventual implementation
86  * considered is here
87  * #include mach/westbridge/westbridge-omap3-pnand-hal/cyashalomap_kernel.h>
88 */
89  #include "../../../arch/arm/plat-omap/include/mach/westbridge/westbridge-omap3-pnand-hal/cyashalomap_kernel.h"
90
91 #endif
92 /*****************************/
93
94
95 /******/
96 #ifdef __CY_ASTORIA_CUSTOMER_HAL__
97 #ifdef CY_HAL_DEFINED
98 #error only one HAL layer can be defined
99 #endif
100 br
101 #define CY_HAL_DEFINED
102 #include "cyashal_customer.h"
103
104 #endif
105
106 #endif                  /* __doxygen__ */
107
108 #endif                  /* _INCLUDED_CYASHAL_H_ */