Newer
Older
uwuboot / include / arm9 / dev.h
@profi200 profi200 on 15 Jun 2016 432 bytes Some changes.
#pragma once

#include "types.h"


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;