added version and revision to drivers table

This commit is contained in:
Markus Fröschle
2013-10-24 20:59:57 +00:00
parent cd02365300
commit de83026135
2 changed files with 5 additions and 0 deletions

View File

@@ -67,6 +67,8 @@ struct generic_interface
struct driver_table struct driver_table
{ {
uint32_t bas_version;
uint32_t bas_revision;
uint32_t (*remove_handler)(); /* calling this will disable the BaS' hook into trap #0 */ uint32_t (*remove_handler)(); /* calling this will disable the BaS' hook into trap #0 */
struct generic_interface *interfaces[]; struct generic_interface *interfaces[];
}; };

View File

@@ -26,6 +26,7 @@
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>
#include "driver_vec.h" #include "driver_vec.h"
#include "version.h"
#include "xhdi_sd.h" #include "xhdi_sd.h"
static struct generic_interface interfaces[] = static struct generic_interface interfaces[] =
@@ -51,6 +52,8 @@ static struct generic_interface interfaces[] =
*/ */
static struct driver_table drivers = static struct driver_table drivers =
{ {
.bas_version = MAJOR_VERSION,
.bas_revision = MINOR_VERSION,
.remove_handler = NULL, .remove_handler = NULL,
.interfaces = { interfaces } .interfaces = { interfaces }
}; };