Update ps2.c

Remove the definition of the in/out assembly and add io.h include instead of inline
This commit is contained in:
2026-01-27 12:41:17 -08:00
committed by GitHub
parent a37f94de44
commit 903061551c

View File

@@ -1,14 +1,5 @@
#include "ps2.h" #include "ps2.h"
#include "io.h"
static inline void outb(uint16_t port, uint8_t val) {
__asm__ volatile ("outb %b0, %w1" : : "a"(val), "Nd"(port));
}
static inline uint8_t inb(uint16_t port) {
uint8_t ret;
__asm__ volatile ("inb %w1, %b0" : "=a"(ret) : "Nd"(port));
return ret;
}
/* --- Controller Synchronization --- */ /* --- Controller Synchronization --- */