VSF Documented
|
#include "../../vsf_mal_cfg.h"
#include "utilities/vsf_utilities.h"
#include "../../vsf_mal.h"
#include "./vsf_fakefat32_mal.h"
Macros | |
#define | __VSF_MAL_CLASS_INHERIT__ |
#define | __VSF_FS_CLASS_INHERIT__ |
#define | __VSF_FAKEFAT32_MAL_CLASS_IMPLEMENT |
#define | FAT32_FILE_ATTR_LFN 0x0F |
#define | FAT32_FILE_ATTR_READONLY (1 << 0) |
#define | FAT32_FILE_ATTR_HIDDEN (1 << 1) |
#define | FAT32_FILE_ATTR_SYSTEM (1 << 2) |
#define | FAT32_FILE_ATTR_VOLUMID (1 << 3) |
#define | FAT32_FILE_ATTR_DIRECTORY (1 << 4) |
#define | FAT32_FILE_ATTR_ARCHIVE (1 << 5) |
#define | FAT32_NAMEATTR_NAMELOWERCASE 0x08 |
#define | FAT32_NAMEATTR_EXTLOWERCASE 0x10 |
#define | FAT32_FAT_FILEEND 0x0FFFFFFF |
#define | FAT32_FAT_START 0x0FFFFFF8 |
#define | FAT32_FAT_INVALID 0xFFFFFFFF |
#define | FAKEFAT32_RES_SECTORS get_unaligned_le16(&__fakefat32_mbr[0x0E]) |
#define | FAKEFAT32_FAT_NUM __fakefat32_mbr[0x10] |
#define | FAKEFAT32_HIDDEN_SECTORS get_unaligned_le32(&__fakefat32_mbr[0x1C]) |
#define | FAKEFAT32_ROOT_CLUSTER get_unaligned_le32(&__fakefat32_mbr[0x2C]) |
#define | FAKEFAT32_FSINFO_SECTOR __fakefat32_mbr[0x30] |
#define | FAKEFAT32_BACKUP_SECTOR get_unaligned_le16(&__fakefat32_mbr[0x32]) |
Functions | |
dcl_vsf_peda_methods (dcl_vsf_peda_methods(static, __vk_fakefat32_mal_init) | |
vsf_component_peda_ifs_entry (__vk_fakefat32_dir_read, vk_memfs_callback_read) | |
vsf_component_peda_ifs_entry (__vk_fakefat32_dir_write, vk_memfs_callback_write) | |
__vsf_component_peda_ifs_entry (__vk_fakefat32_mal_init, vk_mal_init) | |
__vsf_component_peda_ifs_entry (__vk_fakefat32_mal_fini, vk_mal_fini) | |
__vsf_component_peda_ifs_entry (__vk_fakefat32_mal_read, vk_mal_read) | |
__vsf_component_peda_ifs_entry (__vk_fakefat32_mal_write, vk_mal_write) | |
#define __VSF_MAL_CLASS_INHERIT__ |
#define __VSF_FS_CLASS_INHERIT__ |
#define __VSF_FAKEFAT32_MAL_CLASS_IMPLEMENT |
#define FAT32_FILE_ATTR_LFN 0x0F |
#define FAT32_FILE_ATTR_READONLY (1 << 0) |
#define FAT32_FILE_ATTR_HIDDEN (1 << 1) |
#define FAT32_FILE_ATTR_SYSTEM (1 << 2) |
#define FAT32_FILE_ATTR_VOLUMID (1 << 3) |
#define FAT32_FILE_ATTR_DIRECTORY (1 << 4) |
#define FAT32_FILE_ATTR_ARCHIVE (1 << 5) |
#define FAT32_NAMEATTR_NAMELOWERCASE 0x08 |
#define FAT32_NAMEATTR_EXTLOWERCASE 0x10 |
#define FAT32_FAT_FILEEND 0x0FFFFFFF |
#define FAT32_FAT_START 0x0FFFFFF8 |
#define FAT32_FAT_INVALID 0xFFFFFFFF |
#define FAKEFAT32_RES_SECTORS get_unaligned_le16(&__fakefat32_mbr[0x0E]) |
#define FAKEFAT32_FAT_NUM __fakefat32_mbr[0x10] |
#define FAKEFAT32_HIDDEN_SECTORS get_unaligned_le32(&__fakefat32_mbr[0x1C]) |
#define FAKEFAT32_ROOT_CLUSTER get_unaligned_le32(&__fakefat32_mbr[0x2C]) |
#define FAKEFAT32_FSINFO_SECTOR __fakefat32_mbr[0x30] |
#define FAKEFAT32_BACKUP_SECTOR get_unaligned_le16(&__fakefat32_mbr[0x32]) |
dcl_vsf_peda_methods | ( | dcl_vsf_peda_methods( | static, |
__vk_fakefat32_mal_init | |||
) |
vsf_component_peda_ifs_entry | ( | __vk_fakefat32_dir_read | , |
vk_memfs_callback_read | |||
) |
vsf_component_peda_ifs_entry | ( | __vk_fakefat32_dir_write | , |
vk_memfs_callback_write | |||
) |
__vsf_component_peda_ifs_entry | ( | __vk_fakefat32_mal_init | , |
vk_mal_init | |||
) |
__vsf_component_peda_ifs_entry | ( | __vk_fakefat32_mal_fini | , |
vk_mal_fini | |||
) |
__vsf_component_peda_ifs_entry | ( | __vk_fakefat32_mal_read | , |
vk_mal_read | |||
) |
__vsf_component_peda_ifs_entry | ( | __vk_fakefat32_mal_write | , |
vk_mal_write | |||
) |