Use shared macros for dev function IDs

This commit is contained in:
2025-10-04 21:34:48 +02:00
parent acbf051dbc
commit 70d6931e3b
3 changed files with 4 additions and 7 deletions

View File

@ -8,6 +8,7 @@
#include "dlmalloc/malloc.h"
#include "util/util.h"
#include "hshtb.h"
#include "sysdefs/devctl.h"
Ps2KbFastBuf PS2KB_BUF;
@ -34,5 +35,5 @@ void ps2kbdev_init(void) {
Dev *ps2kbdev;
HSHTB_ALLOC(DEVTABLE.devs, ident, "ps2kbdev", ps2kbdev);
spinlock_init(&ps2kbdev->spinlock);
ps2kbdev->fns[0] = &ps2kbdev_readch;
ps2kbdev->fns[DEV_PS2KBDEV_READCH] = &ps2kbdev_readch;
}