summaryrefslogtreecommitdiff
path: root/bsp/cvitek/drivers/libraries/types.h
blob: a672a4212903dc824527c7a6898b536239640438 (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
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __TYPES_H
#define __TYPES_H

#ifndef __ASSEMBLY__
#ifdef CONFIG_64BIT
typedef unsigned long       uintptr_t;
typedef unsigned long       size_t;
/* bsd */
typedef unsigned char       u_char;
typedef unsigned short      u_short;
typedef unsigned int        u_int;
typedef unsigned long       u_long;

/* sysv */
typedef unsigned char       unchar;
typedef unsigned short      ushort;
typedef unsigned int        uint;
typedef unsigned long       ulong;

typedef signed char         s8;
typedef signed short        s16;
typedef signed int          s32;
typedef signed long         s64;

typedef unsigned char       u8;
typedef unsigned short      u16;
typedef unsigned int        u32;
typedef unsigned long       u64;

typedef signed char         __s8;
typedef signed short        __s16;
typedef signed int          __s32;
typedef signed long         __s64;

typedef unsigned char       __u8;
typedef unsigned short      __u16;
typedef unsigned int        __u32;
typedef unsigned long       __u64;

#endif /*  CONFIG_64BIT */
#endif /*  __ASSEMBLY__ */
#endif /* __TYPES_H */