35 lines
597 B
C
35 lines
597 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef _TYPES_H_
|
|
#define _TYPES_H_
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
#include <stdbool.h>
|
|
|
|
#define KB (1024ull)
|
|
#define MB (KB * KB)
|
|
#define GB (MB * MB)
|
|
|
|
|
|
typedef uintptr_t vaddr_t;
|
|
typedef uint32_t vaddr32_t;
|
|
typedef vaddr_t paddr_t;
|
|
typedef uint32_t paddr32_t;
|
|
typedef int64_t ssize_t;
|
|
|
|
typedef uint8_t u8;
|
|
typedef uint16_t u16;
|
|
typedef uint32_t u32;
|
|
typedef uint64_t u64;
|
|
|
|
typedef int32_t i8;
|
|
typedef int16_t i16;
|
|
typedef int32_t i32;
|
|
typedef int64_t i64;
|
|
|
|
typedef u64 off_t;
|
|
typedef u64 user_t;
|
|
|
|
typedef i64 time_t;
|
|
|
|
#endif /* _TYPES_H_ */
|