From 59ecab36f634a00cc6e2c4194bf2d5ebc4ec70eb Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 19 Apr 2017 19:34:05 +0200 Subject: First lua app --- src/syslua/lx/sysdef.lua | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'src/syslua/lx/sysdef.lua') diff --git a/src/syslua/lx/sysdef.lua b/src/syslua/lx/sysdef.lua index 7c0d14f..43015e2 100644 --- a/src/syslua/lx/sysdef.lua +++ b/src/syslua/lx/sysdef.lua @@ -1,6 +1,7 @@ --- Constant definitions based on common/include/proto/fs.h return { + -- Definitions from proto/fs.h + -- FILE TYPES FT_REGULAR = 0, FT_DIR = 0x01, @@ -33,4 +34,32 @@ return { SEL_READ = 0x01, SEL_WRITE = 0x02, SEL_ERROR = 0x04, + + + -- Definitions from proto/launch.h + + -- STANDARD FILE DESCRIPTORS + STD_FD_TTY_STDIO = 1, + STD_FD_STDIN = 2, + STD_FD_STDOUT = 3, + STD_FD_STDERR = 4, + STD_FD_GIP = 5, + STD_FD_GIOSRV = 10, + STD_FD_TTYSRV = 11, + + -- Definitions from proto/fb.h + + -- FRAMEBUFFER TYPES : TODO + + -- FRAMEBUFFER IOCTLs + IOCTL_FB_GET_INFO = 1, + IOCTL_FBDEV_GET_MODE_INFO = 10, + IOCTL_FBDEV_SET_MODE = 11, + + -- Definitions from proto/proc.h + PS_LOADING = 1, + PS_RUNNING = 2, + PS_FINISHED = 3, + PS_FAILURE = 4, + PS_KILLED = 5, } -- cgit v1.2.3