started implementation of a more generic EmuTOS driver interface
This commit is contained in:
@@ -25,25 +25,27 @@
|
|||||||
#ifndef _DRIVER_VEC_H_
|
#ifndef _DRIVER_VEC_H_
|
||||||
#define _DRIVER_VEC_H_
|
#define _DRIVER_VEC_H_
|
||||||
|
|
||||||
typedef enum driver_type
|
#include "xhdi_sd.h"
|
||||||
|
|
||||||
|
enum driver_type
|
||||||
{
|
{
|
||||||
blockdev,
|
blockdev,
|
||||||
chardev,
|
chardev,
|
||||||
video,
|
video,
|
||||||
xhdi
|
xhdi
|
||||||
} DRIVER_TYPE;
|
};
|
||||||
|
|
||||||
typedef struct generic_driver_interface
|
struct generic_driver_interface
|
||||||
{
|
{
|
||||||
int (*read)();
|
int (*read)();
|
||||||
int (*write)();
|
int (*write)();
|
||||||
int (*ioctl)();
|
int (*ioctl)();
|
||||||
} GENERIC_DRIVER_INTERFACE;
|
};
|
||||||
|
|
||||||
typedef struct xhdi_driver_interface
|
struct xhdi_driver_interface
|
||||||
{
|
{
|
||||||
long xhdivec;
|
xhdi_call_fun xhdivec;
|
||||||
} XHDI_DRIVER_INTERFACE;
|
};
|
||||||
|
|
||||||
typedef union driver_interface
|
typedef union driver_interface
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user