• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: (GPL-2.0-only 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 typedef uint64_t u64;
14 typedef __u32 u32;
15 typedef __u8  u8;
16 
17 #define __bitwise__
18 #define __bitwise __bitwise__
19 
20 typedef __u16 __bitwise __le16;
21 typedef __u16 __bitwise __be16;
22 typedef __u32 __bitwise __le32;
23 typedef __u32 __bitwise __be32;
24 typedef __u64 __bitwise __le64;
25 typedef __u64 __bitwise __be64;
26 
27 #ifndef __aligned_u64
28 # define __aligned_u64 __u64 __attribute__((aligned(8)))
29 #endif
30 
31 struct list_head {
32 	struct list_head *next, *prev;
33 };
34 
35 #endif
36