Break devctl() up into smaller syscalls
This commit is contained in:
30
share/sysdefs/dev.h
Normal file
30
share/sysdefs/dev.h
Normal 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_
|
||||
Reference in New Issue
Block a user