From 34885f1c73824a0fe47aa095e9d55a57021239d2 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 25 Feb 2021 17:42:46 +0100 Subject: Added *many* static keywords --- kernel/drivers/mouse.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'kernel/drivers/mouse.c') diff --git a/kernel/drivers/mouse.c b/kernel/drivers/mouse.c index e2f7311..ce9d15c 100644 --- a/kernel/drivers/mouse.c +++ b/kernel/drivers/mouse.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -18,7 +19,7 @@ static u32 dev_id = 0; static struct event_mouse *event = NULL; -void mouse_handler() +static void mouse_handler() { switch (mouse_cycle) { case 0: @@ -51,7 +52,7 @@ void mouse_handler() } } -void mouse_serial_wait(u8 a_type) +static void mouse_serial_wait(u8 a_type) { u32 time_out = 100000; if (a_type == 0) { @@ -67,7 +68,7 @@ void mouse_serial_wait(u8 a_type) } } -void mouse_serial_write(u8 a_write) +static void mouse_serial_write(u8 a_write) { mouse_serial_wait(1); outb(0x64, 0xD4); @@ -75,18 +76,18 @@ void mouse_serial_write(u8 a_write) outb(0x60, a_write); } -u8 mouse_serial_read(void) +static u8 mouse_serial_read(void) { mouse_serial_wait(0); return inb(0x60); } -u8 mouse_ready(void) +static u8 mouse_ready(void) { return !stack_empty(queue); } -s32 mouse_read(void *buf, u32 offset, u32 count, struct device *dev) +static s32 mouse_read(void *buf, u32 offset, u32 count, struct device *dev) { (void)dev; if (stack_empty(queue)) -- cgit v1.2.3