this also fixes up a bunch of formatting, adding the type vaddr_t Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
30 lines
536 B
C
30 lines
536 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;
|
|
|
|
#endif /* _TYPES_H_ */
|