feat: serial device interfacing
[lunaix-os.git] / lunaix-os / includes / usr / lunaix / device.h
diff --git a/lunaix-os/includes/usr/lunaix/device.h b/lunaix-os/includes/usr/lunaix/device.h
new file mode 100644 (file)
index 0000000..3045113
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef __LUNAIX_UDEVICE_H
+#define __LUNAIX_UDEVICE_H
+
+#include "ioctl_defs.h"
+
+struct dev_info
+{
+    unsigned int extra;
+
+    struct
+    {
+        unsigned int meta;
+        unsigned int device;
+        unsigned int variant;
+    } dev_id;
+
+    struct
+    {
+        char* buf;
+        unsigned int buf_len;
+    } dev_name;
+};
+
+#endif /* __LUNAIX_UDEVICE_H */