Re-organized sub-directory by category
[staging/basesystem.git] / module / kernel-module-evklib / agldd / agldd.h
1 /*
2  * adcpf common header
3  *
4  * @copyright Copyright (c) 2016-2019 TOYOTA MOTOR CORPORATION.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18
19 #ifndef _AGLDD_H_
20 #define _AGLDD_H_
21 #ifdef __KERNEL__
22 #include <linux/types.h>
23 #else
24 #include <stdint.h>
25 #if !defined(__cplusplus)
26 #include <stdbool.h>
27 #endif  /* !defined(__cplusplus) */
28 #endif /* __KERNEL__ */
29
30 #ifndef __KERNEL__
31 #define __LINUX_ARM_ARCH__ 7
32 #define BITS_PER_LONG 32
33
34 #define __AGLDD_TYPEDEF_I64
35 typedef long long               i64;    /* 8-byte signed integer */
36
37 #define __AGLDD_TYPEDEF_U64
38 typedef unsigned long long      u64;    /* 8-byte unsigned integer */
39
40 #define __AGLDD_TYPEDEF_U32
41 typedef unsigned long           u32;    /* 4-byte unsigned integer */
42
43 #define __AGLDD_TYPEDEF_U16
44 typedef unsigned short          u16;    /* 2-byte unsigned integer */
45
46 #define __AGLDD_TYPEDEF_I16
47 typedef short                   i16;    /* 2-byte signed integer */
48
49 #define __AGLDD_TYPEDEF_U8
50 typedef unsigned char           u8;     /* 1-byte unsigned integer */
51
52 #define __AGLDD_TYPEDEF_I8
53 typedef char                    i8;     /* 1-byte signed integer */
54 #endif
55
56 #define __AGLDD_TYPEDEF_INT8
57 typedef signed char             INT8;
58
59 #define __AGLDD_TYPEDEF_INT16
60 typedef signed short            INT16;
61
62 #define __AGLDD_TYPEDEF_INT32
63 typedef signed int              INT32;
64
65 #define __AGLDD_TYPEDEF_INT64
66 typedef signed long long        INT64;
67
68 #define __AGLDD_TYPEDEF_UINT8
69 typedef unsigned char           UINT8;
70
71 #define __AGLDD_TYPEDEF_UINT16
72 typedef unsigned short          UINT16;
73
74 #define __AGLDD_TYPEDEF_UINT32
75 typedef unsigned int            UINT32;
76
77 #define __AGLDD_TYPEDEF_UINT64
78 typedef unsigned long long      UINT64;
79
80 #ifndef __KERNEL__
81 #if !defined    __WIN_TYPEDEF_BOOL
82 #define __AGLDD_TYPEDEF_BOOL
83 typedef UINT32                  BOOL;
84 #endif
85 #endif
86
87 #ifndef TRUE
88 #define TRUE                    true
89 #endif
90 #ifndef FALSE
91 #define FALSE                   false
92 #endif
93
94 #endif/* _AGLDD_H_ */