Newer
Older
uwuboot / include / arm9 / dev.h

#pragma once

typedef struct
{
	char *name;
	bool initialized;
	bool (*init)();
	bool (*read)(u32 offset, u32 size, void *buf);
	bool (*write)(u32 offset, u32 size, const void *buf);
	bool (*close)();
	bool (*is_active)();
	u32  (*get_size)();
	
} dev_struct;

extern const dev_struct *dev_sdcard;
extern const dev_struct *dev_rawnand;
extern const dev_struct *dev_decnand;
extern const dev_struct *dev_flash;