proposed driver interface compiles

This commit is contained in:
Markus Fröschle
2013-10-24 15:17:42 +00:00
parent c2d2947d22
commit cd02365300
2 changed files with 26 additions and 11 deletions

View File

@@ -28,7 +28,7 @@
#include "driver_vec.h"
#include "xhdi_sd.h"
static struct interface interfaces[] =
static struct generic_interface interfaces[] =
{
{
/* BaS SD-card driver interface */
@@ -36,13 +36,22 @@ static struct interface interfaces[] =
.type = XHDI_DRIVER,
.name = "SDCARD",
.description = "BaS SD Card driver",
.version = 1,
.revision = 0,
.version = 0,
.revision = 1,
.interface.xhdi = { xhdi_call }
},
/* extend list here if drivers need to be added */
/* insert new drivers here */
{
.type = END_OF_DRIVERS
}
};
/*
* this is the driver table we expose to the OS
*/
static struct driver_table drivers =
{
.remove_handler = NULL,
.interfaces = { interfaces }
};