Rewrite PS2KB using the new devctl interface

This commit is contained in:
2025-09-28 23:25:43 +02:00
parent f5f44da5f6
commit d7562b98c1
10 changed files with 64 additions and 75 deletions

22
kernel/dev/ps2kbdev.h Normal file
View File

@ -0,0 +1,22 @@
#ifndef DEV_PS2KBDEV_H_
#define DEV_PS2KBDEV_H_
#include <stdint.h>
#include <stddef.h>
#include "dev.h"
#include "rbuf/rbuf.h"
#include "spinlock/spinlock.h"
typedef struct {
RBuf rbuf;
SpinLock spinlock;
bool init;
} Ps2KbFastBuf;
void ps2kbdev_init(void);
extern Dev PS2KBDEV;
extern Ps2KbFastBuf PS2KB_BUF;
#endif // DEV_PS2KBDEV_H_