Nice userspace wrappers for ps2kb driver

This commit is contained in:
2025-09-07 22:24:34 +02:00
parent 659f98910d
commit e71361dcca
4 changed files with 23 additions and 3 deletions

8
ulib/devices/ps2kb.c Normal file
View File

@ -0,0 +1,8 @@
#include <stdint.h>
#include <sysdefs/ipcpipe.h>
#include <system/ipcpipe.h>
int32_t dev_ps2kb_read(int32_t *ch) {
return ipcpipe(1, 0, IPCPIPE_READ, (uint8_t *)ch, sizeof(*ch));
}