From ddc4fbc15223e362896a9f42beca73f05f48e664 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Thu, 18 Sep 2025 13:52:58 -0400 Subject: move usermode-critical info to include/api --- include/api/object.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 include/api/object.h (limited to 'include/api/object.h') diff --git a/include/api/object.h b/include/api/object.h new file mode 100644 index 0000000..58a54b9 --- /dev/null +++ b/include/api/object.h @@ -0,0 +1,29 @@ +#ifndef _JOVE_API_OBJECT_H +#define _JOVE_API_OBJECT_H 1 + +#include + +typedef uint16_t obj_type_t; + +enum +{ + /* Generic objects */ + KO_NONE = 0, + KO_OBJECT_DIRECTORY, + KO_MEMORY_UNTYPED, + KO_MEMORY_MAPPING, //4KiB aligned fixed width + KO_INITRD_FILE, + KO_TCB, + KO_MESSAGE, + /* Device objects*/ + KO_DEV_INVALID = 0x100, + KO_DEV_PROCESSOR, + KO_DEV_UART +}; + +#define KO_MESSAGE_BYTES 4096 +#define KO_MESSAGE_ALIGN 0x1000 + +#define OBJECT_DIRECTORY_MAX_ENTRIES 256 + +#endif -- cgit v1.2.1