550W Document
550W, a high-end OS
|
#include <common/types.h>
类 | |
struct | fat32 |
struct | short_name_entry |
struct | long_name_entry |
union | dentry |
struct | dir_info |
宏定义 | |
#define | max(x, y) (((x) > (y)) ? (x) : (y)) |
#define | min(x, y) (((x) > (y)) ? (y) : (x)) |
#define | FAT32_BOOT_SEC 0 |
#define | BPB_BYTES_PER_SEC 0x0B |
#define | BPB_SEC_PER_CLUSTER 0x0D |
#define | BPB_RSVD_SEC_CNT 0x0E |
#define | BPB_FAT_NUM 0x10 |
#define | BPB_HIDD_SEC 0x1C |
#define | BPB_TOTL_SEC 0x20 |
#define | BPB_SEC_PER_FAT 0x24 |
#define | BPB_ROOT_CLUSTER 0x2c |
#define | ATTR_READ_WRITE 0x00 |
#define | ATTR_READ_ONLY 0x01 |
#define | ATTR_HIDDEN 0x02 |
#define | ATTR_SYSTEM 0x04 |
#define | ATTR_VOLUME_ID 0x08 |
#define | ATTR_DIRECTORY 0x10 |
#define | ATTR_ARCHIVE 0x20 |
#define | ATTR_LONG_FILE_NAME 0x0F |
#define | ATTR_LINK 0x40 |
#define | ATTR_CHARACTER_DEVICE 0x80 |
#define | SHORT_FIR_NAME 8 |
#define | SHORT_EXT_NAME 3 |
#define | MAX_SHORT_NAME 11 |
#define | MAX_NAME_LEN 256 |
#define | MAX_PATH_LEN 512 /* TODO : is there any limitation? */ |
#define | DENTRY_LEN 32 |
#define | LONG_NAME1_LEN 5 |
#define | LONG_NAME2_LEN 6 |
#define | LONG_NAME3_LEN 2 |
#define | LONG_NAME_LEN (LONG_NAME1_LEN + LONG_NAME2_LEN + LONG_NAME3_LEN) |
#define | LAST_LONG_ENTRY 0x40 |
#define | LONG_ENTRY_SEQ 0x1f |
#define | FAT_MASK 0x0fffffffu |
#define | FAT_MAX 0x0ffffff8u /* end of the file */ |
#define | FAT_BAD 0x0ffffff7u /* bad cluster of SDcard */ |
#define | FAT_ENTRY_SIZE 4 |
类型定义 | |
typedef struct fat32 | fat32_t |
typedef union dentry | dentry_t |
typedef struct dir_info | dir_info_t |
函数 | |
struct short_name_entry | __attribute__ ((packed, aligned(4))) short_name_entry_t |
变量 | |
fat32_t | fat |
char | name1 [SHORT_FIR_NAME] |
char | name2 [SHORT_EXT_NAME] |
uint8_t | attr |
uint8_t | nt_res |
uint8_t | crt_time_tenth |
uint16_t | crt_time |
uint16_t | crt_date |
uint16_t | lst_acce_date |
uint16_t | fst_clus_hi |
uint16_t | lst_wrt_time |
uint16_t | lst_wrt_date |
uint16_t | fst_clus_lo |
uint32_t | file_size |
uint8_t | order |
uint8_t | type |
uint8_t | checksum |
uint16_t | rsvd |
uint16_t | name3 [LONG_NAME3_LEN] |
dir_info_t | root_dir |
dir_info_t | cur_dir |
#define ATTR_ARCHIVE 0x20 |
#define ATTR_CHARACTER_DEVICE 0x80 |
#define ATTR_DIRECTORY 0x10 |
#define ATTR_HIDDEN 0x02 |
#define ATTR_LINK 0x40 |
#define ATTR_LONG_FILE_NAME 0x0F |
#define ATTR_READ_ONLY 0x01 |
#define ATTR_READ_WRITE 0x00 |
#define ATTR_SYSTEM 0x04 |
#define ATTR_VOLUME_ID 0x08 |
#define BPB_BYTES_PER_SEC 0x0B |
#define BPB_FAT_NUM 0x10 |
#define BPB_HIDD_SEC 0x1C |
#define BPB_ROOT_CLUSTER 0x2c |
#define BPB_RSVD_SEC_CNT 0x0E |
#define BPB_SEC_PER_CLUSTER 0x0D |
#define BPB_SEC_PER_FAT 0x24 |
#define BPB_TOTL_SEC 0x20 |
#define DENTRY_LEN 32 |
#define FAT32_BOOT_SEC 0 |
#define FAT_BAD 0x0ffffff7u /* bad cluster of SDcard */ |
#define FAT_ENTRY_SIZE 4 |
#define FAT_MASK 0x0fffffffu |
#define FAT_MAX 0x0ffffff8u /* end of the file */ |
#define LAST_LONG_ENTRY 0x40 |
#define LONG_ENTRY_SEQ 0x1f |
#define LONG_NAME1_LEN 5 |
#define LONG_NAME2_LEN 6 |
#define LONG_NAME3_LEN 2 |
#define LONG_NAME_LEN (LONG_NAME1_LEN + LONG_NAME2_LEN + LONG_NAME3_LEN) |
#define max | ( | x, | |
y | |||
) | (((x) > (y)) ? (x) : (y)) |
#define MAX_NAME_LEN 256 |
#define MAX_PATH_LEN 512 /* TODO : is there any limitation? */ |
#define MAX_SHORT_NAME 11 |
#define min | ( | x, | |
y | |||
) | (((x) > (y)) ? (y) : (x)) |
#define SHORT_EXT_NAME 3 |
#define SHORT_FIR_NAME 8 |
typedef struct dir_info dir_info_t |
struct short_name_entry __attribute__ | ( | (packed, aligned(4)) | ) |
uint8_t attr |
uint8_t checksum |
uint16_t crt_date |
uint16_t crt_time |
uint8_t crt_time_tenth |
dir_info_t cur_dir |
|
extern |
uint32_t file_size |
uint16_t fst_clus_hi |
uint16_t fst_clus_lo |
uint16_t lst_acce_date |
uint16_t lst_wrt_date |
uint16_t lst_wrt_time |
uint16_t name1 |
uint16_t name2 |
uint16_t name3[LONG_NAME3_LEN] |
uint8_t nt_res |
uint8_t order |
|
extern |
uint16_t rsvd |
uint8_t type |