From bb57b124d1bb385d41747f50be7dd4f3625539c1 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 24 Nov 2019 23:34:32 +0100 Subject: Major coding style reformatting -> Kernighan & Ritchie This project now (hopefully) uses the same style recommended by Kernighan and Ritchie and used in the Linux Kernel --- src/kernel/io/io.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/kernel/io/io.h') diff --git a/src/kernel/io/io.h b/src/kernel/io/io.h index 3c618d6..0ad5a54 100644 --- a/src/kernel/io/io.h +++ b/src/kernel/io/io.h @@ -8,42 +8,42 @@ * @param port The hardware port * @return The hardware response */ -uint8_t receive_b(uint16_t port); +uint8_t inb(uint16_t port); /** * Receive from specified hardware port * @param port The hardware port * @return The hardware response */ -uint16_t receive_w(uint16_t port); +uint16_t inw(uint16_t port); /** * Receive from specified hardware port * @param port The hardware port * @return The hardware response */ -uint32_t receive_l(uint16_t port); +uint32_t inl(uint16_t port); /** * Send data to the specified hardware port * @param port The hardware port * @param data The data that should be sent */ -void send_b(uint16_t port, uint8_t data); +void outb(uint16_t port, uint8_t data); /** * Send data to the specified hardware port * @param port The hardware port * @param data The data that should be sent */ -void send_w(uint16_t port, uint16_t data); +void outw(uint16_t port, uint16_t data); /** * Send data to the specified hardware port * @param port The hardware port * @param data The data that should be sent */ -void send_l(uint16_t port, uint32_t data); +void outl(uint16_t port, uint32_t data); /** * Initialize the serial conenction -- cgit v1.2.3