1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
2 
3 #ifndef __LINUX_TYPES_H
4 #define __LINUX_TYPES_H
5 
6 #include <stdbool.h>
7 #include <stddef.h>
8 #include <stdint.h>
9 
10 #include <asm/types.h>
11 #include <asm/posix_types.h>
12 
13 #define __bitwise__
14 #define __bitwise __bitwise__
15 
16 typedef __u16 __bitwise __le16;
17 typedef __u16 __bitwise __be16;
18 typedef __u32 __bitwise __le32;
19 typedef __u32 __bitwise __be32;
20 typedef __u64 __bitwise __le64;
21 typedef __u64 __bitwise __be64;
22 
23 #ifndef __aligned_u64
24 # define __aligned_u64 __u64 __attribute__((aligned(8)))
25 #endif
26 
27 struct list_head {
28 	struct list_head *next, *prev;
29 };
30 
31 #endif
32