18 lines
387 B
C
Raw Normal View History

2016-04-04 22:45:49 +02:00
#pragma once
#include "common.h"
2016-05-01 15:41:11 +02:00
#define IMG_FAT 1
#define IMG_NAND 2
#define IMG_RAMDRV 3
2016-04-04 22:45:49 +02:00
int ReadImageSectors(u8* buffer, u32 sector, u32 count);
int WriteImageSectors(const u8* buffer, u32 sector, u32 count);
int SyncImage(void);
u64 GetMountSize(void);
u32 GetMountState(void);
u32 IdentifyImage(const char* path);
2016-05-01 15:41:11 +02:00
u32 MountRamDrive(void);
2016-04-04 22:45:49 +02:00
u32 MountImage(const char* path);