summaryrefslogtreecommitdiff
path: root/src/drivers/video/video.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-07-24 07:10:19 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-07-24 07:10:19 +0200
commit7a58673a4eb00f386dcea252d3015b32847fbc17 (patch)
tree1cb46ab72c5ef82175474995707d179e7c2cb574 /src/drivers/video/video.c
parentedd2fe548d1c9b46625013e1dc24349256eb0fc9 (diff)
downloadabaos-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/video/video.c')
-rw-r--r--src/drivers/video/video.c29
1 files changed, 5 insertions, 24 deletions
diff --git a/src/drivers/video/video.c b/src/drivers/video/video.c
index 064a1f6..6169714 100644
--- a/src/drivers/video/video.c
+++ b/src/drivers/video/video.c
@@ -7,10 +7,11 @@
static video_vtable_t const video_vtable = {
{
- video_activate,
- video_deactivate,
- video_deinit,
- video_print_info
+ driver_activate,
+ driver_deactivate,
+ driver_deinit,
+ driver_print_name,
+ driver_print_info
}
};
@@ -25,26 +26,6 @@ void video_init( video_t *video, interrupt_t *interrupt, void *context )
((driver_t *)video)->vtable = (driver_vtable_t *)&video_vtable;
}
-void video_activate( void *obj )
-{
- kernel_panic( "Calling abstract method in file %s at line %d.", __FILE__, __LINE__ );
-}
-
-void video_deactivate( void *obj )
-{
- kernel_panic( "Calling abstract method in file %s at line %d.", __FILE__, __LINE__ );
-}
-
-void video_deinit( void *obj )
-{
- // nothing to be done
-}
-
-void video_print_info( void *obj )
-{
- kernel_panic( "Calling abstract method in file %s at line %d.", __FILE__, __LINE__ );
-}
-
video_mode_t video_make_mode( const video_mode_type_t mode_type, const int x, const int y, const int color_depth )
{
video_mode_t mode;