Break devctl() up into smaller syscalls

This commit is contained in:
2025-10-14 21:35:10 +02:00
parent 0c3250e8d6
commit fa6c194163
20 changed files with 199 additions and 164 deletions

30
share/sysdefs/dev.h Normal file
View File

@ -0,0 +1,30 @@
#ifndef SHARE_SYSDEFS_DEV_H_
#define SHARE_SYSDEFS_DEV_H_
#define DEV_TERMDEV_PUTCH 0
#define DEV_PS2KBDEV_READCH 0
#define DEV_PS2KBDEV_ATTCHCONS 1
#define DEV_SERIALDEV_SENDB 0
#define DEV_SERIALDEV_SENDREADY 1
#define DEV_SERIALDEV_RECVB 2
#define DEV_SERIALDEV_RECVREADY 3
#define DEV_FBDEV_GETINFO 0
typedef uint64_t Dev_t;
typedef struct {
uint16_t w, h;
uint16_t margin;
uint8_t fontw, fonth;
} FbDevGetInfo;
typedef struct {
bool present;
char name[0x100];
size_t nfns;
} DevStat;
#endif // SHARE_SYSDEFS_DEV_H_