vbos/include/kernel/types.h
Michael Shaw a252a3f8e9 kv2: initialize memory manager, early pci devices
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2026-05-12 03:00:45 -04:00

33 lines
576 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;
#endif /* _TYPES_H_ */