diff options
author | dzwdz | 2021-10-07 06:25:02 +0000 |
---|---|---|
committer | dzwdz | 2021-10-07 06:25:02 +0000 |
commit | fbf6183ef8c9d49a14bd3ff01f378d67eaebc300 (patch) | |
tree | 13380aee9433d727aa66ba7b9580ed91a033414a /src/kernel/arch/i386/port_io.h | |
parent | 7e326b5039bff4d422f66bb8e51267f785193985 (diff) |
kernel/i386: rename the port io functions with their bit length
Diffstat (limited to 'src/kernel/arch/i386/port_io.h')
-rw-r--r-- | src/kernel/arch/i386/port_io.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/arch/i386/port_io.h b/src/kernel/arch/i386/port_io.h index a4d640f..bcf2358 100644 --- a/src/kernel/arch/i386/port_io.h +++ b/src/kernel/arch/i386/port_io.h @@ -1,10 +1,10 @@ #include <stdint.h> -static inline void port_outb(uint16_t port, uint8_t val) { +static inline void port_out8(uint16_t port, uint8_t val) { asm volatile("outb %0, %1" : : "a" (val), "Nd" (port)); } -static inline uint8_t port_inb(uint16_t port) { +static inline uint8_t port_in8(uint16_t port) { uint8_t val; asm volatile("inb %1, %0" : "=a" (val) : "Nd" (port)); return val; |