Expose storedevs to the outside world via dev interface
This commit is contained in:
@ -6,6 +6,9 @@
|
||||
#include "spinlock/spinlock.h"
|
||||
#include "ramsd.h"
|
||||
#include "compiler/attr.h"
|
||||
#include "dev/dev.h"
|
||||
|
||||
#define STOREDEV_MAGIC 0x50FA
|
||||
|
||||
enum {
|
||||
STOREDEV_RAMSD,
|
||||
@ -16,6 +19,7 @@ UNUSED static const char *storedev_strings[] = {
|
||||
};
|
||||
|
||||
typedef struct StoreDev {
|
||||
uint32_t _magic;
|
||||
struct StoreDev *next;
|
||||
int32_t sdtype;
|
||||
|
||||
@ -43,4 +47,7 @@ void storedev_init(void);
|
||||
StoreDev *storedev_create(int32_t sdtype, void *extra);
|
||||
int32_t storedev_delete(StoreDev *sd);
|
||||
|
||||
void storedev_register_dev_entry(StoreDev *sd, int32_t sdtype);
|
||||
void storedev_unregister_dev_entry(Dev *dev);
|
||||
|
||||
#endif // STOREDEV_STOREDEV_H_
|
||||
|
||||
Reference in New Issue
Block a user