summaryrefslogtreecommitdiff
path: root/src/drivers/hdi/ps2/mouse.h
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-07-16 08:19:05 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-07-16 08:19:05 +0200
commit1e8bad98827b651009a8ad4b8134d8a72a004be3 (patch)
tree3c93acf15ff42d3f07d807d02852f43d8ac21b1b /src/drivers/hdi/ps2/mouse.h
parent21c1989527191fa3739984a167d7a1cf939cfd6b (diff)
downloadabaos-1e8bad98827b651009a8ad4b8134d8a72a004be3.tar.gz
abaos-1e8bad98827b651009a8ad4b8134d8a72a004be3.tar.bz2
moved registering of mouse/keyboard interrupts into the driver activation instead
of having them directly in kernel.c also more standardization of the driver init functions (mouse set_resolution instead of constructor parameters res_x and res_y)
Diffstat (limited to 'src/drivers/hdi/ps2/mouse.h')
-rw-r--r--src/drivers/hdi/ps2/mouse.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/hdi/ps2/mouse.h b/src/drivers/hdi/ps2/mouse.h
index b87efa5..1a00b5e 100644
--- a/src/drivers/hdi/ps2/mouse.h
+++ b/src/drivers/hdi/ps2/mouse.h
@@ -47,13 +47,14 @@ typedef struct {
int32_t cursor_x;
int32_t cursor_y;
mouse_event_handler_t handler;
+ interrupt_handler_t interrupt_handler;
} mouse_t;
typedef struct {
driver_vtable_t base;
} mouse_vtable_t;
-void mouse_init( mouse_t *mouse, mouse_event_handler_t handler, const uint32_t res_x, const uint32_t res_y, interrupt_t *interrupt, void *context );
+void mouse_init( mouse_t *mouse, mouse_event_handler_t handler, interrupt_t *interrupt, void *context );
void mouse_activate( void *obj );
void mouse_deactivate( void *obj );
void mouse_deinit( void *obj );