30 lines
1.2 KiB
C
30 lines
1.2 KiB
C
#ifndef PRFILE2_VFMOD_PF_DRIVER_H
|
|
#define PRFILE2_VFMOD_PF_DRIVER_H
|
|
|
|
#include <private/vf/PrFILE2/fatfs/pf_cache.h>
|
|
|
|
#include <private/vf/PrFILE2/pf_types.h>
|
|
|
|
typedef struct PF_DRV_TBL {
|
|
void* p_part; // 0x00
|
|
PF_CACHE_SETTING* cache; // 0x04
|
|
pf_s8 drive; // 0x08
|
|
pf_u8 stat; // 0x09
|
|
} PF_DRV_TBL;
|
|
|
|
pf_s32 VFiPFDRV_GetFSINFOInformation(PF_VOLUME* p_vol);
|
|
pf_s32 VFiPFDRV_StoreFreeCountToFSINFO(PF_VOLUME* p_vol);
|
|
pf_bool VFiPFDRV_IsInserted(PF_VOLUME* p_vol);
|
|
pf_bool VFiPFDRV_IsDetected(PF_VOLUME* p_vol);
|
|
pf_bool VFiPFDRV_IsWProtected(PF_VOLUME* p_vol);
|
|
pf_s32 VFiPFDRV_init(PF_VOLUME* p_vol);
|
|
pf_s32 VFiPFDRV_finalize(PF_VOLUME* p_vol);
|
|
pf_s32 VFiPFDRV_mount(PF_VOLUME* p_vol);
|
|
pf_s32 VFiPFDRV_unmount(PF_VOLUME* p_vol, pf_u32 mode);
|
|
pf_s32 VFiPFDRV_format(PF_VOLUME* p_vol, const pf_u8* param);
|
|
pf_s32 VFiPFDRV_lread(PF_VOLUME* p_vol, pf_u8* buf, pf_u32 sector, pf_u32 num_sectors, pf_u32* p_num_success);
|
|
pf_s32 VFiPFDRV_lwrite(PF_VOLUME* p_vol, const pf_u8* buf, pf_u32 sector, pf_u32 num_sectors, pf_u32* p_num_success);
|
|
pf_s32 VFiPFDRV_lerase(PF_VOLUME* p_vol, pf_u32 sector, pf_u32 num_sectors);
|
|
|
|
#endif // PRFILE2_VFMOD_PF_DRIVER_H
|