| 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 <linux/stddef.h> |
| 11 |
|
| 12 |
#include <asm/types.h> |
| 13 |
#include <asm/posix_types.h> |
| 14 |
|
| 15 |
#define __bitwise__ |
| 16 |
#define __bitwise __bitwise__ |
| 17 |
|
| 18 |
typedef __u16 __bitwise __le16; |
| 19 |
typedef __u16 __bitwise __be16; |
| 20 |
typedef __u32 __bitwise __le32; |
| 21 |
typedef __u32 __bitwise __be32; |
| 22 |
typedef __u64 __bitwise __le64; |
| 23 |
typedef __u64 __bitwise __be64; |
| 24 |
|
| 25 |
#ifndef __aligned_u64 |
| 26 |
# define __aligned_u64 __u64 __attribute__((aligned(8))) |
| 27 |
#endif |
| 28 |
|
| 29 |
struct list_head { |
| 30 |
struct list_head *next, *prev; |
| 31 |
}; |
| 32 |
|
| 33 |
/* needed on Android/Termux, where this linux/types.h is included by other include files */ |
| 34 |
typedef unsigned __bitwise __poll_t; |
| 35 |
|
| 36 |
#endif |