diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-07-24 07:10:19 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-07-24 07:10:19 +0200 |
commit | 7a58673a4eb00f386dcea252d3015b32847fbc17 (patch) | |
tree | 1cb46ab72c5ef82175474995707d179e7c2cb574 /src/drivers/hdi/mouse.c | |
parent | edd2fe548d1c9b46625013e1dc24349256eb0fc9 (diff) | |
download | abaos-7a58673a4eb00f386dcea252d3015b32847fbc17.tar.gz abaos-7a58673a4eb00f386dcea252d3015b32847fbc17.tar.bz2 |
added print_name method to all drivers
removed superfluos empty methods in abstract drivers
moved printing of info to method in rtl8139 driver
Diffstat (limited to 'src/drivers/hdi/mouse.c')
-rw-r--r-- | src/drivers/hdi/mouse.c | 29 |
1 files changed, 5 insertions, 24 deletions
diff --git a/src/drivers/hdi/mouse.c b/src/drivers/hdi/mouse.c index a0b62f9..c48dba6 100644 --- a/src/drivers/hdi/mouse.c +++ b/src/drivers/hdi/mouse.c @@ -5,10 +5,11 @@ static mouse_vtable_t const mouse_vtable = { { - mouse_activate, - mouse_deactivate, - mouse_deinit, - mouse_print_info + driver_activate, + driver_deactivate, + driver_deinit, + driver_print_name, + driver_print_info }, mouse_set_resolution, mouse_set_position @@ -25,26 +26,6 @@ void mouse_init( mouse_t *mouse, mouse_event_handler_t handler, interrupt_t *int ((driver_t *)mouse)->vtable = (driver_vtable_t *)&mouse_vtable; } -void mouse_deinit( void *obj ) -{ - // nothing to be done -} - -void mouse_activate( void *obj ) -{ - kernel_panic( "Calling abstract method in file %s at line %d.", __FILE__, __LINE__ ); -} - -void mouse_deactivate( void *obj ) -{ - kernel_panic( "Calling abstract method in file %s at line %d.", __FILE__, __LINE__ ); -} - -void mouse_print_info( void *obj ) -{ - kernel_panic( "Calling abstract method in file %s at line %d.", __FILE__, __LINE__ ); -} - void mouse_set_resolution( void *obj, const uint32_t res_x, const uint32_t res_y ) { mouse_t *mouse = (mouse_t *)obj; |