modified generic driver interface to include the BaS XHDI driver.

added code ("stolen" from dBUG) to flash AMD chips
This commit is contained in:
Markus Fröschle
2013-10-24 08:42:44 +00:00
parent 28c0dd322a
commit c2d2947d22
4 changed files with 407 additions and 114 deletions

View File

@@ -29,29 +29,41 @@
enum driver_type
{
blockdev,
chardev,
video,
xhdi
END_OF_DRIVERS, /* marks end of driver list */
BLOCKDEV_DRIVER,
CHARDEV_DRIVER,
VIDEO_DRIVER,
XHDI_DRIVER,
};
struct generic_driver_interface
{
int (*read)();
int (*write)();
int (*ioctl)();
uint32_t (*init)();
uint32_t (*read)();
uint32_t (*write)();
uint32_t (*ioctl)();
};
struct xhdi_driver_interface
{
xhdi_call_fun xhdivec;
uint32_t (*xhdivec)();
};
typedef union driver_interface
union driver_interface
{
enum driver_type type;
struct generic_driver_interface gdi;
struct xhdi_driver_interface xhdi;
} DRIVER_INTERFACE;
};
struct interface
{
enum driver_type type;
char name[16];
char description[64];
int version;
int revision;
union driver_interface interface;
};
#endif /* _DRIVER_VEC_H_ */